> Purchase a number using twilio or vonage
Go to provider of your choice and purchase a number from their dashboard.
> Import the number to Vapi
1. Goto Vapi Dashboard
2. Select PhoneNumbers from the left side of the dashboard
2A. Click on the import button to import the purchased number from telephony.
> Assign an assistant to the phone number
Run the following curl with your phoneNumberId, assistantId, and private API Key.
curl -X PATCH
https://api.vapi.ai/phone-number/insert-phone-number-id-here \
-H "Authorization: Bearer insert-your-private-api-key" \
-H "Content-Type: application/json" \
-d '{
"assistantId": "insert-assistant-id-here"
}'
> Make an call to your purchased number and it will work!!
Now make a call to your phone number and it will work.