Create a phone number

Create a new phone number for the account.

Path parameters

account_idstringRequired
The account for which the phone number should be created.

Headers

AuthorizationstringRequired

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

Phone number params
typeenumRequired

Whether the phone number is local or toll-free

Allowed values:
area_codestringOptionalformat: "^\d{3}$"
The desired area code for this phone number.

Response

Phone number
idstring
Unique identifier for the phone number
numberstringformat: "phone_number"
The phone number in E.164 format
typeenum

Whether the phone number is local, toll-free, or short code

Allowed values: