Create a phone number

Creates a phone number of various types (purchase, SIP import, or Vogent SIP).

post/phone_numbers

Request

  • Base URL
    https://api.vogent.ai/api
  • Auth
    HTTP bearer

Request body

type'purchase' | 'sip_import' | 'vogent_sip' required

The type of phone number creation operation.

Response

Successful operation

idstring required
numberstring required

The number in e.164 format, or the SIP username, if the type is SIP_USERNAME.

type'PSTN' | 'SIP_USERNAME' required
agentIdstring nullable required

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

Example response

{
  "number": "+18001234567"
}

Changes

No recorded changes to this operation across all 1 revision of this API.