Make call not working
# support
d
I am trying to send request. POST https://api.vapi.ai/call/phone Headers: {"Authorization": "Bearer ", "Content-Type": "application/json"} Body: { "assistantId": null, "customer": { "number": "+13016622250" }, "phoneNumberId": "12f60905-d97d-4d43-81f8-4538ec61f953", "assistant": { "model": { "url": "", "model": "", "provider": "custom-llm" }, "voice": { "provider": "deepgram", "voiceId": "arcas", "inputPreprocessingEnabled": true, "inputReformattingEnabled": false, "enableSsmlParsing": true }, "language": "en-US", "metadata": {}, "name": "outgoing_form_caller", "firstMessage": "", "voicemailDetectionEnabled": false, "silenceTimeoutSeconds": 600, "llmRequestDelaySeconds": 0.2 }, "metadata": null } RESPONSE: { "message": "Couldn't Create Twilio Call. Twilio Error: Authenticate", "error": "Bad Request", "statusCode": 400 }
@User
v
message has been deleted
@Darkhan It looks like you're encountering an authentication error with Twilio when trying to create a call using the VAPI. This typically happens when the Twilio credentials provided are incorrect or not properly formatted. To resolve this issue, please ensure that you have the correct Twilio Account SID and Auth Token, and that they are included in the request body under the
phoneNumber
object. Here's an example of how the
phoneNumber
object should be formatted with your Twilio credentials:
Copy code
json
"phoneNumber": {
    "twilioPhoneNumber": "<Your Twilio Phone Number>",
    "twilioAccountSid": "<Your Twilio Account SID>",
    "twilioAuthToken": "<Your Twilio Auth Token>",
    "name": "outgoing_form_caller",
    "assistantId": "<Your Assistant ID>"
}
Please replace
<Your Twilio Phone Number>
,
<Your Twilio Account SID>
,
<Your Twilio Auth Token>
, and
<Your Assistant ID>
with your actual Twilio credentials and the Assistant ID you're using for the call. Once you have updated the request body with the correct information, you can try sending the request again. If you continue to experience issues, please ask support for more info on this.
You can continue this conversation by mentioning me in the message.
Got it. Tagging @User for additional help.
s
Couldn't Create Twilio Call. Twilio Error: Authenticate Delete your twilio number and re-add it
3 Views