Needs keys Deletes a SIP trunk. Tried first detaches every attached number (sip_trunk_id becomes null), deletes the shared LiveKit trunks and dispatch rule, then runs provisioning again for each detached number on its own. Check each number's provisioning_status afterwards. An imported number with no termination_uri of its own ends up with error until you give it one with Update phone number. LiveKit steps need LIVEKIT_URL; without it, mock mode records them in List telephony operations.
Request#
| Path parameter | Type | Required | Description |
|---|---|---|---|
id |
string | Yes | The trunk ID, for example sip_trunk_5c1e8a92d4f70b36a1e9c4d2. |
This endpoint takes no query or body parameters.
Example request#
curl -X DELETE https://api.tried.com.au/delete-sip-trunk/sip_trunk_5c1e8a92d4f70b36a1e9c4d2 \
-H "Authorization: Bearer $TRIED_API_KEY"await fetch("https://api.tried.com.au/delete-sip-trunk/sip_trunk_5c1e8a92d4f70b36a1e9c4d2", {
method: "DELETE",
headers: { Authorization: `Bearer ${process.env.TRIED_API_KEY}` },
});import os, requests
requests.delete(
"https://api.tried.com.au/delete-sip-trunk/sip_trunk_5c1e8a92d4f70b36a1e9c4d2",
headers={"Authorization": f"Bearer {os.environ['TRIED_API_KEY']}"},
)Response#
204 No Content
The response has no body. The numbers stay in your workspace.
Errors#
| Status | When |
|---|---|
401 |
Missing or invalid API key. |
403 |
The key's IP allowlist or scopes reject the request. This route needs the numbers scope. Members get The member role is read-only. |
404 |
SIP trunk sip_trunk_... not found in this workspace. |
429 |
Rate limit exceeded. See Rate limits. |
See Errors for the body format.