Get an escalation
SDK platic.escalations.get()
Check when an escalation is used, what data it requests and who is assigned the case. Send its escalationId; you can read both active and archived escalations.
Example
curl https://api.platic.ai/v1/escalations/$ESCALATION_ID \
-H "Authorization: Bearer $PLATIC_API_KEY" const escalation = await platic.escalations.get("escalation_123"); Path parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
escalationId | string | Escalation id | ✓ |
Response
200 OK
{
"status": "success",
"data": {
"id": "Et7hQ2mVx9LpRk3s",
"workspaceId": "Wk5rT8yUi2OpAs4d",
"name": "Invoice error",
"description": "The customer says their invoice has a wrong detail (tax ID, company name or amount) and asks to fix it.",
"prefix": "INV",
"color": "#2563EB",
"fields": [
{"key": "order_number", "label": "Order number", "kind": "text", "required": true, "customFieldId": null, "sync": "fill_empty"},
{"key": "tax_id", "label": "Correct tax ID", "kind": "text", "required": true, "customFieldId": null, "sync": "fill_empty"},
{"key": "email", "label": "Email for the invoice", "kind": "email", "required": false, "customFieldId": "billing_email", "sync": "fill_empty"}
],
"defaultPriority": "normal",
"assignment": {
"mode": "contact_owner",
"userIds": ["Us9fG3hJ6kL2mN8b"],
"userEmails": ["billing@acme.com"]
},
"agent": {
"keepReplying": false,
"canClose": false,
"waitMessage": "I passed your case to the billing team. They will write to you as soon as they can."
},
"lifecycle": {"inactivityCloseHours": null, "maxOpenDays": 14, "untakenDiscardHours": 72},
"allowManual": true,
"status": "active",
"createdAt": "2026-11-10T16:20:00.000Z",
"createdBy": {"kind": "api", "id": "Ak7Pz2Lm9Qx4Wc6e"},
"updatedAt": "2026-11-10T16:20:00.000Z",
"updatedBy": {"kind": "api", "id": "Ak7Pz2Lm9Qx4Wc6e"},
"archivedAt": null
}
} | Field | Type | Description |
|---|---|---|
id | string | Escalation id. It is the escalationId to open cases and to connect it to an agent |
workspaceId | string | The escalation's workspace |
name | string | Name of the escalation |
description | string | When it is escalated. The agent reads it to decide whether to use this escalation |
prefix | string | 2 to 4 uppercase letters. It goes at the start of the case number: INV-0143 |
color | string | Color in #RRGGBB |
fields | array | The data to collect before opening the case. Each includes key, label, kind (text, email, number, phone or date), required, customFieldId (the contact custom field it is linked to, or null) and sync (fill_empty or overwrite). See create an escalation |
defaultPriority | string | Priority each case starts with: low, normal, high or urgent |
assignment.mode | string | Who handles the case. contact_owner: the contact's owners (the owners of the conversation, the contact and the agent) plus the people in userIds. See create an escalation |
assignment.userIds, assignment.userEmails | array | The people the escalation adds to the contact's owners, by id and by email. Empty if it adds nobody |
agent.keepReplying | boolean | true: the agent keeps answering while the case is open. false: it pauses and the conversation moves to assistance |
agent.canClose | boolean | true: the agent can close the case, only as resolved |
agent.waitMessage | string | null | With keepReplying: false: what the agent tells the contact when escalating with this escalation. null if it has none |
lifecycle.inactivityCloseHours | number | null | Hours without activity after which the case closes on its own as expired. null: it does not close for inactivity |
lifecycle.maxOpenDays | number | Days the case can stay open. When they pass it closes on its own as expired |
lifecycle.untakenDiscardHours | number | null | Hours after which the case is discarded on its own (discarded) if nobody takes it: 24, 48, 72 or 168, or null if it is off. Halfway through the period the owners are warned |
allowManual | boolean | true: a person or the API can also open cases of this escalation by hand. false: only the agent uses it |
status | string | active or archived |
createdAt, updatedAt | string | Dates in ISO 8601 |
createdBy, updatedBy | object | Who created it and who changed it last: kind (user, api, agent or system) and id |
archivedAt | string | null | When it was archived, or null |
Errors
| Status | details.code | When |
|---|---|---|
404 | ESCALATION_NOT_FOUND | The escalation does not exist in this workspace |
The errors that come up on any operation are in the cases introduction.
Notes
- From an AI agent, the tool is
get_escalation.