Voice Agents

Disconnect phone numbers

Removes the trunk and its routing rule. Inbound calls to its numbers stop reaching the agent immediately and the numbers are released.

DELETE
/v1/agents/voice/agents/{agent_id}/telephony/trunks/{trunk_id}

Authorization

personalAccessToken
AuthorizationBearer <token>

Personal Access Token of a Dynamiq user — the only credential accepted by the management API (api.*). Prefix dyn_pat_ (legacy uak_ tokens still authenticate). Send as Authorization: Bearer <token>.

In: header

Path Parameters

agent_id*string

Voice agent UUID.

trunk_id*string

SIP trunk UUID.

Response Body

application/json

application/json

application/json

curl -X DELETE "https://example.com/v1/agents/voice/agents/497f6eca-6276-4993-bfeb-53cbbbba6f08/telephony/trunks/497f6eca-6276-4993-bfeb-53cbbbba6f08"
{
  "message": "string"
}
{
  "error": {
    "code": "unauthorized",
    "message": "Unauthorized"
  }
}
{
  "error": {
    "code": "not_found",
    "message": "Not Found"
  }
}