Skip to main content
POST
/
api
/
telephony
/
numbers
/
buy
Buy Number
curl --request POST \
  --url http://localhost:8000/api/telephony/numbers/buy \
  --header 'Content-Type: application/json' \
  --data '
{
  "agent_id": "<string>",
  "phone_number": "<string>"
}
'
{
  "phone_number": "<string>",
  "twilio_sid": "<string>",
  "agent_id": "<string>"
}

Body

application/json
agent_id
string
required
phone_number
string
required

Response

Successful Response

phone_number
string
required
twilio_sid
string
required
agent_id
string
required