Delete a voice endpoint
DELETE/v1/profiles/{profile_id}/voice-endpoints/{endpoint_id}
- Scope
calls:write
Removes it. An endpoint the call routing uses can't be deleted: change the routing first.
Parameters
Path
profile_idstringrequiredThe line (
prf_…).endpoint_idstringrequiredThe voice endpoint (
vep_…).
Response
200 OKDeleted.
idstringrequiredobject"voice_endpoint"requireddeletedtruerequired
Errors
| Status | Code | Means |
|---|---|---|
| 409 | endpoint_in_use | Call routing uses this voice endpoint. |
| 400 | validation_failed | A field is missing or invalid. |
| 401 | unauthorized | The API key is missing, unknown or revoked. |
| 403 | insufficient_scope | The API key lacks the scope this needs. |
| 404 | not_found | No such object, or the key can't see it. |
Every error is { "error": { "code", "message" } }. All error codes.