List conversations
List conversations with filters and pagination, without downloading their messages. To read a full thread, use Get a conversation with its id.
Example
curl "https://api.platic.ai/v1/conversations?channelId=wb-123&limit=20" \
-H "Authorization: Bearer $PLATIC_API_KEY" Query parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
limit | integer | Maximum number of conversations to return. Default: 50 | — |
pageToken | string | Use the previous response's nextPageToken. Prefer it to offset; do not combine both or change the filters or sort order | — |
offset | integer | Number of conversations to skip. Legacy alternative to pageToken; maximum 100000 | — |
channelId | string | Filter by channel identifier | — |
clientId | string | Filter by the contact attributed to the conversation | — |
agentId | string | Filter by the conversation's main agent | — |
platform | string | Filter by platform: whatsapp, facebook, instagram, email, livechat, webchat, telegram or platica. With email, only email threads | — |
sortBy | string | Sort field: lastUpdate or creationDate | — |
sortDirection | string | Sort direction: asc or desc | — |
kind | string | chat (default): messaging conversations. post: only post comment threads. all: both. To work with posts use /v1/posts | — |
tags | array | List of tags to filter by. Can be sent as CSV in the query string | — |
dateFilter | object | Filter by a specific date or a range | — |
escalationId | string | Only conversations with cases from these escalations. One or several, comma-separated or with the parameter repeated. Up to 100 | — |
caseStatus | string | open, closed or any: the status of those cases. With escalationId and no caseStatus, open | — |
workspace | string | Read only that workspace. Without it, every workspace of the credential is read. A workspace the credential does not cover answers 400 | — |
The clientId and agentId filters apply before pagination. Use one of them: they cannot be combined with each other, channelId or tags. You can add sorting and dateFilter.
Use escalationId and caseStatus to find conversations with at least one case from those escalations in that status. Omit escalationId to include every escalation: ?caseStatus=open returns conversations with an open case.
With tags or more than 30 escalations, a page may have fewer than limit results and still indicate hasMore: true. Keep sending nextPageToken until it is null.
Specific date:
GET /v1/conversations?dateFilter={"type":"specific","date":"2024-01-15"} Date range:
GET /v1/conversations?dateFilter={"type":"range","startDate":"2024-01-01","endDate":"2024-01-31"} Response
{
"workspaces": [
{
"id": "ws_001",
"name": "Technical Support",
"conversations": [
{
"id": "conv_001",
"conversationId": "conv-id-19229",
"clientId": "client_123",
"agentId": "agent_001",
"source": null,
"canSendDirectMessage": true,
"workspaceId": "ws_001",
"channelId": "channel_001",
"contactName": "Ana",
"phoneNumber": "1234567890",
"topic": "Technical issues",
"platform": "whatsapp",
"email": null,
"kind": "chat",
"status": "active",
"operation": "automatic",
"messageCount": 12,
"owners": [
"support@acme.com"
],
"tags": [
"vip",
"support"
],
"cases": {
"open": true,
"openCount": 1,
"openIds": ["Es4kP9wLx2QmZ7bN1cVd"],
"topPriority": "high",
"oldestOpenAt": "2025-03-15T10:12:00.000Z",
"releasedAt": null,
"untakenCount": 1,
"attention": true
},
"creationDate": "2025-03-15T10:00:00Z",
"lastUpdate": "2025-03-15T10:15:00Z"
}
],
"conversationsCount": 1,
"pagination": {
"limit": 50,
"offset": 0,
"hasMore": true
}
}
],
"nextPageToken": "eyJ2IjoxLCJxIjoiYTFi..."
} | Field | Description |
|---|---|
id | Unique ID of the conversation. Use it in GET and PATCH /v1/conversations/{id} |
conversationId | Chat thread ID. In the Chat API it has the format chat_*; it does not identify the contact |
clientId | ID of the contact attributed to the conversation |
agentId | ID of the conversation's main agent; it does not change during a temporary delegation to a subagent |
source | Internal origin when available (for example api_chat); can be null on legacy conversations |
canSendDirectMessage | Can only be false on WhatsApp, Instagram and Messenger/Facebook; computed from the user's last message. On Platica's internal chats it is always true |
workspaceId | ID of the workspace the conversation belongs to |
channelId | ID of the communication channel |
contactName | Name of the contact |
phoneNumber | Contact's phone number |
topic | Topic or subject of the conversation |
platform | Messaging platform (whatsapp, instagram, facebook, email, platica, etc.) |
email | On an email thread, { subject, mailbox, provider, contactEmail }; null on other platforms. See the email block |
kind | chat or post (an Instagram or Facebook post with comments) |
status | Operating stage: initiated, active, finished, spam or expired |
operation | Operation mode: automatic (the agent replies), supervised (a person handles it) or assistance (waiting for a person). See Pause the agent |
messageCount | Messages stored in the conversation. It can be higher than the count in Get a conversation, which does not count empty messages |
owners | List of the responsible users' emails |
tags | Tags on the conversation |
cases | Summary of its cases: how many are open, how many untaken, the highest priority, whether it needs attention and when the last one closed. See the cases summary |
creationDate | Creation date of the conversation |
lastUpdate | Last update date |
| Field | Description |
|---|---|
limit | Maximum number of results per page |
offset | Number of results skipped |
hasMore | Whether more results are available in that workspace |
nextPageToken | Cursor to request the next page; null when no results remain. One token covers every workspace of the key, which is why it sits at the root and not inside each workspace |
Errors
| Status | details.code | When it happens |
|---|---|---|
400 | INVALID_REQUEST | A filter or the pageToken is invalid, for example pageToken together with offset, a conflict between clientId and agentId, or an invalid date (Invalid date: <value>). details.issues says which field |
400 | INVALID_REQUEST | The workspace in ?workspace= is not authorized for your credential. details.available lists the allowed workspaces and details.requested identifies the one you sent |
401 | UNAUTHENTICATED | The credential is missing or invalid |
403 | FORBIDDEN | The credential does not have permission for conversations (Missing <module> permission) |
404 | WORKSPACE_NOT_FOUND | The credential does not carry any workspace |
The general error format is in Errors.
Notes
Use canSendDirectMessage to check the service window of WhatsApp, Instagram and Messenger/Facebook. On any other platform, including internal chats, it is always true.