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

await platic.agents.escalations.connect("agent_123", "escalation_123");

Path parameters

ParameterTypeDescriptionRequired
agentIdstringAgent id✓
escalationIdstringEscalation 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:

FieldTypeDescriptionRequired
enabledbooleantrue: 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": ""
      }
    }
  }
}
FieldTypeDescription
changedbooleanfalse if the escalation was already like that: no version is created or published
itemsarrayThe agent's escalations after the change, with the fields from List agent escalations. A new escalation goes at the end
versionobjectThe created version, with the fields from List versions. With changed: false, the published version
publicationobjectWhat is published now, with the fields from Get the publication

Errors

Statusdetails.codeWhen
400INVALID_REQUESTenabled isn't a boolean or the body includes another field
403FORBIDDENThe credential can't edit this agent
404AGENT_NOT_FOUNDThe agent doesn't exist in the workspace or was deleted
409DRAFT_PENDINGThe 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
409COPY_INCOMPLETEThe agent is a copy whose files didn't finish connecting. See Copy an agent
409CONFLICTSomeone else changed the agent at the same time. Try again
422INVALID_ESCALATIONThe escalation doesn't exist in the workspace or is archived. details.escalations lists each one with reason: not_found or archived
422INVALID_CONFIGThe agent would go over 20 connected escalations
503SUPPORT_SERVICE_UNAVAILABLEThe 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 assistanceEnabled is false, the agent doesn't escalate: turn it on with assistance.enabled in the draft and publish. The complete steps are in Leave an agent escalating.
  • From an AI agent, the tool is connect_agent_escalation.