Skip to main content
DELETE
/
api
/
phone-numbers
/
delete-trunk
/
{trunkId}
Delete trunk by ID
curl --request DELETE \
  --url http://localhost:8080/api/phone-numbers/delete-trunk/{trunkId} \
  --header 'X-API-KEY: <api-key>' \
  --header 'X-API-SECRET: <api-key>'
{
  "success": true,
  "data": {},
  "message": "Trunk deleted"
}

Authorizations

X-API-KEY
string
header
required

API Key for MCP server and external service authentication

X-API-SECRET
string
header
required

API Secret for MCP server and external service authentication

Path Parameters

trunkId
string
required

Unique identifier of the trunk to delete (e.g. Twilio Trunk SID)

Example:

"ST_4Xo2mZgQsfyQ"

Response

Trunk deleted successfully

message
string
status
string
error
string
data
object