DarthSpam
03/24/2025, 12:46 PMVapi Support Bot
03/24/2025, 12:48 PM/phone-numbers
endpoint)
- Importing one from Twilio
- Creating a free phone number by going to the "Phone Numbers" tab in your Vapi dashboard and clicking "Create a Phone Number" (currently only US numbers can be directly created)
[According to the documentation](https://docs.vapi.ai/phone-calling), you have multiple options for obtaining a phone number to work with.
2. **Attach Your Assistant to the Phone Number**:
In the Inbound area of the phone number detail view, select your assistant from the dropdown to ensure it will pick up incoming calls. This step is necessary to utilize Voice AI with that number.
3. **Make a Call**:
You have two options to test your assistant:
- **API Method**: Use the /call/phone
endpoint to place an outbound call from one of your phone numbers. You can specify a temporary assistant or reuse an existing one by providing its ID.
- **Direct Method**: Use the phone number associated with your AI assistant to make a call to your friend's number.
4. **API Call Example**:
Here's a CURL command example you can use (just update with your actual values):
curl -X POST https://api.vapi.ai/call \\
-H "Authorization: Bearer YOUR_API_KEY" \\
-H "Content-Type: application/json" \\
-d '{
"phoneNumberId": "YOUR_PHONE_NUMBER_ID",
"customer": {
"number": "CUSTOMER_PHONE_NUMBER"
},
"assistant": {
"firstMessage": "Hello! This is a test call."
},
"name": "TestCall"
}'
Vapi Support Bot
03/24/2025, 12:48 PMKings Big
03/26/2025, 1:15 PM