Set or remove the webhook
set_webhookSet the webhook URL where volai sends event notifications. Allowed values in events: call.completed (call finished), call.failed (the platform rejected the call, the network failed, or the voice engine failed or was restarted during a connected call: its body then carries the transcript and reason engine_stall, engine_error or unfinished, and the call is not billed), call.no_answer (the called party didn't pick up an outbound call), call.missed (an inbound call went unanswered, including one the voice engine turned away because every line was busy: its call record has endReason capacity), message.sent (the carrier accepted an SMS for sending, not a delivery report) and message.received (an SMS arrived on your mobile number or calls and SMS number). The URL must start with https:// and point to a public address (localhost and internal networks are rejected). An empty events list means subscribe to all events, including ones added later. An empty url ("") REMOVES the webhook - volai then stops sending anything. Save the returned secret right away, you won't get it a second time. Optional headers are sent with every delivery, for a target that only accepts authenticated requests; values are secrets and come back masked. host, content-type, content-length, volai-signature and hop-by-hop headers cannot be set. Changing the URL to a different domain drops stored headers, so send the full values again; they are never sent to a different domain after a redirect. Same data as PUT /v1/webhook (response schema in /openapi.json).
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": {
"url": "<url>"
},
"name": "set_webhook"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Public HTTPS URL where volai sends event notifications (localhost and internal networks are rejected). An empty string ('') removes the webhook - volai then stops sending anything. | |
| events | No | Events to subscribe to: call.completed, call.failed, call.no_answer, call.missed, message.sent, message.received. An empty list (the default) subscribes to all events, including ones added later, at most 20 entries. | |
| headers | No | Custom HTTP headers sent with every delivery, for example {"Authorization": "Bearer <key>"}, at most 5. Omit to keep the stored ones, {} removes them, a value equal to the mask from get_webhook keeps the stored one. |