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

# Workspace File History

> Return the provenance trail for a workspace file, newest event first.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/files/history
openapi: 3.1.0
info:
  description: >-
    Modular and extensible framework for building AI agents. This API requires
    JWT Bearer token authentication for most endpoints. Include your JWT token
    in the Authorization header. Public endpoints include /, /health, /docs,
    /redoc, and /openapi.json.
  title: AgentArea API
  version: 0.1.0
servers: []
security:
  - bearer: []
paths:
  /v1/files/history:
    get:
      tags:
        - v1
        - protected
        - files
      summary: Workspace File History
      description: Return the provenance trail for a workspace file, newest event first.
      operationId: workspace_file_history_v1_files_history_get
      parameters:
        - in: query
          name: path
          required: true
          schema:
            title: Path
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ArtifactHistoryResponse'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    ArtifactHistoryResponse:
      properties:
        events:
          items:
            $ref: '#/components/schemas/ArtifactEventResponse'
          title: Events
          type: array
        path:
          title: Path
          type: string
      required:
        - path
        - events
      title: ArtifactHistoryResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ArtifactEventResponse:
      properties:
        action:
          title: Action
          type: string
        actor_type:
          title: Actor Type
          type: string
        agent_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Agent Id
        created_at:
          title: Created At
          type: string
        created_by:
          title: Created By
          type: string
        task_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Task Id
      required:
        - action
        - actor_type
        - created_by
        - created_at
      title: ArtifactEventResponse
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
  securitySchemes:
    bearer:
      bearerFormat: JWT
      description: JWT Bearer token for authentication
      scheme: bearer
      type: http
    HTTPBearer:
      scheme: bearer
      type: http

````