Get a case

SDK platic.cases.get()

Check a case’s status, assignees and details before handling it. Send its caseId; the response includes the case in data.case and its complete log in data.events, oldest event first. In the API, contactId is a clients ID.

Example

const { case: theCase, events } = await platic.cases.get("case_123");

Path parameters

ParameterTypeDescriptionRequired
caseIdstringCase id✓

Response

200 OK. data has the case in case and its log in events.

{
  "status": "success",
  "data": {
    "case": {
      "id": "Es4kP9wLx2QmZ7bN1cVd",
      "workspaceId": "Wk5rT8yUi2OpAs4d",
      "number": 143,
      "folio": "INV-0143",
      "escalationId": "Et7hQ2mVx9LpRk3s",
      "escalationSnapshot": {
        "name": "Invoice error",
        "prefix": "INV",
        "color": "#2563EB",
        "keepReplying": false,
        "canClose": false,
        "waitMessage": null,
        "inactivityCloseHours": null,
        "untakenDiscardHours": 72,
        "allowManual": true
      },
      "status": "open",
      "priority": "normal",
      "summary": "Asks to fix the tax ID on the invoice for order 48213.",
      "fields": {"order_number": "48213", "tax_id": "ACME010101AB1"},
      "contactId": "Ct3fG5hJ7kL9mN1p",
      "conversationId": "Cv8hN2lP4qR6sT0u",
      "channelId": "Ch2wE4rT6yU8iO0p",
      "platform": "whatsapp",
      "relatedConversationIds": [],
      "postId": null,
      "threadId": null,
      "agentId": "Ag6bV8nM1qW3eR5t",
      "openedBy": {"kind": "agent", "id": "Ag6bV8nM1qW3eR5t"},
      "assigneeIds": ["Us9fG3hJ6kL2mN8b"],
      "acceptedBy": null,
      "acceptedAt": null,
      "lastActivityAt": "2026-11-12T15:04:00.000Z",
      "maxOpenAt": "2026-11-26T15:04:00.000Z",
      "autoCloseAt": null,
      "discardAt": "2026-11-15T15:04:00.000Z",
      "discardWarnAt": "2026-11-14T03:04:00.000Z",
      "discardWarnedAt": null,
      "closedAt": null,
      "closedBy": null,
      "closeReason": null,
      "closeNote": null,
      "createdAt": "2026-11-12T15:04:00.000Z",
      "updatedAt": "2026-11-12T15:04:00.000Z",
      "assigneeEmails": ["billing@acme.com"],
      "acceptedByEmail": null
    },
    "events": [
      {
        "id": "000001-0",
        "caseId": "Es4kP9wLx2QmZ7bN1cVd",
        "actor": { "kind": "agent", "id": "Ag6bV8nM1qW3eR5t" },
        "at": "2026-11-12T15:04:00.000Z",
        "kind": "opened",
        "data": {
          "folio": "INV-0143",
          "escalationId": "Et7hQ2mVx9LpRk3s",
          "priority": "normal",
          "assigneeIds": ["Us9fG3hJ6kL2mN8b"],
          "summary": "Asks to fix the tax ID on the invoice for order 48213."
        }
      }
    ]
  }
}

The case

FieldTypeDescription
idstringCase id
workspaceIdstringThe case's workspace
numbernumberConsecutive number in the workspace. All escalations share it
foliostringThe escalation's prefix and the number with at least 4 digits: INV-0143. It is what your team sees
escalationIdstringId of the escalation it was opened with
escalationSnapshotobjectWhat the case copied from the escalation when it opened: name, prefix, color, keepReplying, canClose, waitMessage, inactivityCloseHours, untakenDiscardHours and allowManual. Editing or archiving the escalation does not change it
statusstringopen or closed
prioritystringlow, normal, high or urgent
summarystringWhat is going on, in the words of whoever escalated. Can be empty
fieldsobjectThe data that was collected, by the escalation's key
contactIdstringThe case's contact
conversationIdstringThe conversation where it was opened. On comments, the post
channelId, platformstring | nullChannel and platform of the conversation
relatedConversationIdsarrayOther conversations of the same contact, on other channels, where the case continues: the contact wrote again there or a note arrived there. Up to 20; empty if there are none
postId, threadIdstring | nullOnly on comments: the post (the same id as conversationId) and the thread. null on direct messages
agentIdstring | nullThe conversation's agent
openedByobjectWho opened it: kind (agent, user, api or system) and id
assigneeIds, assigneeEmailsarrayThe owners, by id and by email
acceptedBy, acceptedByEmailstring | nullWho took it, by id and by email. null if nobody has taken it
acceptedAtstring | nullWhen it was taken
lastActivityAtstringLast change or note on the case
maxOpenAtstringWhen it closes on its own because of lifecycle.maxOpenDays
autoCloseAtstring | nullWhen it closes on its own because of inactivity. null if the escalation does not close for inactivity. It moves with each change on the case and with the conversation's activity
discardAtstring | nullWhen it is discarded on its own (discarded) if nobody takes it. null if it is off or as soon as someone takes it
discardWarnAtstring | nullWhen the owners are warned (halfway through the untakenDiscardHours period). null if it is off or on taking it
discardWarnedAtstring | nullWhen the notice before the discard was sent, or null if it has not been sent yet
closedAtstring | nullWhen it closed
closedByobject | nullWho closed it. kind is system when it closed on its own
closeReasonstring | nullresolved, discarded, unresolved or expired (closed on its own)
closeNotestring | nullThe closing note
createdAt, updatedAtstringDates in ISO 8601

The event log

Each element of events:

FieldTypeDescription
idstringEvent id. Sorting by id is sorting in time
caseIdstringThe case
actorobjectWho did it: kind and id
atstringWhen, in ISO 8601
kindstringWhat happened. See the table below
dataobjectThe detail, depending on kind
kinddata
openedfolio, escalationId, priority, assigneeIds and summary it started with
assignedadded and removed: the people who joined and left the owners
accepteduserId (who took it), previousUserId (who had it, or null) and notifyCustomer
priority_changedbefore and after
fields_changedbefore and after, only with the data that changed. null means it had no value or was deleted
summary_changedbefore and after
notetext
discard_warnedNotice sent to the owners halfway through the period before the automatic discard
closedreason and note

Errors

Statusdetails.codeWhen
404CASE_NOT_FOUNDThe case does not exist in this workspace

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

Notes