Not allowed to call a number
# support
t
Hey so I currently have a flow where someone puts their number somewhere and then I want my Vapi assistant to call them. I have the entire flow set up but when I call the Vapi function to call the number that has opted in, it says that I'm not allowed to call that number. It says it's a Twilio problem but my Twilio says I'm all good so wanted to see if you guys have had this problem before. Thanks Error code: 400 - "{\"message\":\"Couldn't Create Twilio Call. Twilio Error: Account not allowed to call +1(it's my number so I deleted it)\",\"error\":\"Bad Request\",\"statusCode\":400}" The number I'm calling is a united states number All Twilio account info is correct Headers I'm passing: Authorization: Bearer my code Content-Type: application/json Here's the function I'm calling but all fields are filled: { "assistant": { "clientMessages": [], "name": "" }, "customer": { "number": "+1", "name": "" }, "phoneNumberId": "", "phoneNumber": { "twilioAccountSid": "", "twilioAuthToken": "", "twilioPhoneNumber": "", "assistantId": "" }, "assistantId": "" }
v
message has been deleted
@Tinjira It sounds like you've done a thorough check on your Twilio account and the error you're encountering is indeed puzzling. Since your Twilio account seems to be in good standing, the issue might be related to how your number is being handled within the VAPI system. Given that you're trying to call a number that has opted in, and assuming that you've already verified your number with Twilio, you might need to import your phone number into the VAPI system using the dashboard or the
/phone-numbers/import
endpoint. This process will verify your number using your Twilio credentials and configure it to work with VAPI services. If you haven't already done so, please try importing your phone number into VAPI. If you have already imported your number and are still facing this issue, it could be a problem with the VAPI system's integration with Twilio, or there might be a restriction on your Twilio account that isn't immediately visible through the account dashboard. In this case, I would recommend reaching out to VAPI support with the details of the error message and the steps you've taken so far. They should be able to help you troubleshoot the issue further. If you need assistance with importing your number or contacting support, please let me know, and I'll be happy to guide you through the process.
You can continue this conversation by mentioning me in the message.
t
I have the number imported
s
Copy code
json
{
  "customer": {
    "number": "+1",
    "name": ""
  },
  "phoneNumberId": "",
  "assistantId": ""
}
use this payload structure 🙂
t
Thanks @Shubham Bajaj
8 Views