Skip to main content

List Conversations

Retrieves a paginated list of conversations, allowing for various filtering options to narrow down results. This endpoint powers the main conversation list in the Global Conversations analytics page. Method: GET Path: /api/v1/conversations

Query Parameters

ParameterTypeOptionalDefaultDescription
pagenumberYes1The page number for pagination.
sizenumberYes15The number of items per page.
modestringYesallView mode. Can be all (all conversations) or review (unreviewed conversations matching review criteria).
searchTextstringYesText to search within conversation messages.
startDatestringYesStart date for filtering conversations (YYYY-MM-DD).
endDatestringYesEnd date for filtering conversations (YYYY-MM-DD).
autoLabels[]array[string]YesArray of auto labels to filter by (e.g., autoLabels[]=Uncertain&autoLabels[]=Troubleshooting).
integration_ids[]array[string]YesArray of Integration IDs to filter by.

Response Body

The response is a JSON object containing the list of conversations and pagination details.
{
  "items": [
    {
      "id": "string (Session ID)",
      "integration_id": "string (Originating Integration ID)",
      "started_at": "string (ISO 8601 datetime)",
      "last_message_at": "string (ISO 8601 datetime)",
      "messages_count": "number",
      "status": "string (e.g., 'active', 'closed')",
      "auto_labels": ["string"],
      "is_reviewed": "boolean"
    }
    // ... more conversation items
  ],
  "total_items": "number",
  "total_pages": "number",
  "page": "number",
  "size": "number"
}

AnalyticsConversation Object Properties

PropertyTypeDescription
idstringUnique identifier for the conversation session.
integration_idstringID of the integration where the conversation originated.
started_atstringISO 8601 timestamp of when the conversation started.
last_message_atstringISO 8601 timestamp of the last message in the conversation.
messages_countnumberTotal number of messages in the conversation.
statusstringCurrent status of the conversation (e.g., active, closed, reviewed).
auto_labelsarray[string]List of automatically assigned labels (e.g., Uncertain, Troubleshooting).
is_reviewedbooleanIndicates if the conversation has been marked as reviewed.
The integration_name field seen in the frontend is resolved client-side by mapping integration_id to a known integration name and is not part of this API response directly.

Example Request

curl -X GET \
  '/api/v1/conversations?page=1&size=10&mode=review&autoLabels[]=Uncertain&integration_ids[]=<YOUR_INTEGRATION_ID>' \
  -H 'Authorization: Bearer <YOUR_ACCESS_TOKEN>'
I