Skip to main content
POST
Create phone number

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json

Input data for creating a phone number

phone
string
required

The phone number

Example:

"+1234567890"

country
string | null
required

The country code

Example:

"US"

Response

Phone number created successfully

phone
string
required

The phone number

Example:

"+1234567890"

agentId
string
required

The agent ID

Example:

"c84951a0-8354-40b0-a1ee-c43d259f6a40"

country
string
required

The country code

Example:

"US"