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
curl https://api.platic.ai/v1/cases/$CASE_ID \
-H "Authorization: Bearer $PLATIC_API_KEY" const { case: theCase, events } = await platic.cases.get("case_123"); Path parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
caseId | string | Case 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
| Field | Type | Description |
|---|---|---|
id | string | Case id |
workspaceId | string | The case's workspace |
number | number | Consecutive number in the workspace. All escalations share it |
folio | string | The escalation's prefix and the number with at least 4 digits: INV-0143. It is what your team sees |
escalationId | string | Id of the escalation it was opened with |
escalationSnapshot | object | What 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 |
status | string | open or closed |
priority | string | low, normal, high or urgent |
summary | string | What is going on, in the words of whoever escalated. Can be empty |
fields | object | The data that was collected, by the escalation's key |
contactId | string | The case's contact |
conversationId | string | The conversation where it was opened. On comments, the post |
channelId, platform | string | null | Channel and platform of the conversation |
relatedConversationIds | array | Other 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, threadId | string | null | Only on comments: the post (the same id as conversationId) and the thread. null on direct messages |
agentId | string | null | The conversation's agent |
openedBy | object | Who opened it: kind (agent, user, api or system) and id |
assigneeIds, assigneeEmails | array | The owners, by id and by email |
acceptedBy, acceptedByEmail | string | null | Who took it, by id and by email. null if nobody has taken it |
acceptedAt | string | null | When it was taken |
lastActivityAt | string | Last change or note on the case |
maxOpenAt | string | When it closes on its own because of lifecycle.maxOpenDays |
autoCloseAt | string | null | When 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 |
discardAt | string | null | When it is discarded on its own (discarded) if nobody takes it. null if it is off or as soon as someone takes it |
discardWarnAt | string | null | When the owners are warned (halfway through the untakenDiscardHours period). null if it is off or on taking it |
discardWarnedAt | string | null | When the notice before the discard was sent, or null if it has not been sent yet |
closedAt | string | null | When it closed |
closedBy | object | null | Who closed it. kind is system when it closed on its own |
closeReason | string | null | resolved, discarded, unresolved or expired (closed on its own) |
closeNote | string | null | The closing note |
createdAt, updatedAt | string | Dates in ISO 8601 |
The event log
Each element of events:
| Field | Type | Description |
|---|---|---|
id | string | Event id. Sorting by id is sorting in time |
caseId | string | The case |
actor | object | Who did it: kind and id |
at | string | When, in ISO 8601 |
kind | string | What happened. See the table below |
data | object | The detail, depending on kind |
kind | data |
|---|---|
opened | folio, escalationId, priority, assigneeIds and summary it started with |
assigned | added and removed: the people who joined and left the owners |
accepted | userId (who took it), previousUserId (who had it, or null) and notifyCustomer |
priority_changed | before and after |
fields_changed | before and after, only with the data that changed. null means it had no value or was deleted |
summary_changed | before and after |
note | text |
discard_warned | Notice sent to the owners halfway through the period before the automatic discard |
closed | reason and note |
Errors
| Status | details.code | When |
|---|---|---|
404 | CASE_NOT_FOUND | The case does not exist in this workspace |
The errors that come up on any operation are in the introduction.
Notes
- To read only the log, use get the event log.
- From an AI agent, the tool is
get_case. It also returns the log.