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

# Read an artifact

> Read one saved reference document (an uploaded runbook or custom pricing schedule) or generated understanding, or one byte window of it.



## OpenAPI

````yaml https://api.uselemma.ai/openapi.json get /projects/{project_id}/artifacts/{artifact_id}
openapi: 3.1.0
info:
  title: Lemma Platform API
  description: Lemma Platform HTTP API for AI observability and workspace operations.
  version: 0.1.0
servers:
  - url: https://api.uselemma.ai
    description: Lemma production API
security:
  - bearerAuth: []
paths:
  /projects/{project_id}/artifacts/{artifact_id}:
    get:
      tags:
        - Artifacts
      summary: Read an artifact
      description: >-
        Read one saved reference document (an uploaded runbook or custom pricing
        schedule) or generated understanding, or one byte window of it.
      operationId: get_project_artifact
      parameters:
        - name: project_id
          in: path
          required: true
          description: Project ID
          schema:
            type: string
        - name: artifact_id
          in: path
          required: true
          description: Artifact ID
          schema:
            type: string
        - name: version
          in: query
          required: true
          description: >-
            "latest" or a positive version for generated text; empty or null for
            an upload.
          schema:
            type: string
        - name: max_bytes
          in: query
          required: false
          description: >-
            Window size in bytes, 1 to 65536; default 32768; an empty value
            sends the whole artifact.
          schema:
            type: integer
            minimum: 1
            maximum: 65536
        - name: offset
          in: query
          required: false
          description: Byte offset to start from; first call only, default 0.
          schema:
            type: integer
            minimum: 0
      responses:
        '200':
          description: One artifact content window
          content:
            application/json:
              schema:
                type: object
                properties:
                  content:
                    type: string
                  remaining_bytes:
                    type: integer
                    minimum: 0
                  version:
                    type:
                      - integer
                      - 'null'
                    exclusiveMinimum: 0
                  offset:
                    type: integer
                    minimum: 0
                  next_request:
                    type:
                      - object
                      - 'null'
                    properties:
                      operation:
                        type: string
                      arguments:
                        type: object
                        properties:
                          project_id:
                            type: string
                          artifact_id:
                            type: string
                          version:
                            type:
                              - integer
                              - 'null'
                            exclusiveMinimum: 0
                          max_bytes:
                            type:
                              - integer
                              - 'null'
                            minimum: 1
                            maximum: 65536
                          offset:
                            type: integer
                            minimum: 0
                        required:
                          - project_id
                          - artifact_id
                          - version
                          - max_bytes
                          - offset
                        additionalProperties: false
                    required:
                      - operation
                      - arguments
                    additionalProperties: false
                required:
                  - content
                  - remaining_bytes
                  - version
                  - offset
                  - next_request
                additionalProperties: false
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  code:
                    type: string
                  retryable:
                    type: boolean
                  retry_after_seconds:
                    type: number
                    minimum: 0
                required:
                  - detail
                  - code
                  - retryable
                additionalProperties: false
        '401':
          description: Unauthenticated
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  code:
                    type: string
                required:
                  - detail
                additionalProperties: false
        '404':
          description: Not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  code:
                    type: string
                  retryable:
                    type: boolean
                  retry_after_seconds:
                    type: number
                    minimum: 0
                required:
                  - detail
                  - code
                  - retryable
                additionalProperties: false
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  code:
                    type: string
                  retryable:
                    type: boolean
                  retry_after_seconds:
                    type: number
                    minimum: 0
                required:
                  - detail
                  - code
                  - retryable
                additionalProperties: false
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.