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.

Example

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

ParameterTypeDescriptionRequired
clientIdstringCan be the contact's ID or their phone number in E.164 format without +✓

Query parameters

ParameterTypeDescriptionRequired
channelIdstringFilter by channel identifier—
agentIdstringFilter by the conversation's main agent—
limitintegerConversations per page. Maximum: 200. Default: 50—
offsetintegerNumber of conversations to skip for pagination—
workspacestringLook 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
      }
    }
  ]
}
FieldDescription
idUnique, canonical ID of the conversation document. Use it in /v2/conversations/{conversationId} and in the V1 GET and PATCH /v1/conversations/{id}
conversationIdChat thread ID. In the Chat API it has the format chat_*; it does not identify the contact
clientIdID of the contact attributed to the conversation
agentIdID of the main agent; it does not change during a temporary delegation
sourceInternal origin when it applies (for example api_chat); can be null on legacy conversations
canSendDirectMessageCan 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
workspaceIdID of the workspace the conversation belongs to
channelIdID of the communication channel
contactNameName of the contact
phoneNumberContact's phone number
topicTopic or subject of the conversation
platformMessaging platform (whatsapp, instagram, facebook, platica, etc.)
statusOperating stage: initiated, active, finished, spam or expired
operationOperation mode: automatic (the agent replies), supervised (a person handles it) or assistance (waiting for a person). See Pause the agent
messageCountTotal number of messages. The listing does not include the message content
ownersList of the responsible users' emails
tagsTags on the conversation
casesSummary 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
creationDateCreation date in ISO 8601 format
lastUpdateLast update date in ISO 8601 format
FieldDescription
limitMaximum number of results per page
offsetNumber of results skipped
hasMoreWhether more results are available

Errors

Statusdetails.codeWhen it happens
400INVALID_REQUESTA query parameter is not valid. details.issues says which one
400INVALID_REQUESTThe supplied ?workspace= is not authorized. details.available lists the available workspaces and details.requested shows the one you sent
401UNAUTHENTICATEDThe credential is missing or invalid
403FORBIDDENThe credential does not have the Contacts module (Missing contacts permission)
404CLIENT_NOT_FOUNDNo contact in that workspace has that identifier, it was deleted, or it is outside the reach of the user's role
404WORKSPACE_NOT_FOUNDThe credential does not carry any workspace
409MULTIPLE_CONTACTS_MATCHTwo contacts have that email: use the ID. details.clientIds lists them

The general error format is in Errors.