inner-oliveI

Make call not working

I am trying to send request.
POST
https://api.vapi.ai/call/phone
Headers: {"Authorization": "Bearer <token>", "Content-Type": "application/json"}
Body:
{
"assistantId": null,
"customer": {
"number": "+13016622250"
},
"phoneNumberId": "12f60905-d97d-4d43-81f8-4538ec61f953",
"assistant": {
"model": {
"url": "<secret>",
"model": "<secret>",
"provider": "custom-llm"
},
"voice": {
"provider": "deepgram",
"voiceId": "arcas",
"inputPreprocessingEnabled": true,
"inputReformattingEnabled": false,
"enableSsmlParsing": true
},
"language": "en-US",
"metadata": {<secret>},
"name": "outgoing_form_caller",
"firstMessage": "<secret>",
"voicemailDetectionEnabled": false,
"silenceTimeoutSeconds": 600,
"llmRequestDelaySeconds": 0.2
},
"metadata": null
}

RESPONSE:
{
"message": "Couldn't Create Twilio Call. Twilio Error: Authenticate",
"error": "Bad Request",
"statusCode": 400
}
Was this page helpful?