> ## Documentation Index
> Fetch the complete documentation index at: https://docs.agentictrust.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List conversations

> Returns up to 20 conversations for a given end user, ordered by most recently updated. Only conversations with at least one message are returned.



## OpenAPI

````yaml /openapi.json get /chat/conversations
openapi: 3.0.3
info:
  title: Agentic Trust API
  description: >-
    Runtime API for the Agentic Trust AI customer support platform. Use these
    endpoints to manage conversations, send messages, verify user identity, and
    collect feedback.
  version: 1.0.0
  contact:
    name: Agentic Trust Support
    email: security@agentictrust.com
servers:
  - url: https://platform.agentictrust.com/api/v1
    description: Production
security:
  - ApiKeyHeader: []
tags:
  - name: Widget
    description: Widget configuration endpoints.
  - name: Chat
    description: Conversation and message endpoints.
  - name: Identity
    description: User identity verification endpoints.
  - name: Feedback
    description: Conversation feedback endpoints.
paths:
  /chat/conversations:
    get:
      tags:
        - Chat
      summary: List conversations
      description: >-
        Returns up to 20 conversations for a given end user, ordered by most
        recently updated. Only conversations with at least one message are
        returned.
      operationId: listConversations
      parameters:
        - name: userId
          in: query
          required: true
          schema:
            type: string
            minLength: 1
          description: External user ID to filter conversations.
      responses:
        '200':
          description: List of conversation summaries.
          content:
            application/json:
              schema:
                type: object
                properties:
                  conversations:
                    type: array
                    items:
                      $ref: '#/components/schemas/ConversationSummary'
        '400':
          description: Validation error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationError'
        '401':
          description: Unauthorized.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    ConversationSummary:
      type: object
      properties:
        id:
          type: string
        status:
          type: string
          enum:
            - ACTIVE
            - CLOSED
        messageCount:
          type: integer
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        lastMessagePreview:
          type: string
          nullable: true
        lastMessageRole:
          type: string
          enum:
            - USER
            - ASSISTANT
          nullable: true
    ValidationError:
      type: object
      properties:
        error:
          type: string
          example: Validation error
        details:
          type: array
          items:
            type: object
      required:
        - error
        - details
    Error:
      type: object
      properties:
        error:
          type: string
      required:
        - error
  securitySchemes:
    ApiKeyHeader:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        API key in `lum_pk_*` format. Pass via `x-api-key` header or
        `Authorization: Bearer <key>`.

````