cURL
curl --request POST \ --url https://api.voice.ai/agent/v1/agent/purchase-phone-number \ --header 'Content-Type: application/json' \ --data ' { "phone_number": "<string>", "provider": "twilio" } '
{ "phone_number": "<string>", "status": "<string>" }
Attempt to purchase a phone number.
Exact phone number to purchase (e.g., '+15551234567')
Provider: 'twilio' or 'telnyx'
Successful Response