Cannot import number from Twilio via api
# support
b
My names Bradley and i am build an ai voice agency with Vapi via Api. i have most of it nailed down but having issue import twilio numbers via API, receiving error, number not found on Twilio. when a. correct twilio credentials, b. number exists in my twilio account. tried phone number variations etc. was able to import the same numbers via the vapi dashboard but unable via API and i need API so i can scale
v
Hi Bradley, just to clarify—are you using the latest Twilio authentication method (with
apiKey
and
apiSecret
instead of
authToken
) when making your API call to import the number? This change is required as per the latest Vapi documentation. Source: - [Vapi Changelog April 27, 2025](https://docs.vapi.ai/changelog/2025/4/27)
b
yes i am using those, already updated that.
yes i am using those, already updated that. @Vapi Support Bot
v
Try this API request format to import your Twilio number via Vapi:
Copy code
json
POST https://api.vapi.ai/phone-numbers/import
{
  "number": "+1XXXXXXXXXX",
  "twilioAccountSid": "YOUR_TWILIO_ACCOUNT_SID",
  "twilioApiKey": "YOUR_TWILIO_API_KEY",
  "twilioApiSecret": "YOUR_TWILIO_API_SECRET"
}
Ensure the phone number is in E.164 format (e.g., +1XXXXXXXXXX) and matches exactly what appears in your Twilio console. If the issue persists, double-check the number's status in Twilio and that your API credentials have the correct permissions. [See the import guide for more details.](https://docs.vapi.ai/quickstart/import-twillio) Source: - [Import number from Twilio](https://docs.vapi.ai/quickstart/import-twillio)
b
that fixed it thank you!! @Vapi Support Bot
v
That's awesome to hear, Bradley! Glad you got it working. If you run into anything else as you build out your AI voice agency, keep up the great work!
c
Thanks for getting back to us. We are delighted to know your issue has been resolved. Please do let us know if you need further assistance. We will be closing this for now and have a great day ahead!
2 Views