POST
/
api
/
v1
/
phone-numbers
/
purchase

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 purchasing a phone number
phoneNumber
string
required

The phone number to purchase

countryCode
string
required

The country code for the phone number

Response

201
application/json
Phone number purchased successfully
phone
string
required

The phone number

agentId
string
required

The agent ID

country
string
required

The country code