Skip to content

Commit 2cb8237

Browse files
Update websocket-transport.mdx (#556)
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. Co-authored-by: Dan Goosewin <dan@goosewin.com>
1 parent d8a2e75 commit 2cb8237

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fern/calls/websocket-transport.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ curl 'https://api.vapi.ai/call' \
2525
-H 'authorization: Bearer YOUR_API_KEY' \
2626
-H 'content-type: application/json' \
2727
--data-raw '{
28-
"assistant": { "assistantId": "YOUR_ASSISTANT_ID" },
28+
"assistantId": "YOUR_ASSISTANT_ID",
2929
"transport": {
3030
"provider": "vapi.websocket",
3131
"audioFormat": {

0 commit comments

Comments
 (0)