JORDI
11/13/2024, 9:03 PMVapi
11/13/2024, 9:06 PMmodel
, transcriber
, and voice
should not exist in the JSON you are sending.
To assist you further, I would need to see the JSON payload you are trying to send to VAPI. This will help me understand what might be going wrong. Could you please provide the JSON code you are using for the VAPI request? Once I have that information, I can give you more specific guidance on how to fix the error.Vapi
11/13/2024, 9:06 PMJORDI
11/14/2024, 9:11 AMJORDI
11/14/2024, 10:17 AMShubham Bajaj
11/15/2024, 11:10 AMjson
{
"phoneNumberId": "55c01ca3-db2a-43d8-9111-2348685df262",
"customer": {
"numberE164CheckEnabled": true,
"extension": "extension",
"number": "telefono",
"name": "Nombre"
},
"assistant": {...yourAssistantConfigComesHere}
}
JORDI
11/15/2024, 3:02 PMShubham Bajaj
11/15/2024, 3:03 PMJORDI
11/15/2024, 3:06 PMShubham Bajaj
11/15/2024, 3:13 PMShubham Bajaj
11/18/2024, 12:18 PMjs
curl -X POST https://api.vapi.ai/call \
-H "Authorization: Bearer " \
-H "Content-Type: application/json" \
-d '{
"phoneNumberId": "",
"customer": {
"number": ""
},
"assistant": {
"model": {
"provider": "openai",
"model": "gpt-4o",
"messages": [
{
"role": "system",
"content": "insert-system-prompt-here"
}
]
},
"transcriber": {
"provider": "deepgram",
"language": "en",
"model": "nova-2-phonecall"
},
"voice": {
"provider": "11labs",
"voiceId": "andrea"
}
}
}'
ref:
https://docs.vapi.ai/api-reference/calls/create?playground=%2Fapi-reference%2Fcalls%2Fcreate