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

# List Conversations

> Return a paginated list of the authenticated user's conversations.

Only active (non-deleted) conversations are returned, ordered newest-first.

Args:
    user:   The authenticated user.
    db:     Database session.
    limit:  Maximum rows to return (1–200, default 50).
    offset: Rows to skip for pagination (default 0).

Returns:
    List of ``ConversationSchema`` objects with thread_id, title,
    message_count, created_at, and (for branch threads) the parent
    thread id and branch point turn.



## OpenAPI

````yaml /openapi.json get /api/conversations
openapi: 3.1.0
info:
  title: HAI-Co² API
  description: Human-AI Co-Construction reference implementation.
  version: 0.1.0
servers:
  - url: https://haico.gr
    description: Production
  - url: https://dev.haico.gr
    description: Development
  - url: http://localhost:8000
    description: Local development
security: []
paths:
  /api/conversations:
    get:
      tags:
        - Conversations
      summary: List Conversations
      description: >-
        Return a paginated list of the authenticated user's conversations.


        Only active (non-deleted) conversations are returned, ordered
        newest-first.


        Args:
            user:   The authenticated user.
            db:     Database session.
            limit:  Maximum rows to return (1–200, default 50).
            offset: Rows to skip for pagination (default 0).

        Returns:
            List of ``ConversationSchema`` objects with thread_id, title,
            message_count, created_at, and (for branch threads) the parent
            thread id and branch point turn.
      operationId: list_conversations_api_conversations_get
      parameters:
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 200
            minimum: 1
            default: 50
            title: Limit
        - name: offset
          in: query
          required: false
          schema:
            type: integer
            minimum: 0
            default: 0
            title: Offset
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ConversationSchema'
                title: Response List Conversations Api Conversations Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    ConversationSchema:
      properties:
        thread_id:
          type: string
          title: Thread Id
        title:
          anyOf:
            - type: string
            - type: 'null'
          title: Title
        message_count:
          type: integer
          title: Message Count
        created_at:
          type: string
          format: date-time
          title: Created At
        parent_thread_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Parent Thread Id
        branch_point_turn:
          anyOf:
            - type: integer
            - type: 'null'
          title: Branch Point Turn
      type: object
      required:
        - thread_id
        - title
        - message_count
        - created_at
      title: ConversationSchema
      description: >-
        Serialised conversation record returned by the conversations list
        endpoint.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      description: >-
        A personal access token (`haico_pat_...`), created under Profile → API
        keys. Send it as `Authorization: Bearer <key>`. The browser session JWT
        is also accepted but is an internal mechanism and is not part of the
        public contract.
      scheme: bearer

````