Learn how to create and configure phone numbers with Vapi.
Set up a Phone Number
/phone-numbers/buy
` endpoint.If you want to use your own phone number, you can also use the dashboard or the /phone-numbers/import
endpoint. This will use your Twilio credentials to verify the number and configure it with Vapi services.Outbound Calls
/call/phone
endpoint. If the system message will be different with every call, you can specify a temporary assistant in the assistant
field. If you want to reuse an assistant, you can specify its ID in the assistantId
field.Inbound Calls
assistantId
to a phone number and it will use that assistant when receiving inbound calls.You may want to specify the assistant based on the caller’s phone number. If a phone number doesn’t have an assistantId
, Vapi will attempt to retrieve the assistant from your server using your Server URL.