Configure callback routing
set_callback_routingSave opt-in callback routing for an owned number without replacing the default agent. Only a unique real outbound call from the same account and number within lookbackSecs (60 to 604800) may route the returning caller to one of agentIds. Unknown or ambiguous callers keep the default. Empty agentIds disables immediately. Optional firstMessage is spoken only for a verified callback. The response engineSyncRequired means the default agent's engine webhook inbound_route_url must separately be activated with readback; this operation does not rewrite live agent configuration. Same as PUT /v1/numbers/{e164}/callback-routing.
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": {
"agentIds": "<agentIds>",
"lookbackSecs": "<lookbackSecs>",
"e164": "<e164>"
},
"name": "set_callback_routing"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| e164 | Yes | Owned phone number in E.164 format, such as +420266266641. | |
| agentIds | Yes | Owned active engine agents eligible for verified callbacks; an empty list disables callback routing. | |
| firstMessage | No | Optional greeting spoken only for a verified campaign callback, up to 500 characters. | |
| lookbackSecs | Yes | Maximum age of a real outbound call in seconds, from 60 to 604800. | |
| missedFirstMessage | No | Optional greeting for a verified callback whose preceding outbound call had no conversation with the customer (not answered, voicemail, voice menu or nobody spoke), up to 500 characters. Without it firstMessage applies to every verified callback. |