List conversations

You are reading the previous version (V1) of this endpoint. Go to V2
GET /v1/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

ParameterTypeDescriptionRequired
limitintegerMaximum number of conversations to return. Default: 50—
pageTokenstringUse the previous response's nextPageToken. Prefer it to offset; do not combine both or change the filters or sort order—
offsetintegerNumber of conversations to skip. Legacy alternative to pageToken; maximum 100000—
channelIdstringFilter by channel identifier—
clientIdstringFilter by the contact attributed to the conversation—
agentIdstringFilter by the conversation's main agent—
platformstringFilter by platform: whatsapp, facebook, instagram, email, livechat, webchat, telegram or platica. With email, only email threads—
sortBystringSort field: lastUpdate or creationDate—
sortDirectionstringSort direction: asc or desc—
kindstringchat (default): messaging conversations. post: only post comment threads. all: both. To work with posts use /v1/posts—
tagsarrayList of tags to filter by. Can be sent as CSV in the query string—
dateFilterobjectFilter by a specific date or a range—
escalationIdstringOnly conversations with cases from these escalations. One or several, comma-separated or with the parameter repeated. Up to 100—
caseStatusstringopen, closed or any: the status of those cases. With escalationId and no caseStatus, open—
workspacestringRead only that workspace. Without it, every workspace of the credential is read. A workspace the credential does not cover answers 400—

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..."
}
FieldDescription
idUnique ID of the conversation. Use it in 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 conversation's main agent; it does not change during a temporary delegation to a subagent
sourceInternal origin when available (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, email, platica, etc.)
emailOn an email thread, { subject, mailbox, provider, contactEmail }; null on other platforms. See the email block
kindchat or post (an Instagram or Facebook post with comments)
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
messageCountMessages stored in the conversation. It can be higher than the count in Get a conversation, which does not count empty messages
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 of the conversation
lastUpdateLast update date
FieldDescription
limitMaximum number of results per page
offsetNumber of results skipped
hasMoreWhether more results are available in that workspace
nextPageTokenCursor 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

Statusdetails.codeWhen it happens
400INVALID_REQUESTA 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
400INVALID_REQUESTThe workspace in ?workspace= is not authorized for your credential. details.available lists the allowed workspaces and details.requested identifies the one you sent
401UNAUTHENTICATEDThe credential is missing or invalid
403FORBIDDENThe credential does not have permission for conversations (Missing <module> permission)
404WORKSPACE_NOT_FOUNDThe credential does not carry any workspace

The general error format is in Errors.

Notes