Assistance Needed with Integrating Existing Phone ...
# support
z
Could you please provide guidance or share best practices for porting and connecting an existing Nigerian phone number to Vapi.ai? Any insights on the process or common pitfalls to avoid would be greatly appreciated.
v
To connect your existing Nigerian phone number to Vapi.ai, you need to import it via Twilio. Here’s a concrete example using the API:
Copy code
bash
curl -X POST https://api.vapi.ai/phone-numbers/import \
  -H "Authorization: Bearer YOUR_VAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "provider": "twilio",
    "number": "YOUR_NIGERIAN_NUMBER",
    "twilioAccountSid": "YOUR_TWILIO_SID",
    "twilioAuthToken": "YOUR_TWILIO_AUTH_TOKEN"
  }'
Replace the placeholders with your actual details. This will verify and configure your number for use with Vapi.ai ([see docs](https://docs.vapi.ai/phone-calling)). Source: - [Phone Calling](https://docs.vapi.ai/phone-calling)
c
Hi zachh mango, To integrate and configure phone numbers with Vapi, you have two primary options: 1. Create a free US phone number: You can use the [Vapi dashboard](https://docs.vapi.ai/phone-calling#overview) or the relevant API endpoint. Note that free numbers are for US national use only. 2. Import your existing number: This is suitable for international or custom use cases. You can import phone numbers from providers like Twilio using your Twilio credentials. Start by purchasing a number from Twilio if you haven't already, obtain your Account SID and Auth Token, and use the [import feature](https://docs.vapi.ai/phone-numbers/import-twilio) on the Vapi dashboard. For SIP integrations, make sure your provider supports SIP trunking. Vapi supports SIP trunk integration, which allows efficient call handling through providers like Telnyx and Plivo. You can find additional setup guides for [Telnyx](https://docs.vapi.ai/advanced/sip/telnyx) and [Plivo](https://docs.vapi.ai/advanced/sip/plivo) in the documentation. If you're dealing with international numbers and providers, confirm that they are supported by Vapi and that you've followed the correct import and setup procedures listed in the respective guides.
2 Views