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

const escalation = await platic.escalations.get("escalation_123");

Path parameters

ParameterTypeDescriptionRequired
escalationIdstringEscalation 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
  }
}
FieldTypeDescription
idstringEscalation id. It is the escalationId to open cases and to connect it to an agent
workspaceIdstringThe escalation's workspace
namestringName of the escalation
descriptionstringWhen it is escalated. The agent reads it to decide whether to use this escalation
prefixstring2 to 4 uppercase letters. It goes at the start of the case number: INV-0143
colorstringColor in #RRGGBB
fieldsarrayThe 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
defaultPrioritystringPriority each case starts with: low, normal, high or urgent
assignment.modestringWho 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.userEmailsarrayThe people the escalation adds to the contact's owners, by id and by email. Empty if it adds nobody
agent.keepReplyingbooleantrue: the agent keeps answering while the case is open. false: it pauses and the conversation moves to assistance
agent.canClosebooleantrue: the agent can close the case, only as resolved
agent.waitMessagestring | nullWith keepReplying: false: what the agent tells the contact when escalating with this escalation. null if it has none
lifecycle.inactivityCloseHoursnumber | nullHours without activity after which the case closes on its own as expired. null: it does not close for inactivity
lifecycle.maxOpenDaysnumberDays the case can stay open. When they pass it closes on its own as expired
lifecycle.untakenDiscardHoursnumber | nullHours 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
allowManualbooleantrue: a person or the API can also open cases of this escalation by hand. false: only the agent uses it
statusstringactive or archived
createdAt, updatedAtstringDates in ISO 8601
createdBy, updatedByobjectWho created it and who changed it last: kind (user, api, agent or system) and id
archivedAtstring | nullWhen it was archived, or null

Errors

Statusdetails.codeWhen
404ESCALATION_NOT_FOUNDThe escalation does not exist in this workspace

The errors that come up on any operation are in the cases introduction.

Notes