Phone Numbers
Buy Phone Number
POST
/
phone_numbers
/
buy
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
The telephony provider.
Available options:
twilio
The phone number to buy. If null, a random phone number will be purchased.
Response
200 - application/json
The uri of the phone number.
The phone number including the country code.
The account id associated with the phone number.
The date the phone number was created.
The date the phone number was last updated.
The telephony provider for the phone number.
The id of the phone number.
The agent id that will be used for inbound calls. If null, the phone number will not receive any calls.
The webhooks of the phone number. This is used to fetch the agent at the start of the conversation.