GET
/
phone_numbers
/
{id}
Get Phone Number
curl --request GET \
  --url https://api.vogent.ai/api/phone_numbers/{id}
{
  "id": "<string>",
  "number": "+18001234567",
  "type": "PSTN",
  "agentId": "<string>"
}

Path Parameters

id
string
required

ID of the versioned prompt.

Response

Successful operation

id
string
required
number
string
required

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

Example:

"+18001234567"

type
enum<string>
required
Available options:
PSTN,
SIP_USERNAME
agentId
string | null
required

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