Skip to content

Delete a termination trunk

DELETE
/v1/Accounts/{auth_id}/Trunks/Termination/{trunk_id}
curl --request DELETE \
--url https://api.siprtc.io/v1/Accounts/example/Trunks/Termination/1 \
--header 'Authorization: Basic <credentials>'

Deletes one of your termination trunks, together with its carrier registration, its reachability checks and any per-trunk rates. Outbound calls it carried go out over your other trunks or the platform’s routes from then on.

auth_id
required
string

Your account Auth ID (20 characters). The request always acts on the authenticated account.

trunk_id
required
integer
>= 1

Trunk ID, as returned by create or list

Deleted

Invalid trunk ID, or the SIP proxy could not remove the trunk’s registration

Media type application/json
object
message

What went wrong, in plain words.

string
status

Always “failed”.

string

Example

{
"message": "trunk not found",
"status": "failed"
}

Missing or wrong Auth ID / Auth Secret (answered by the API gateway)

Media type application/json
string

Example generated

example

Signed in as a sub-user (portal login) rather than the account owner: only the owner can change trunks

Media type application/json
object
message

What went wrong, in plain words.

string
status

Always “failed”.

string

Example

{
"message": "trunk not found",
"status": "failed"
}

No trunk with this ID on your account

Media type application/json
object
message

What went wrong, in plain words.

string
status

Always “failed”.

string

Example

{
"message": "trunk not found",
"status": "failed"
}