POST
/
utils
/
buy-twilio-number
curl --request POST \
  --url https://eu-voiceglow-runtime-vbmbkqccuq-ey.a.run.app/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

200
application/json
Successful response
phoneNumber
string
required
phoneNumberSid
string
required
message
string
required