List cases
SDK platic.cases.list()
Find cases by status, assignee, priority or conversation. Use a result’s id to open its details. The list shows workspace cases in pages, newest first, without the log. In the API, contactId is a clients ID.
Example
curl "https://api.platic.ai/v1/cases?status=open" \
-H "Authorization: Bearer $PLATIC_API_KEY" const { data: cases } = await platic.cases.list({ status: "open" }); Query parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
status | string | open or closed | - |
escalationId | string | Only those of this escalation | - |
contactId | string | Only those of this contact | - |
conversationId | string | Only those of this conversation. On comments, the post | - |
threadId | string | Only on comments: only those of this thread, the id of the comment that opens it | - |
assigneeId | string | Only those that have this person as an owner: user id or email of a member | - |
priority | string | low, normal, high or urgent | - |
limit | integer | From 1 to 100. Default, 20 | - |
pageToken | string | The nextPageToken of the previous page | - |
Filters combine: ?status=open&assigneeId=billing@acme.com returns that person's open cases.
Response
200 OK. data is the page and nextPageToken the cursor of the next one, or null on the last.
{
"status": "success",
"data": [
{
"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
}
],
"nextPageToken": "Es1aB3cD5eF7gH9iJ0kL"
} Each element of data is a case, with the fields in get a case.
Errors
| Status | details.code | When |
|---|---|---|
400 | INVALID_REQUEST | A filter is not valid, assigneeId is not a member of the workspace, limit is out of range, the pageToken is not from this list or you sent an unknown parameter. Paginate with pageToken, not with cursor or offset |
The errors that come up on any operation are in the introduction.
Notes
- To find conversations with cases (not the cases), filter list conversations (V1) with
escalationIdandcaseStatus. - From an AI agent, the tool is
list_cases.