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

# Get Objective History

> Return how the objective evolved over the conversation (oldest first).

Built from the per-turn ``workspace_snapshots`` (one entry per change). The
current live objective is appended as the newest, ``current`` entry when it
differs from the latest snapshotted wording (it is set during the latest turn
and not yet snapshotted).

Args:
    user:      Authenticated owner.
    thread_id: Target conversation.
    db:        Database session.

Returns:
    A list of ``ObjectiveHistoryItem`` ordered oldest to newest.



## OpenAPI

````yaml /openapi.json get /api/workspace/{thread_id}/objective/history
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}/objective/history:
    get:
      tags:
        - Workspace
      summary: Get Objective History
      description: >-
        Return how the objective evolved over the conversation (oldest first).


        Built from the per-turn ``workspace_snapshots`` (one entry per change).
        The

        current live objective is appended as the newest, ``current`` entry when
        it

        differs from the latest snapshotted wording (it is set during the latest
        turn

        and not yet snapshotted).


        Args:
            user:      Authenticated owner.
            thread_id: Target conversation.
            db:        Database session.

        Returns:
            A list of ``ObjectiveHistoryItem`` ordered oldest to newest.
      operationId: get_objective_history_api_workspace__thread_id__objective_history_get
      parameters:
        - name: thread_id
          in: path
          required: true
          schema:
            type: string
            minLength: 1
            title: Thread Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ObjectiveHistoryItem'
                title: >-
                  Response Get Objective History Api Workspace  Thread Id 
                  Objective History Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    ObjectiveHistoryItem:
      properties:
        turn_index:
          anyOf:
            - type: integer
            - type: 'null'
          title: Turn Index
        text:
          type: string
          title: Text
        captured_at:
          type: string
          format: date-time
          title: Captured At
        current:
          type: boolean
          title: Current
          default: false
      type: object
      required:
        - text
        - captured_at
      title: ObjectiveHistoryItem
      description: One version of the objective in its evolution over the conversation.
    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

````