anisrixyz
05/23/2025, 2:49 PMVapi Support Bot
05/23/2025, 2:51 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" }
}'
If you still get the error after correcting these, double-check your API key in the dashboard or contact Vapi support for help.
Reference: [Vapi WebSocket Transport Docs](https://docs.vapi.ai/calls/websocket-transport)
Sources:
- [Vapi WebSocket Transport Docs](https://docs.vapi.ai/calls/websocket-transport)
- [Vapi API Reference: Create Call](https://docs.vapi.ai/api-reference/calls/create)Vapi Support Bot
05/23/2025, 2:51 PMbash
curl -X POST https://api.vapi.ai/call \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'
Double-check your dashboard for an "API token" or "server token" and use that value. If you continue to get 401 errors, try regenerating your API token in the dashboard and use the new one.
[Reference: Vapi API docs](https://docs.vapi.ai/api-reference/calls/create?explorer=true)
Source:
- [Vapi API Reference Create Call](https://docs.vapi.ai/api-reference/calls/create?explorer=true)Kyle
05/24/2025, 7:12 AM