Huza
05/28/2025, 9:29 AMassistant
, assistantId
, squad
, Or squadId
.","error":"Bad Request","statusCode":400
I don't see any documentation naratting how i can pass any server-side initiate call attempts to a serverURL the same way we can do it for phone-calling routing.
I would have imagined leaving body empty would do the job.
Or will doing:
"message": {
"type": "assistant-request"
}
to start-call endpoint do the job?Vapi Support Bot
05/28/2025, 9:30 AMassistant
, assistantId
, squad
, or squadId
in your call request. The server URL assistant-request
flow is only documented for inbound phone calls, not for server-side or web SDK calls. As a result, leaving the body empty or sending { "message": { "type": "assistant-request" } }
will not trigger a server-side assistant lookup and will result in the error you observed.
For server-side initiated calls, you must explicitly provide the assistant configuration or ID in your request.
Sources:
- [Vapi Docs: Inbound Calls](https://docs.vapi.ai/phone-calling#inbound-calls)
- [Vapi Docs: Inbound Support Example](https://docs.vapi.ai/examples/inbound-support#handle-assistant-requests)Huza
05/28/2025, 9:31 AMVapi Support Bot
05/28/2025, 9:33 AMassistant-request
server URL flow is only supported for inbound phone calls. For server-side SDK or web SDK calls, you must provide an assistant
, assistantId
, squad
, or squadId
in your request—leaving these out or sending a { "message": { "type": "assistant-request" } }
payload will result in a 400 error.
There is currently no supported way to trigger a server-side assistant lookup for server-initiated calls.
See: [Vapi Docs: Inbound Calls](https://docs.vapi.ai/phone-calling#inbound-calls), [Inbound Support Example](https://docs.vapi.ai/examples/inbound-support#handle-assistant-requests)
Sources:
- [Vapi Docs: Inbound Calls](https://docs.vapi.ai/phone-calling#inbound-calls)
- [Vapi Docs: Inbound Support Example](https://docs.vapi.ai/examples/inbound-support#handle-assistant-requests)Vapi
05/29/2025, 4:35 AMMarcel
06/15/2025, 9:37 AMVapi
06/17/2025, 12:26 AM