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

> ## Agent Instructions
> Follow the content contract in AGENTS.md.
> Treat text as the canonical explanation; video and screenshots enhance it.
> Do not publish unverified product behavior or duplicate an existing canonical article.

# Download one immutable MCP artifact

> Use the contentUri with your developer credential, or the short-lived download.uri without a header. Re-call get_job_result to renew an expired grant. No artifact listing is exposed.



## OpenAPI

````yaml /developers/openapi/stefanbrain-v1.json get /api/developers/v1/artifacts/{fileId}/content
openapi: 3.1.0
info:
  title: StefanBrain Developer API
  version: 1.0.0
  description: >-
    REST access to StefanBrain agent runs, tools, and jobs. Authenticate with an
    API key from Settings → Developers. REST usage bills your prepaid API wallet
    at the published per-token rates (see
    https://docs.stefanbrain.com/developers/pricing); the MCP endpoint
    (/api/developers/v1/mcp, not described here) is member pricing from your
    plan pool. Human documentation: https://docs.stefanbrain.com/developers
servers:
  - url: https://stefanbrain.com
security:
  - bearerAuth: []
  - apiKeyHeader: []
tags:
  - name: tools
    description: Directly invocable StefanBrain tools.
  - name: jobs
    description: Long-running tool jobs (poll for results).
  - name: runs
    description: Agentic chat runs with event streams.
  - name: files
    description: Workspace files agent runs produced in a chat.
  - name: media
    description: 'Stored Meta ad media facts: video transcripts on demand.'
  - name: feedback
    description: >-
      Tell StefanBrain where the API got in your way, and read the team's
      replies.
  - name: meta
    description: 'Meta landing page labels: the label lists, and the one checked write.'
paths:
  /api/developers/v1/artifacts/{fileId}/content:
    get:
      tags:
        - files
      summary: Download one immutable MCP artifact
      description: >-
        Use the contentUri with your developer credential, or the short-lived
        download.uri without a header. Re-call get_job_result to renew an
        expired grant. No artifact listing is exposed.
      operationId: readArtifactContent
      parameters:
        - name: fileId
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: grant
          in: query
          schema:
            type: string
          description: >-
            Exact download grant from the MCP artifact view. Treat it as a
            secret.
        - name: source
          in: query
          schema:
            type: string
          description: >-
            Opaque source metadata from contentUri. Required when no grant is
            supplied.
        - name: sha256
          in: query
          schema:
            type: string
            pattern: ^[0-9a-f]{64}$
          description: >-
            Immutable version from contentUri. Required when no grant is
            supplied.
      responses:
        '200':
          description: >-
            Exact artifact bytes in the stored MIME type, as an attachment;
            private, no-store.
          content:
            application/octet-stream:
              schema:
                type: string
                format: binary
        '400':
          description: Missing or invalid artifact source.
        '403':
          description: >-
            Invalid, expired or revoked grant, wrong caller, or unavailable
            artifact.
        '503':
          description: Artifact storage or authorization is temporarily unavailable.
      security:
        - bearerAuth: []
        - apiKeyHeader: []
        - artifactGrant: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Authorization: Bearer stefan_sk_... (API key — bills the API wallet) or
        stefan_oat_... (OAuth member token — bills your plan pool).
    apiKeyHeader:
      type: apiKey
      in: header
      name: x-api-key
    artifactGrant:
      type: apiKey
      in: query
      name: grant
      description: >-
        A 10-minute artifact download grant returned by an authenticated MCP
        result read. Revocation and artifact access are checked on every fetch.

````

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