Skip to main content
POST
Add a phone number for a user.

Authorizations

Authorization
string
header
required

Pass the API key in the Authorization header, You need to put Token keyword before the API key. e.g. 'Authorization: Token '

Body

application/json
type
enum<string>
required

The type of phone number to add, TWILIO in this case.

Available options:
TWILIO
phoneNumber
string
required

The phone number to add to the Twilio numbers of a user.

Minimum string length: 1
label
string
required

A label to identify the phone number.

Minimum string length: 1
twilioAccountSid
string
required

The Twilio Account SID associated with the Twilio number.

Minimum string length: 1
twilioAuthToken
string
required

The Twilio Auth Token for authenticating API requests.

Minimum string length: 1

Response

Successful response

success
boolean
Example:

true

message
string
Example:

"Success"

data
object