Buy Phone Number
Body
This is the area code of the phone number to purchase.
3
This is the name of the phone number. This is just for your own reference.
40
This is the assistant that will be used for incoming calls to this phone number.
If this is not set, then the phone number will not handle incoming calls.
This is the server URL that will be used to handle this phone number.
All requests will be sent with the call object among other things relevant to that message. You can find more details in the Server URL documentation.
This overrides the serverUrl set on the org. Order of precedence: function.serverUrl > assistant.serverUrl > phoneNumber.serverUrl > org.serverUrl.
This is the secret you can set that Vapi will send with every request to your server. Will be sent as a header called x-vapi-secret.
Same precendence logic as serverUrl.
Response
This is the unique identifier for the phone number.
This is the unique identifier for the org that this phone number belongs to.
This is the ISO 8601 date-time string of when the phone number was created.
This is the ISO 8601 date-time string of when the phone number was last updated.
These are the digits of the phone number.
This is the subscription for the phone number.
This is the subscription's status.
This is the subscription's current period start.
This is the Twilio Account SID for the phone number.
This is for numbers not bought on Vapi.
This is the Twilio Auth Token for the phone number.
This is for numbers not bought on Vapi.
This is the credential that will be used to handle this phone number.
This is for numbers not bought on Vapi.
This is the name of the phone number. This is just for your own reference.
40
This is the assistant that will be used for incoming calls to this phone number.
If this is not set, then the phone number will not handle incoming calls.
This is the server URL that will be used to handle this phone number.
All requests will be sent with the call object among other things relevant to that message. You can find more details in the Server URL documentation.
This overrides the serverUrl set on the org. Order of precedence: function.serverUrl > assistant.serverUrl > phoneNumber.serverUrl > org.serverUrl.
This is the secret you can set that Vapi will send with every request to your server. Will be sent as a header called x-vapi-secret.
Same precendence logic as serverUrl.
Was this page helpful?