sip_trunk.in_use
The workspace's SIP trunk still has numbers riding it and cannot be disconnected.
sip_trunk.in_use means DELETE /v1/sip-trunk was refused because the trunk still has customer-owned numbers assigned to it.
A number added via POST /v1/numbers/byo rides the workspace's own trunk for both signalling and billing. Deleting the trunk out from under a live number would strand it — the box would have nowhere to route its calls, and rating would have nothing to price them against. The platform mirrors the box's own interconnect-delete guard here: a trunk with numbers attached cannot be removed.
Release every BYO number on the trunk first:
curl -X DELETE "https://api.sautikit.com/v1/numbers/{id}" \
-H "Authorization: Bearer $SAUTIKIT_API_KEY"Once none remain, the trunk can be disconnected:
curl -X DELETE "https://api.sautikit.com/v1/sip-trunk" \
-H "Authorization: Bearer $SAUTIKIT_API_KEY"GET /v1/numbers shows which numbers are still assigned before you start releasing them.
{
"error": {
"code": "sip_trunk.in_use",
"message": "remove the numbers on this trunk before disconnecting it",
"request_id": "req_01900000abc"
}
}