List a contact's conversations
SDK platic.clients.conversations()
Lists all of a contact's conversations, across channels and agents, including chats from the Chat API. The list does not include messages; messageCount shows how many messages each conversation has.
Tip
To read one thread, use Get a conversation with its unique id, and its history with the conversation's messages. To page through a contact's conversations with the other conversation filters, use List conversations with contactId.
Example
curl "https://api.platic.ai/v1/clients/$CLIENT_ID/conversations?limit=20" \
-H "Authorization: Bearer $PLATIC_API_KEY" const page = await platic.clients.conversations("client_123", { limit: 20 });
// page.data: conversations from every workspace, each with its workspaceId
for await (const conversation of platic.clients.iterateConversations("client_123")) {
console.log(conversation.workspaceId, conversation.id);
} The SDK combines conversations in page.data. Use page.nextPageToken as pageToken, or let iterateConversations read the pages.
Path parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
clientId | string | Can be the contact's ID or their phone number in E.164 format without + | ✓ |
Query parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
channelId | string | Filter by channel identifier | — |
agentId | string | Filter by the conversation's main agent | — |
limit | integer | Conversations per page. Maximum: 200. Default: 50 | — |
offset | integer | Number of conversations to skip for pagination | — |
workspace | string | Look only in that workspace. Without it, every workspace of the credential is searched. A workspace the credential does not cover answers 400 | — |
Response
{
"clientId": "client_123",
"workspaces": [
{
"id": "ws_001",
"name": "Support",
"conversationsCount": 2,
"conversations": [
{
"id": "conv_001",
"conversationId": "5215512345678",
"clientId": "client_123",
"agentId": "agent_001",
"source": null,
"canSendDirectMessage": true,
"workspaceId": "ws_001",
"channelId": "wb_001",
"contactName": "Ana",
"phoneNumber": "5215512345678",
"topic": "Policy inquiry",
"platform": "whatsapp",
"status": "active",
"operation": "automatic",
"messageCount": 12,
"owners": ["support@acme.com"],
"tags": ["vip"],
"cases": {
"open": false,
"openCount": 0,
"openIds": [],
"topPriority": null,
"oldestOpenAt": null,
"releasedAt": "2026-07-20T18:12:00.000Z",
"untakenCount": 0,
"attention": false
},
"creationDate": "2026-07-20T18:00:00Z",
"lastUpdate": "2026-07-20T18:15:00Z"
},
{
"id": "conv_002",
"conversationId": "chat_01JCHAT23456789",
"clientId": "client_123",
"agentId": "agent_002",
"source": "api_chat",
"canSendDirectMessage": true,
"workspaceId": "ws_001",
"channelId": "workspace-ws_001-agent-agent_002",
"contactName": "Ana",
"phoneNumber": "5215512345678",
"topic": "Renewal",
"platform": "platica",
"status": "finished",
"operation": "automatic",
"messageCount": 6,
"owners": [],
"tags": [],
"cases": {
"open": false,
"openCount": 0,
"openIds": [],
"topPriority": null,
"oldestOpenAt": null,
"releasedAt": null,
"untakenCount": 0,
"attention": false
},
"creationDate": "2026-07-15T09:00:00Z",
"lastUpdate": "2026-07-15T09:20:00Z"
}
],
"pagination": {
"limit": 50,
"offset": 0,
"hasMore": false
}
}
]
} | Field | Description |
|---|---|
id | Unique, canonical ID of the conversation document. Use it in /v2/conversations/{conversationId} and in the V1 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 main agent; it does not change during a temporary delegation |
source | Internal origin when it applies (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, platica, etc.) |
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 | Total number of messages. The listing does not include the message content |
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 in ISO 8601 format |
lastUpdate | Last update date in ISO 8601 format |
| Field | Description |
|---|---|
limit | Maximum number of results per page |
offset | Number of results skipped |
hasMore | Whether more results are available |
Errors
| Status | details.code | When it happens |
|---|---|---|
400 | INVALID_REQUEST | A query parameter is not valid. details.issues says which one |
400 | INVALID_REQUEST | The supplied ?workspace= is not authorized. details.available lists the available workspaces and details.requested shows the one you sent |
401 | UNAUTHENTICATED | The credential is missing or invalid |
403 | FORBIDDEN | The credential does not have the Contacts module (Missing contacts permission) |
404 | CLIENT_NOT_FOUND | No contact in that workspace has that identifier, it was deleted, or it is outside the reach of the user's role |
404 | WORKSPACE_NOT_FOUND | The credential does not carry any workspace |
409 | MULTIPLE_CONTACTS_MATCH | Two contacts have that email: use the ID. details.clientIds lists them |
The general error format is in Errors.