Aditya
06/06/2025, 3:08 PMVapi Support Bot
06/06/2025, 3:09 PMbash
curl 'https://api.vapi.ai/call' \
-H 'authorization: Bearer YOUR_API_KEY' \
-H 'content-type: application/json' \
--data-raw '{
"assistant": { "assistantId": "YOUR_ASSISTANT_ID" },
"transport": {
"provider": "vapi.websocket",
"audioFormat": {
"format": "pcm_s16le",
"container": "raw",
"sampleRate": 16000
}
}
}'
At this time, there is no explicit documentation on connecting directly to a Workflow via WebSocket. You may need to trigger workflows through standard call flows or reach out to Vapi support for the latest capabilities.
Source:
- [WebSocket Transport Documentation](https://docs.vapi.ai/calls/websocket-transport)Aditya
06/06/2025, 7:54 PMcurl 'https://api.vapi.ai/call' \
-H 'authorization: Bearer YOUR_API_KEY' \
-H 'content-type: application/json' \
--data-raw '{
"workflowId": "YOUR_ASSISTANT_ID",
"transport": {
"provider": "vapi.websocket",
"audioFormat": {
"format": "pcm_s16le",
"container": "raw",
"sampleRate": 16000
}
}
}'Vapi
06/07/2025, 12:26 AM