POST
/
utils
/
buy-twilio-number
Buy a Twilio number
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>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
number
string
required

The phone number to buy with the plus & without spaces, example: +1234567890

agentId
string

The agent id to assign the number to, could be empty if you want to assign an agent later.

Response

Successful response

phoneNumber
string
required
phoneNumberSid
string
required
message
string
required