Twilio phone number connection error
# support
a
I try to import the twilio phone number through api but receive this error message: {"message":"Couldn't Create Phone Number","error":"Bad Request","statusCode":400} I'm not sure if the 400 status is from Twilio or Vapi, and couldn't find the reason for error. The json looks fine. Any idea why? { "provider": "twilio", "number": "+18679881652", "twilioAccountSid": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "twilioAuthToken": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "name": "New Test Number" }
v
message has been deleted
You can continue this conversation by mentioning me in the message.
@Aurora It seems like you're encountering an issue while trying to import a Twilio phone number. The 400 Bad Request error indicates that the server cannot process the request due to an apparent client error. This could be due to several reasons, such as missing required fields, incorrect data formatting, or invalid credentials. To help you better, I would need to check the exact API endpoint you're using and the complete request you're sending. However, based on the JSON snippet you provided, here are a few things you can check: 1. Ensure that the
number
field contains a properly formatted phone number including the country code. 2. Verify that the
twilioAccountSid
and
twilioAuthToken
are correct and have the necessary permissions. 3. Make sure that all required fields for the API request are included and correctly formatted. 4. If you're using VAPI to import the number, ensure that you're also providing the
credentialId
if it's required for numbers not bought on Vapi. If you've checked all of the above and the issue persists, please provide more details or reach out to support for further assistance.
s
fixed.
a
@Sahil Thank you.
5 Views