POST
/
phone_numbers
Create a phone number
curl --request POST \
  --url https://api.vogent.ai/api/phone_numbers \
  --header 'Content-Type: application/json' \
  --data '{
  "type": "purchase",
  "purchase": {
    "number": "<string>"
  },
  "sipImport": {
    "phoneNumber": "<string>",
    "terminationUri": "<string>",
    "username": "<string>",
    "password": "<string>"
  },
  "vogentSip": {
    "sipPrefix": "<string>",
    "username": "<string>",
    "password": "<string>"
  }
}'
{
  "id": "<string>",
  "number": "+18001234567",
  "type": "PSTN",
  "agentId": "<string>"
}

Body

application/json

Create a new phone number

The body is of type object.

Response

200
application/json

Successful operation

The response is of type object.