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

const { data: cases } = await platic.cases.list({ status: "open" });

Query parameters

ParameterTypeDescriptionRequired
statusstringopen or closed-
escalationIdstringOnly those of this escalation-
contactIdstringOnly those of this contact-
conversationIdstringOnly those of this conversation. On comments, the post-
threadIdstringOnly on comments: only those of this thread, the id of the comment that opens it-
assigneeIdstringOnly those that have this person as an owner: user id or email of a member-
prioritystringlow, normal, high or urgent-
limitintegerFrom 1 to 100. Default, 20-
pageTokenstringThe 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

Statusdetails.codeWhen
400INVALID_REQUESTA 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