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

# Get Snapshot

> Return the full snapshot row for one (thread, turn) pair.

Use this to reconstruct exactly what the agent saw on a past turn — the
document, preference list, and todo list are returned verbatim.



## OpenAPI

````yaml /openapi.json get /api/workspace/{thread_id}/snapshots/{turn_index}
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/{turn_index}:
    get:
      tags:
        - Workspace
      summary: Get Snapshot
      description: |-
        Return the full snapshot row for one (thread, turn) pair.

        Use this to reconstruct exactly what the agent saw on a past turn — the
        document, preference list, and todo list are returned verbatim.
      operationId: get_snapshot_api_workspace__thread_id__snapshots__turn_index__get
      parameters:
        - name: thread_id
          in: path
          required: true
          schema:
            type: string
            minLength: 1
            title: Thread Id
        - name: turn_index
          in: path
          required: true
          schema:
            type: integer
            minimum: 0
            title: Turn Index
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkspaceSnapshotSchema'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    WorkspaceSnapshotSchema:
      properties:
        id:
          type: integer
          title: Id
        thread_id:
          type: string
          title: Thread Id
        turn_index:
          type: integer
          title: Turn Index
        user_message:
          anyOf:
            - type: string
            - type: 'null'
          title: User Message
        document_title:
          anyOf:
            - type: string
            - type: 'null'
          title: Document Title
        document_content:
          anyOf:
            - type: string
            - type: 'null'
          title: Document Content
        objective_text:
          anyOf:
            - type: string
            - type: 'null'
          title: Objective Text
        preferences_json:
          items:
            additionalProperties: true
            type: object
          type: array
          title: Preferences Json
        todos_json:
          items:
            additionalProperties: true
            type: object
          type: array
          title: Todos Json
        captured_at:
          type: string
          format: date-time
          title: Captured At
      type: object
      required:
        - id
        - thread_id
        - turn_index
        - preferences_json
        - todos_json
        - captured_at
      title: WorkspaceSnapshotSchema
      description: Serialised per-turn snapshot of the workspace.
    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

````