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

# Get artifact

> Get an artifact by ID with inline contents or database preview.



## OpenAPI

````yaml /api-reference/openapi.json get /api/artifacts/{id}
openapi: 3.1.0
info:
  title: Friday Platform API
  description: >-
    The Friday daemon HTTP API for managing spaces, agents, sessions, and
    automations.
  version: 1.0.0
servers:
  - url: http://localhost:18080
    description: Local Friday daemon
security: []
tags:
  - name: Health
    description: Daemon health and status
  - name: Spaces
    description: Space management
  - name: Chat
    description: Conversational AI
  - name: Sessions
    description: Execution session management
  - name: Signals
    description: Trigger management
  - name: Agents
    description: Agent discovery and inspection
  - name: Artifacts
    description: File and data artifact management
  - name: Configuration
    description: Daemon configuration
paths:
  /api/artifacts/{id}:
    get:
      tags:
        - Artifacts
      summary: Get artifact
      description: Get an artifact by ID with inline contents or database preview.
      operationId: getArtifact
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: revision
          in: query
          schema:
            type: integer
          description: Specific revision number
      responses:
        '200':
          description: Artifact with contents
          content:
            application/json:
              schema:
                type: object
                properties:
                  artifact:
                    $ref: '#/components/schemas/Artifact'
                  contents:
                    type: string
        '404':
          description: Artifact not found
      x-codeSamples:
        - lang: bash
          label: cURL
          source: curl http://localhost:18080/api/artifacts/art-123
components:
  schemas:
    Artifact:
      type: object
      properties:
        id:
          type: string
        type:
          type: string
          enum:
            - file
            - summary
            - web-search
            - table
            - database
            - calendar-schedule
        name:
          type: string
        createdAt:
          type: string
          format: date-time
        revision:
          type: integer

````