List conversations

Returns a paginated conversation summary. To download a thread's history, use Get conversation with its id.

GET https://api.platica.mx/v1/conversations

Query parameters

ParameterTypeDescriptionRequired
limitintegerMaximum number of conversations to return. Default: 50
pageTokenstringnextPageToken cursor from the previous response. Preferred over offset. Cannot be combined with offset, and is invalidated if you change the filters or the sort
offsetintegerNumber of conversations to skip. Legacy alternative to pageToken; capped at 100000
channelIdstringFilter by channel identifier
clientIdstringFilter by the client attributed to the conversation
agentIdstringFilter by the conversation's principal agent
sortBystringSort field: lastUpdate or creationDate
sortDirectionstringSort direction: asc or desc
tagsarrayList of tags to filter by. May be sent as a CSV value in the query string
dateFilterobjectFilter by specific date or range

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": "Soporte Técnico",
      "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": "Juan Pérez",
          "phoneNumber": "1234567890",
          "topic": "Problemas técnicos",
          "platform": "whatsapp",
          "status": "active",
          "operation": "automatic",
          "messageCount": 12,
          "owners": [
            "soporte@empresa.com"
          ],
          "tags": [
            "vip",
            "soporte"
          ],
          "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, canonical document ID of the conversation. Use it in GET and PATCH /v1/conversations/{id}
conversationIdChat thread ID. It uses the chat_* format in the Chat API and does not identify the client
clientIdID of the client attributed to the conversation
agentIdPrincipal agent ID; temporary delegation to a subagent does not change it
sourceInternal origin when available (for example api_chat); may be null for legacy conversations
canSendDirectMessageCan only be false on WhatsApp, Instagram, and Messenger/Facebook; calculated from the latest user message. Always true for internal Platica chats
workspaceIdID of the workspace the conversation belongs to
channelIdCommunication channel ID
contactNameContact/customer name
phoneNumberCustomer phone number
topicConversation topic or subject
platformMessaging platform (whatsapp, telegram, etc.)
statusOperational stage: initiated, active, finished, spam, or expired
operationConversation operation mode
messageCountTotal number of messages
ownersList of responsible-user emails
tagsTags associated with the conversation
creationDateConversation creation date
lastUpdateLast update date
FieldDescription
limitMaximum number of results per page
offsetNumber of results skipped
hasMoreIndicates whether more results are available in that workspace
nextPageTokenCursor to request the next page; null when no results are left. A single token covers every workspace the key can read, which is why it sits at the root instead of inside each one