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

This endpoint expects an object.
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: "^\+[1-9]\d{6,14}$"

The phone number in E.164 format

typeenum

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

Allowed values: