cURL
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>" }
Creates a phone number of various types (purchase, SIP import, or Vogent SIP).
Create a new phone number
The body is of type object.
object
Successful operation
The response is of type object.