cURL
curl --request DELETE \ --url https://api.vogent.ai/api/phone_numbers/{id} \ --header 'Authorization: Bearer <token>'
{ "id": "<string>", "number": "+18001234567", "type": "PSTN", "agentId": "<string>" }
Deletes a phone number
In the form Bearer <api_key_here>. You can find your api key in your dashboard.
Bearer <api_key_here>
ID of the versioned prompt.
Successful operation
The number in e.164 format, or the SIP username, if the type is SIP_USERNAME.
"+18001234567"
PSTN
SIP_USERNAME
The ID of the linked agent, if the phone number is linked to one.