Unable to initiate an outbound call
# support
n
Code can be found in the uploaded file. This is the error message that I received: Call initiation failed: 400 - {"message":["property firstMessage should not exist","property context should not exist","assistantId must be a UUID","phoneNumber.property number should not exist","phoneNumber.twilioPhoneNumber must be a valid phone number in the E.164 format. Hot tip, you may be missing the country code (Eg. US: +1).","phoneNumber.twilioAccountSid must be a string","phoneNumber.twilioAuthToken must be a string"],"error":"Bad Request","statusCode":400} Please advise Steven H. https://cdn.discordapp.com/attachments/1363868776969404576/1363868777158283334/outbound_call_fails.pdf?ex=68079947&is=680647c7&hm=9608fc893f6e7f15c1ea3e74fc52930f15d10324bf9385b1abe289d8f21cce0a&
k
Hey Steven, When making an outbound call with Vapi, make sure the phone number is in E.164 format, which means including the **country code and a + s**ign at the beginning. For example, if you're calling a U.S. number, it should look like this:
+19201231234
Also, if you're passing the number in code, make sure it's wrapped in quotes so it's treated as a proper string: '+19201231234' Let me know if that helps!