curl -X DELETE "https://app.talkover.ai/api/v1/sip-trunks/trunk-uuid-1/dids/phone-uuid-1" \
-H "Authorization: Bearer talq_your_environment_token_here"
{
"success": true,
"message": "DID removed"
}
Custom SIP Trunks
Delete SIP Trunk DID
Remove a DID from a SIP trunk
DELETE
/
api
/
v1
/
sip-trunks
/
{trunk_id}
/
dids
/
{phone_number_id}
curl -X DELETE "https://app.talkover.ai/api/v1/sip-trunks/trunk-uuid-1/dids/phone-uuid-1" \
-H "Authorization: Bearer talq_your_environment_token_here"
{
"success": true,
"message": "DID removed"
}
Delete SIP Trunk DID
Remove a DID from a SIP trunk. The DID is also removed from your environment’s phone number pool. Detach it from any agents first.Endpoint
DELETE /api/v1/sip-trunks/{trunk_id}/dids/{phone_number_id}
Path parameters
string
required
SIP trunk UUID.
string
required
UUID of the DID/phone number.
Request headers
string
required
Bearer token. Format:
Bearer talq_your_environment_token_hereExamples
curl -X DELETE "https://app.talkover.ai/api/v1/sip-trunks/trunk-uuid-1/dids/phone-uuid-1" \
-H "Authorization: Bearer talq_your_environment_token_here"
Response
{
"success": true,
"message": "DID removed"
}
Error responses
409 — DID In Use
{
"success": false,
"message": "DID is still assigned to active agents",
"code": "DID_IN_USE"
}
Was this page helpful?