dual-salmonD
VAPI8mo ago
dual-salmon

Facing error when trying to use Websocket transport

When I trigger this API for a websocket call:
curl --location 'https://api.vapi.ai/call' \
--header 'authorization: Bearer 90947ae3-94ca-46d2-a4a5-b7665912f759' \
--header 'content-type: application/json' \
--header 'Cookie: _cfuvid=s3GI9uVVCtYM7jKZAx106nOLCnP2xvmj5AHoWQdyJBI-1746269265225-0.0.1.1-604800000' \
--data '{
    "assistantId": "d539f5aa-59bc-4a2f-9fbd-b0a349010c2d",
    "transport": {
      "provider": "vapi.websocket"
    }
  }'


This is the response that I get:
{
    "transport": {
        "provider": "vapi.websocket",
        "websocketCallUrl": "wss://phone-call-websocket.aws-us-west-2-backend-production1.vapi.ai/0f80953a-2a98-4150-9d7a-1cd093e318c1/transport"
    },
    "assistantId": "d539f5aa-59bc-4a2f-9fbd-b0a349010c2d",
    "id": "0f80953a-2a98-4150-9d7a-1cd093e318c1",
    "orgId": "c7eeddf1-2236-4c47-9505-cf0c1dfa66b4",
    "createdAt": "2025-05-03T10:47:45.085Z",
    "updatedAt": "2025-05-03T10:47:45.085Z",
    "type": "vapi.websocketCall",
    "status": "queued"
}


But when connecting the websocketCallUrl, it returns 500 internal server error (see the attached screenshot), can you please help me with this?
Screenshot_2025-05-03_at_4.19.07_PM.png
Was this page helpful?