API referencesip-trunks
Delete a trunk
Refused with 409 sip_trunk_has_numbers while imported numbers still ride it — release them first. Live calls on the trunk are hung up.
Requires the admin scope. A key with less gets 403 insufficient_scope.
AuthorizationBearer <token>
Authorization: Bearer tone_live_… or tone_test_…. The prefix IS the environment: a test key reaches only the sandbox, and no request field bridges the two.
In: header
Path Parameters
id*string
The SIP trunk's id.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X DELETE "https://example.com/v1/sip-trunks/string"{ "data": null}Was this page helpful?