List agent escalations

SDK platic.agents.escalations.list()

Check which escalations an agent has and which are active. The list uses the published version and keeps the connection order. To read each escalation’s configuration, use its id in escalations with ?ids=.

Example

await platic.agents.escalations.list("agent_123");

Path parameters

ParameterTypeDescriptionRequired
agentIdstringAgent id✓

Response

200 OK

{
  "status": "success",
  "data": {
    "agentId": "Ag6bV8nM1qW3eR5t",
    "versionId": "v7",
    "publication": { "versionId": "v7", "number": 7 },
    "assistanceEnabled": true,
    "items": [
      { "escalationId": "Et7hQ2mVx9LpRk3s", "enabled": true },
      { "escalationId": "Et2pL8kN4mQ6rS1v", "enabled": false }
    ]
  }
}
FieldTypeDescription
agentIdstringAgent id
versionIdstringThe published version the escalations come from
publicationobjectThe published version: versionId and number
assistanceEnabledbooleanWhether the agent's assistance is turned on. Turned off, the agent doesn't escalate even if it has escalations connected
itemsarrayThe connected escalations, in order: escalationId and enabled. With enabled: false the escalation stays connected, but the agent doesn't use it

Errors

Statusdetails.codeWhen
404AGENT_NOT_FOUNDThe agent doesn't exist in the workspace or was deleted

The format and codes for the rest of the API are in Errors.

Notes

  • It needs the Agents permission.
  • An archived escalation can stay in items, but the agent no longer uses it.
  • From an AI agent, the tool is list_agent_escalations.