Connect an escalation
SDK platic.agents.escalations.connect()
Connect an escalation to an agent or change whether it is active with enabled. If anything changes, a version is created from the published version and published immediately. Other settings are preserved.
To review it before applying it, edit assistance.escalations in the draft and publish it later. Each publication appears in the history.
Example
curl -X PUT https://api.platic.ai/v1/agents/$AGENT_ID/escalations/$ESCALATION_ID \
-H "Authorization: Bearer $PLATIC_API_KEY" await platic.agents.escalations.connect("agent_123", "escalation_123"); Path parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
agentId | string | Agent id | ✓ |
escalationId | string | Escalation id | ✓ |
Request body
Optional. Without a body, a new escalation is connected and active. To connect it turned off, or to turn off one that is already connected:
| Field | Type | Description | Required |
|---|---|---|---|
enabled | boolean | true: the agent uses this escalation. false: it stays connected, but the agent doesn't use it. Defaults to true when connecting it; on one already connected, it only changes if you send it | - |
{ "enabled": false } Response
200 OK with the agent's escalations after the change, the new version and the publication.
{
"status": "success",
"data": {
"changed": true,
"items": [
{ "escalationId": "Et2pL8kN4mQ6rS1v", "enabled": false },
{ "escalationId": "Et7hQ2mVx9LpRk3s", "enabled": true }
],
"version": {
"versionId": "v8",
"number": 8,
"basedOnVersionId": "v7",
"restoredFromVersionId": null,
"copiedFrom": null,
"createdAt": "2026-11-12T17:05:00.000Z",
"createdBy": { "kind": "api_key", "keyId": "Ak7Pz2Lm9Qx4Wc6e" },
"source": "api",
"via": null,
"note": ""
},
"publication": {
"agentId": "Ag6bV8nM1qW3eR5t",
"publication": { "versionId": "v8", "number": 8 },
"last": {
"publicationId": "p5",
"action": "publish",
"versionId": "v8",
"previousVersionId": "v7",
"createdAt": "2026-11-12T17:05:00.000Z",
"createdBy": { "kind": "api_key", "keyId": "Ak7Pz2Lm9Qx4Wc6e" },
"source": "api",
"via": null,
"note": ""
}
}
}
} | Field | Type | Description |
|---|---|---|
changed | boolean | false if the escalation was already like that: no version is created or published |
items | array | The agent's escalations after the change, with the fields from List agent escalations. A new escalation goes at the end |
version | object | The created version, with the fields from List versions. With changed: false, the published version |
publication | object | What is published now, with the fields from Get the publication |
Errors
| Status | details.code | When |
|---|---|---|
400 | INVALID_REQUEST | enabled isn't a boolean or the body includes another field |
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 first, or make the change in assistance.escalations of the draft and publish it with the rest |
409 | COPY_INCOMPLETE | The agent is a copy whose files didn't finish connecting. See Copy an agent |
409 | CONFLICT | Someone else changed the agent at the same time. Try again |
422 | INVALID_ESCALATION | The escalation doesn't exist in the workspace or is archived. details.escalations lists each one with reason: not_found or archived |
422 | INVALID_CONFIG | The agent would go over 20 connected escalations |
503 | SUPPORT_SERVICE_UNAVAILABLE | The escalation couldn't be checked. Nothing was published; try again |
The format and codes for the rest of the API are in Errors.
Notes
- It needs the Agents permission and being able to edit the agent.
- Connecting an escalation doesn't copy it: if you edit the escalation, the change applies on all the agents that have it.
- Connecting an escalation doesn't turn assistance on. If
assistanceEnabledisfalse, the agent doesn't escalate: turn it on withassistance.enabledin the draft and publish. The complete steps are in Leave an agent escalating. - From an AI agent, the tool is
connect_agent_escalation.