cURL
curl --request POST \ --url https://eu-cloudflare.vg-stuff.com/utils/buy-twilio-number \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "number": "<string>", "agentId": "<string>", "capabilities": [ "voice", "sms" ] } '
{ "phoneNumber": "<string>", "phoneNumberSid": "<string>", "message": "<string>" }
Purchase a new Twilio phone number to use with your AI agents for voice calls.
{ "number": "+14155551234", "agentId": "your-agent-id" }
+
agentId
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The phone number to buy with the plus & without spaces, example: +1234567890
The agent id to assign the number to, could be empty if you want to assign an agent later.
sms
voice
Successful response