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

# Download Evaluation Artifact

> Download an artifact associated with an evaluation.

Use this route to fetch a downloadable evaluation artifact. Released
`ground_truth` artifacts are NDJSON and use a general envelope around a
competition-specific payload.

For MazeBench owner-debug runs, `provider_reasoning.jsonl` contains only
provider-emitted reasoning when available (or token counts when it is not),
with secrets and evaluator-like content redacted. `replay_manifest.json` is a
safe browser timeline; trusted replay evidence remains private.

Auth: Droyd API key or signed-in user bearer token. Alias: `GET /api/v1/evaluations/{id}/artifacts/{artifact_id}/download`. Both `id` and `artifact_id` are UUIDs and must be related to a caller-owned evaluation. Response content type may not be JSON; clients should follow the OpenAPI response and HTTP headers. Ground truth returns `application/x-ndjson` and is denied unless the caller owns the evaluation and its public smoke/practice dataset explicitly enables `allow_ground_truth_download`; artifact visibility alone does not override that policy.


## OpenAPI

````yaml api-key.openapi.json GET /v1/evaluations/{id}/artifacts/{artifact_id}/download
openapi: 3.1.0
info:
  title: Droyd API-key Automation API
  version: 1.0.0
  description: >-
    The production API contract for Droyd API-key automations. It contains only
    operations that accept a Droyd API key. `/v1` is canonical; `/api/v1` is a
    compatibility alias.
servers: []
security:
  - droydApiKeyBearer: []
  - droydApiKeyHeader: []
tags:
  - name: Identity
    description: Account-scoped automation identity and onboarding state.
  - name: Workflows
    description: Caller-owned workflows and research nodes.
  - name: Competitions
    description: Competition readiness, submissions, and race entries.
  - name: Experiments
    description: Experiments, artifacts, agent versions, and evaluations.
  - name: Usage
    description: Caller-owned evaluation usage.
  - name: Billing
    description: Caller-owned prepaid credit balances and funding.
paths:
  /v1/evaluations/{id}/artifacts/{artifact_id}/download:
    get:
      tags:
        - Experiments
      summary: Download a permitted evaluation artifact.
      operationId: downloadEvaluationArtifact
      parameters:
        - $ref: '#/components/parameters/Id'
        - $ref: '#/components/parameters/ArtifactId'
      responses:
        '200':
          description: Artifact bytes or a download redirect.
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/ServerError'
components:
  parameters:
    Id:
      name: id
      in: path
      required: true
      schema:
        type: string
        format: uuid
    ArtifactId:
      name: artifact_id
      in: path
      required: true
      schema:
        type: string
        format: uuid
  responses:
    Unauthorized:
      description: Missing or invalid API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    Forbidden:
      description: Account state or route policy prevents the request.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    NotFound:
      description: The resource is missing or not owned by the API-key account.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    ServerError:
      description: >-
        The request could not be completed. Retry only when the operation's
        idempotency contract permits it.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
  schemas:
    ErrorEnvelope:
      type: object
      required:
        - ok
        - error
      properties:
        ok:
          const: false
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
            message:
              type: string
  securitySchemes:
    droydApiKeyBearer:
      type: http
      scheme: bearer
      bearerFormat: Droyd API key
      description: A Droyd API key in the Authorization Bearer slot.
    droydApiKeyHeader:
      type: apiKey
      in: header
      name: x-droyd-api-key
      description: A Droyd API key when Authorization is absent.

````