cURL
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." }
Buy a phone number
Authorization header containing API key. You can find your API key in the dashboard under 'API Keys'.
Phone number purchased successfully
The response is of type object.
object
Was this page helpful?