---
docId: doc_290edd69244c405d9082ddda2c06d859
title: Disconnect an escalation
description: Removes an escalation from an agent. It creates a version from the published one and publishes it immediately.
api:
  group: agentes/escalaciones
  auth: bearer
  operations:
    - operationId: disconnectAgentEscalation
      method: DELETE
      path: '/v1/agents/{agentId}/escalations/{escalationId}'
      postmanName: Disconnect an escalation
---

<script>
  import { Ways } from '$lib/components';
</script>

# Disconnect an escalation

Stop using an escalation on this agent by sending its `escalationId`. As with [connecting it](/api-reference/agents/escalations/connect), the change **creates a version from the published one and publishes it immediately**. The escalation remains in the library and on other agents; open cases do not change.

## Example

<Ways tabs="api,sdk">
<Ways.Way name="api">

```bash
curl -X DELETE https://api.platic.ai/v1/agents/$AGENT_ID/escalations/$ESCALATION_ID \
  -H "Authorization: Bearer $PLATIC_API_KEY"
```

</Ways.Way>
<Ways.Way name="sdk">

```ts
await platic.agents.escalations.disconnect("agent_123", "escalation_123");
```

</Ways.Way>
</Ways>

## Path parameters

| Parameter | Type | Description | Required |
|-----------|------|-------------|----------|
| `agentId` | string | Agent id | ✓ |
| `escalationId` | string | Escalation id | ✓ |

## Request body

It takes no body.

## Response

`200 OK` with the escalations the agent has left, the new version and the publication.

```json
{
  "status": "success",
  "data": {
    "changed": true,
    "items": [
      { "escalationId": "Et7hQ2mVx9LpRk3s", "enabled": true }
    ],
    "version": {
      "versionId": "v9",
      "number": 9,
      "basedOnVersionId": "v8",
      "restoredFromVersionId": null,
      "copiedFrom": null,
      "createdAt": "2026-11-12T17:20:00.000Z",
      "createdBy": { "kind": "api_key", "keyId": "Ak7Pz2Lm9Qx4Wc6e" },
      "source": "api",
      "via": null,
      "note": ""
    },
    "publication": {
      "agentId": "Ag6bV8nM1qW3eR5t",
      "publication": { "versionId": "v9", "number": 9 },
      "last": {
        "publicationId": "p6",
        "action": "publish",
        "versionId": "v9",
        "previousVersionId": "v8",
        "createdAt": "2026-11-12T17:20:00.000Z",
        "createdBy": { "kind": "api_key", "keyId": "Ak7Pz2Lm9Qx4Wc6e" },
        "source": "api",
        "via": null,
        "note": ""
      }
    }
  }
}
```

The same fields as [Connect an escalation](/api-reference/agents/escalations/connect#response). If the escalation wasn't connected, `changed` is `false` and nothing is published.

## Errors

| Status | `details.code` | When |
|--------|----------------|------|
| `403` | `FORBIDDEN` | The credential can't edit this agent |
| `404` | `AGENT_NOT_FOUND` | The agent doesn't exist in the workspace or was deleted |
| `409` | `DRAFT_PENDING` | The agent's draft has unpublished changes. [Publish it](/api-reference/agents/publications/publish) first, or make the change in `assistance.escalations` of the [draft](/api-reference/agents/drafts/update) and publish it with the rest |
| `409` | `COPY_INCOMPLETE` | The agent is a copy whose files didn't finish connecting |
| `409` | `CONFLICT` | Someone else changed the agent at the same time. Try again |

The format and codes for the rest of the API are in [Errors](/api-reference/errors).

## Notes

- It needs the Agents permission and being able to edit the agent.
- For the agent to stop using the escalation without removing it, send it with `enabled: false` in [Connect an escalation](/api-reference/agents/escalations/connect).
- For no agent to use it, [archive it](/api-reference/escalations/archive).
- From an AI agent, the tool is [`disconnect_agent_escalation`](/mcp/tools#escalations).
