POST
/
phone_numbers
/
purchase
curl --request POST \
  --url https://api.vogent.ai/api/phone_numbers/purchase \
  --header 'Content-Type: application/json' \
  --data '{
  "number": "<string>"
}'
{
  "id": "<string>",
  "number": "+18001234567",
  "agentId": "<string>"
}

Body

application/json
number
string
required

The number as returned by the phone number search endpoint.

Response

200
application/json
Successful operation
id
string
required
number
string
required

The number in e.164 format.

Example:

"+18001234567"

agentId
string | null
required

The ID of the linked agent, if the phone number is linked to one.