---
title: "Fetch machine-readable artifact metadata and safe agent workflow."
method: GET
path: "/api/artifacts/{id}/metadata.json"
tags: ["Artifacts", "Agent Docs"]
---

# Fetch machine-readable artifact metadata and safe agent workflow.

`GET /api/artifacts/{id}/metadata.json`

## Request

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

Includes normalized model-card facts such as declared license, task categories, model-index evaluation rows, datasets, tags, and coverage flags.

**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`

Agent metadata

- ArtifactMetadata
  - `schemaVersion` 'hugging-bay.artifact-metadata.v1', required
  - `id` string, required
  - `repo` string, required
  - `canonicalUrl` string, required
  - `apiUrl` string, required
  - `filesUrl` string, required
  - `distributionUrl` string
  - `manifestUrl` string
  - `license` object, required
  - `safety` object
  - `provenance` object
  - `hosting` object, required
  - `distribution` object
  - `metrics` object
  - `signals` ArtifactSignals (unresolved $ref)
  - `modelCardFacts` ModelCardFacts (unresolved $ref)
  - `agentUse` object, required

## 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/865eb0f1b6ef?raw)
