POST
/
phone-numbers
/
buy-phone-number
curl --request POST \
  --url https://api.puretalk.ai/api/phone-numbers/buy-phone-number \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '{
  "phone_number": "<string>"
}'
{
  "err": false,
  "msg": "Phone number purchased successfully."
}

Authorizations

X-API-KEY
string
header
required

Authorization header containing API key. You can find your API key in the dashboard under 'API Keys'.

Body

application/json

Response

201
application/json

Phone number purchased successfully

The response is of type object.