Skip to Content
SIP trunks

Archive a SIP trunk

Permissionsip-trunks:deleteAuthentication
DELETE
/sip-trunks/{id}

Idempotently soft-archives a trunk and schedules provider cleanup. Returns 409 while active phone numbers still reference it. Reassign or archive those numbers first.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Use a Voice API key or connected-app OAuth access token. Authentication.

Path Parameters

id*string
Formatuuid

Header Parameters

If-Match?string

Optional strong ETag (or *) from a prior response. A stale tag returns 412 without changing the resource.

Response Body

The trunk is archived. Repeating the operation is a successful no-op.

Example Request
curl -X DELETE 'https://api.kejue.co/v1/sip-trunks/497f6eca-6276-4993-bfeb-53cbbbba6f08'
Example Response
Empty