Skip to main content
POST
Twilio Buy Number

Authorizations

api_key
string
header
required

Headers

Company-Name
string
required

Schema name for multi-tenancy

Body

application/json
twilio_sid
string
required

Twilio account SID used to authenticate.

auth_token
string
required

Twilio Auth Token for the given SID.

phone_number
string
required

The Twilio phone number to be purchased.

Example:

"+12154346029"

friendly_name
string
required

Custom nickname for the phone number.

Example:

"ttesting"

new_number
boolean
required

Flag indicating if a new number is being purchased.

Response

Contact number added successfully

success
boolean
Example:

true

message
string
Example:

"contact number added"

data
object

Contains additional data if any