taco
04/01/2025, 8:43 PMVapi Support Bot
04/01/2025, 8:44 PMtwilioPhoneNumber
in the VAPI create calls API. However, I can suggest several alternatives that might work for your use case without requiring you to create a VAPI phone number ID.
Based on the information I found, you have a few options to integrate your existing Twilio setup with VAPI while maintaining your custom routing:
1. **Forward calls from Twilio to VAPI API**: According to [information in Discord](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1334941334368419850), you can keep your Twilio setup and forward calls to the VAPI API without importing the phone number to VAPI. This way, Twilio will send requests to your server URL first, and then you can forward the calls to VAPI. There's even a reference implementation at [GitHub](https://github.com/VapiAI/advanced-concepts-phone-call-provider-bypass).
2. **Use SIP calls**: You might be able to use SIP to initiate calls directly through VAPI without needing a registered phone number. According to [Discord discussions](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1333753729404370986), if VAPI supports SIP calls without a phone number, you can use the API to create an outbound call specifying the SIP address as the destination.
3. **Use Twilio API keys with restricted permissions**: If you're concerned about security when integrating with VAPI, you can create a new API key in Twilio with restricted permissions specifically for use with VAPI, as mentioned in [Discord discussions](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1334941334368419850).
For your specific use case of maintaining custom routing with Twilio webhooks going to your server, the first option (forwarding calls) seems most aligned with your needs.
Would you like me to provide more details on any of these approaches?
Sources:Vapi Support Bot
04/01/2025, 8:44 PMtaco
04/01/2025, 9:00 PMSahil
04/02/2025, 1:06 PMtaco
04/02/2025, 6:10 PMShubham Bajaj
04/07/2025, 8:46 PMcurl -X POST "https://api.vapi.ai/call/phone" \
-H "Authorization: Bearer YOUR_VAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"phoneNumber": {
"twilioPhoneNumber": "+1234567890",
"twilioAccountSid": "YOUR_TWILIO_ACCOUNT_SID",
"twilioAuthToken": "YOUR_TWILIO_AUTH_TOKEN"
},
"customer": {
...
},
"assistant": {
"name": "Transient Phone Number Test",
....
}
}'
taco
04/08/2025, 2:58 PMSahil
04/10/2025, 9:57 PM