---
title: "Fetch hosted, upstream, and reviewed peer-assisted distribution options."
method: GET
path: "/api/artifacts/{id}/distribution"
tags: ["Artifacts", "Agent Docs", "Mirrors"]
---

# Fetch hosted, upstream, and reviewed peer-assisted distribution options.

`GET /api/artifacts/{id}/distribution`

## Request

- Base URL: `https://huggingbay.xyz`
- URL: `https://huggingbay.xyz/api/artifacts/{id}/distribution`
- Auth: none declared

Use this before automated downloads. It lists Hugging Bay hosted files when present, original upstream metadata, and reviewed decentralized fallback metadata. Unreviewed magnet links are not published.

**Inputs.** Path, query and header fields are listed below. No request body is required.

**Outputs.** See each status below for its media type, schema and headers. A missing record or unavailable capability is not a successful empty result.

**Errors.** API JSON failures use the documented response schema. Read code, message and next; retry only when the response allows it. Auth, invalid input and missing records need a caller change.

**Rate limits.** Public read budgets apply by client IP and route group. This operation can have a smaller route-specific budget. Read Retry-After on 429 or retryable 503 responses.

**Example setup.** Use an identifier returned by the matching list, search or create operation. Sample identifiers are not a promise that a record exists.

## Path parameters

- `id` string, required

## Query parameters

- `compat` 'containment'

## Response `200`

Artifact distribution document

- ArtifactDistribution
  - `schemaVersion` 'hugging-bay.artifact-distribution.v1', required
  - `generatedAt` string, required
  - `baseUrl` string
  - `artifact` ArtifactSummary, required (unresolved $ref)
  - `policy` object, required
  - `hostedDownloads` object, required
    - `status` string
    - `hosted` boolean
    - `hostedFiles` number
    - `filesUrl` string
    - `downloadableFilesUrl` string
    - `manifestUrl` string, nullable
    - `reviewedPeerFallbackReady` boolean
    - `reviewedPeerFallbackFiles` number
    - `reviewedPeerFallbackCount` number
    - `peerFallbackReadinessUrl` string
    - `rows` DownloadableFileRow[] (unresolved $ref)
  - `upstream` object, required
  - `decentralizedFallbacks` object, required
    - `protocol` string
    - `verifiedCount` number
    - `pendingReviewCount` number
    - `requestUrl` string
    - `verified` object[]
    - `pendingReview` object[]
  - `recommendedFlow` string[]
  - `actions` object

## Other responses

- `404`: Not found

---

[API](https://skmtc.dev/huggingbay/apis/hugging-bay-public-api.md) · [All operations](https://skmtc.dev/huggingbay/apis/hugging-bay-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/huggingbay/apis/hugging-bay-public-api/revisions/63c474bf0fe4?raw)
