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

# List Conversations

> Returns recent chat conversations with the last message preview.



## OpenAPI

````yaml GET /api/chat/conversations
openapi: 3.0.3
info:
  title: Sontairo API
  description: REST API for the Sontairo AI agent orchestration platform
  version: 1.0.0
servers:
  - url: https://www.sontairo.com
security:
  - bearerAuth: []
  - cookieAuth: []
paths:
  /api/chat/conversations:
    get:
      tags:
        - Chat
      summary: List conversations
      description: Returns recent chat conversations with the last message preview.
      operationId: listConversations
      parameters:
        - name: workspaceId
          in: query
          required: true
          schema:
            type: string
        - name: projectId
          in: query
          required: false
          schema:
            type: string
      responses:
        '200':
          description: List of conversations
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/Conversation'
components:
  schemas:
    Conversation:
      type: object
      properties:
        id:
          type: string
        workspaceId:
          type: string
        projectId:
          type: string
          nullable: true
        title:
          type: string
        agentId:
          type: string
          nullable: true
        agent:
          type: object
          nullable: true
          properties:
            id:
              type: string
            name:
              type: string
        messages:
          type: array
          items:
            $ref: '#/components/schemas/Message'
        updatedAt:
          type: string
          format: date-time
    Message:
      type: object
      properties:
        id:
          type: string
        role:
          type: string
          enum:
            - USER
            - ASSISTANT
            - SYSTEM
        content:
          type: string
        createdAt:
          type: string
          format: date-time
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Session token issued by the desktop/native auth exchange, sent as
        Authorization: Bearer <token>.
    cookieAuth:
      type: apiKey
      in: cookie
      name: session
      description: Browser session cookie set by the web sign-in flow.

````