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
curl https://api.platic.ai/v1/agents/$AGENT_ID/escalations \
-H "Authorization: Bearer $PLATIC_API_KEY" await platic.agents.escalations.list("agent_123"); Path parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
agentId | string | Agent 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 }
]
}
} | Field | Type | Description |
|---|---|---|
agentId | string | Agent id |
versionId | string | The published version the escalations come from |
publication | object | The published version: versionId and number |
assistanceEnabled | boolean | Whether the agent's assistance is turned on. Turned off, the agent doesn't escalate even if it has escalations connected |
items | array | The connected escalations, in order: escalationId and enabled. With enabled: false the escalation stays connected, but the agent doesn't use it |
Errors
| Status | details.code | When |
|---|---|---|
404 | AGENT_NOT_FOUND | The 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.