From 0b1b6bf26a7f9c8375185c7986fcdf40dacb2b4a Mon Sep 17 00:00:00 2001 From: skheyfets-asapp <108540025+skheyfets-asapp@users.noreply.github.com> Date: Mon, 7 Jul 2025 00:42:31 -0400 Subject: [PATCH] Update websocket-transport.mdx Create a WebSocket call curl example was incorrect using the `assistant` object, which can only be used for transient assistants. To reference existing assistant by Id, the string `assistantId` field should be used instead. --- fern/calls/websocket-transport.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fern/calls/websocket-transport.mdx b/fern/calls/websocket-transport.mdx index 724cbaddb..c3accb0dc 100644 --- a/fern/calls/websocket-transport.mdx +++ b/fern/calls/websocket-transport.mdx @@ -25,7 +25,7 @@ curl 'https://api.vapi.ai/call' \ -H 'authorization: Bearer YOUR_API_KEY' \ -H 'content-type: application/json' \ --data-raw '{ - "assistant": { "assistantId": "YOUR_ASSISTANT_ID" }, + "assistantId": "YOUR_ASSISTANT_ID", "transport": { "provider": "vapi.websocket", "audioFormat": {