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

> List typed artifacts for a thread, newest first.

Args:
    user:          Authenticated owner.
    thread_id:     Target conversation.
    artifact_type: Optional filter on the artifact type (``line_chart`` …).
    limit:         Maximum rows to return.
    db:            Database session.

Returns:
    Ordered list of ``ArtifactSchema`` objects.



## OpenAPI

````yaml /openapi.json get /api/workspace/{thread_id}/artifacts
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}/artifacts:
    get:
      tags:
        - Workspace
      summary: List Artifacts
      description: |-
        List typed artifacts for a thread, newest first.

        Args:
            user:          Authenticated owner.
            thread_id:     Target conversation.
            artifact_type: Optional filter on the artifact type (``line_chart`` …).
            limit:         Maximum rows to return.
            db:            Database session.

        Returns:
            Ordered list of ``ArtifactSchema`` objects.
      operationId: list_artifacts_api_workspace__thread_id__artifacts_get
      parameters:
        - name: thread_id
          in: path
          required: true
          schema:
            type: string
            minLength: 1
            title: Thread Id
        - name: artifact_type
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Artifact Type
        - 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/ArtifactSchema'
                title: >-
                  Response List Artifacts Api Workspace  Thread Id  Artifacts
                  Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    ArtifactSchema:
      properties:
        id:
          type: integer
          title: Id
        thread_id:
          type: string
          title: Thread Id
        turn_index:
          type: integer
          title: Turn Index
        artifact_type:
          type: string
          title: Artifact Type
        title:
          anyOf:
            - type: string
            - type: 'null'
          title: Title
        payload:
          additionalProperties: true
          type: object
          title: Payload
        created_at:
          type: string
          format: date-time
          title: Created At
      type: object
      required:
        - id
        - thread_id
        - turn_index
        - artifact_type
        - payload
        - created_at
      title: ArtifactSchema
      description: Serialised typed artifact returned by workspace endpoints.
    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

````