cURL
curl --request POST \ --url https://eu-gcp-api.vg-stuff.com/v3/utils/buy-twilio-number \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "number": "<string>", "agentId": "<string>" } '
{ "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 (must include + prefix, no spaces, e.g., +1234567890)
Optional agent ID to assign the number to immediately
Successful response
The purchased phone number
The Twilio SID for the phone number
Response message