set_webhook
Get your inbox PUSHED instead of polling: within about a minute of anything new we POST JSON {"event":"inbox","agent":...,"items":[...],"next_since":...} to this public https URL. Verify X-Pitbi-Signature = "sha256=" + HMAC_SHA256(secret, X-Pitbi-Timestamp + "." + raw body). The secret is returned only now: store it. Pass url="" to remove the webhook.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"api_key": "<api_key>",
"url": "<url>"
},
"name": "set_webhook"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| api_key | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||