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

# List chats

> Returns the chats you own, chats shared with you, and chats shared with everyone in the workspace, newest activity first. Chats with no messages are left out. Always pass `workspace_id`; without it the list mixes chats from every workspace you belong to.




## OpenAPI

````yaml /openapi/chat.yaml get /ai-chat/conversations
openapi: 3.1.0
info:
  title: Connie Chat API
  version: 1.0.0
  description: >
    Endpoints the Connie web app uses for chat. They authenticate with your
    signed-in browser session — see
    https://docs.connie.ai/api-reference/authentication. These are the app's own
    endpoints and can change when the app changes.
servers:
  - url: https://connie.ai/api
security:
  - sessionCookie: []
tags:
  - name: Chats
    description: List, create, rename, pin and delete chats.
  - name: Turns
    description: Send a message to Connie and stop a running reply.
  - name: Chat messages
    description: Read the saved messages of a chat.
  - name: Artifacts
    description: Workflows, tables, canvases, analytics views and apps attached to a chat.
  - name: Sharing
    description: >-
      Share a chat or a single file or canvas, and read a chat through its
      public link.
paths:
  /ai-chat/conversations:
    get:
      tags:
        - Chats
      summary: List chats
      description: >
        Returns the chats you own, chats shared with you, and chats shared with
        everyone in the workspace, newest activity first. Chats with no messages
        are left out. Always pass `workspace_id`; without it the list mixes
        chats from every workspace you belong to.
      operationId: listConversations
      parameters:
        - name: workspace_id
          in: query
          required: true
          description: Workspace to list chats for. Note the snake-case name.
          schema:
            type: string
            format: uuid
        - name: search
          in: query
          description: >-
            Case-insensitive text matched against chat titles and message
            content. Title matches rank first.
          schema:
            type: string
        - name: project_id
          in: query
          description: Only chats inside this project.
          schema:
            type: string
            format: uuid
        - name: pinned_first
          in: query
          description: >-
            When `true` (and no `search`), your pinned chats come before the
            rest.
          schema:
            type: boolean
        - name: limit
          in: query
          description: Page size, at most 100.
          schema:
            type: integer
            default: 50
            maximum: 100
        - name: offset
          in: query
          schema:
            type: integer
            default: 0
      responses:
        '200':
          description: A page of conversations.
          content:
            application/json:
              schema:
                type: object
                properties:
                  conversations:
                    type: array
                    items:
                      $ref: '#/components/schemas/ConversationListItem'
                  search:
                    type: string
                    description: >-
                      Echo of the search term, present only when `search` was
                      sent.
        '401':
          $ref: '#/components/responses/Unauthorized'
        '500':
          $ref: '#/components/responses/ServerError'
components:
  schemas:
    ConversationListItem:
      allOf:
        - $ref: '#/components/schemas/Conversation'
        - type: object
          properties:
            viewerIsOwner:
              type: boolean
            isShared:
              type: boolean
            sharedMemberCount:
              type: integer
            accessType:
              type: string
              enum:
                - private
                - invited
                - everyone
            hasExternalLink:
              type: boolean
              description: True when the chat has a public link.
    Conversation:
      type: object
      properties:
        id:
          type: string
          format: uuid
        user_id:
          type: string
          format: uuid
          description: The owner.
        workspace_id:
          type: string
          format: uuid
        project_id:
          type:
            - string
            - 'null'
          format: uuid
        title:
          type:
            - string
            - 'null'
        source:
          type:
            - string
            - 'null'
          description: Where the chat was started, for example `webapp`.
        access_type:
          type: string
          enum:
            - private
            - invited
            - everyone
        is_archived:
          type:
            - boolean
            - 'null'
        metadata:
          type:
            - object
            - 'null'
          description: '`starred: true` means you pinned it.'
          additionalProperties: true
        last_message:
          description: Preview of the latest message.
        last_activity_at:
          type: string
          format: date-time
          description: When a message was last posted.
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
    Error:
      type: object
      properties:
        error:
          type: string
          description: Human-readable message.
        code:
          type: string
          description: Machine-readable code, when there is one.
      required:
        - error
  responses:
    Unauthorized:
      description: >-
        No valid session (`UNAUTHORIZED`), or the session has expired
        (`SESSION_EXPIRED`).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    ServerError:
      description: Something went wrong on our side.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    sessionCookie:
      type: apiKey
      in: header
      name: Cookie
      description: >-
        The full Cookie header copied from a signed-in connie.ai browser
        request. See the Authentication page.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.