List Conversations

Returns the conversation history with pagination and filtering options.

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

Query parameters

ParameterTypeDescriptionRequired
limitintegerMaximum number of conversations to return. Default: 50
offsetintegerNumber of conversations to skip for pagination
channelIdstringFilter by channel identifier
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",
          "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,
          "messages": [],
          "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
      }
    }
  ]
}
FieldDescription
idInternal conversation ID
conversationIdPublic conversation ID (hash or customer phone number)
canSendDirectMessageIndicates whether direct messages can be sent (24-hour window active)
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.)
statusConversation status. Can currently be active, finished, spam, or expired
operationConversation operation mode
messageCountTotal number of messages
messagesList of messages. Usually returned empty in the listing
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