> ## 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 Snapshots

> Return all per-turn snapshots for a thread, newest first.

The list response omits the heavy body fields (document content, prefs,
todos JSON) — fetch a specific snapshot via the detail endpoint to get
them.



## OpenAPI

````yaml /openapi.json get /api/workspace/{thread_id}/snapshots
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/workspace/{thread_id}/snapshots:
    get:
      tags:
        - Workspace
      summary: List Snapshots
      description: |-
        Return all per-turn snapshots for a thread, newest first.

        The list response omits the heavy body fields (document content, prefs,
        todos JSON) — fetch a specific snapshot via the detail endpoint to get
        them.
      operationId: list_snapshots_api_workspace__thread_id__snapshots_get
      parameters:
        - name: thread_id
          in: path
          required: true
          schema:
            type: string
            minLength: 1
            title: Thread Id
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 200
            minimum: 1
            default: 50
            title: Limit
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/WorkspaceSnapshotListItem'
                title: >-
                  Response List Snapshots Api Workspace  Thread Id  Snapshots
                  Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    WorkspaceSnapshotListItem:
      properties:
        id:
          type: integer
          title: Id
        turn_index:
          type: integer
          title: Turn Index
        user_message:
          anyOf:
            - type: string
            - type: 'null'
          title: User Message
        captured_at:
          type: string
          format: date-time
          title: Captured At
      type: object
      required:
        - id
        - turn_index
        - captured_at
      title: WorkspaceSnapshotListItem
      description: Compact snapshot row used by the list endpoint (no body fields).
    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

````