POST
/
api
/
v1
/
phone-numbers
/
purchase

Authorizations

Authorization
string
headerrequired

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

Body

application/json
phoneNumber
string
required

The phone number to purchase

countryCode
string
required

The country code for the phone number

Response

201 - application/json
phone
string
required

The phone number

agentId
string
required

The agent ID

country
string
required

The country code