# Artefaktum Artifact Download

> Artefaktum Artifact Download is a paid API for AI agents from api.artefaktum.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-01).

Returns a short-lived presigned URL to download an artifact's bytes (latest version or a specific version) from Artefaktum's pay-per-call storage API.

## Facts

- Endpoint: GET https://api.artefaktum.dev/v1/artifacts/:artifact_id/download?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/artefaktum-artifact-download-d79a5726
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4L3O6Gp6SOZUAOGbFuFRi

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability artefaktum-artifact-download-d79a5726
```

Example prompt: Can you get me a download link for artifact abc123 from Artefaktum? I want the latest version.

## When to prefer this

Use this endpoint when you need to actually download or stream the binary content of a stored artifact from Artefaktum. It is the correct choice when you have an artifact_id and need the raw bytes or a URL to pass to a downstream system. Prefer this over metadata-only endpoints when the goal is file retrieval rather than inspection of artifact properties.

## Known failure modes

- artifact_id not found — 404 error if the artifact does not exist or belongs to a different wallet
- version_id not found — 404 if the requested specific version does not exist
- expired artifact — artifact may have passed its 30-day retention window
- insufficient USDC balance — payment of $0.005 USDC required per call; failure if wallet has insufficient funds
- presigned URL expiry — the returned URL is short-lived and will reject requests after expires_at
- run_id mismatch — if the specified run_id does not match any version, an error or empty result may be returned

## How this service works

Get a short-lived presigned URL to download an artifact's bytes (the latest version, or version_id). Returns {url, method, expires_at, version_id}. Costs $0.005 in USDC. No signup: a wallet's first payment creates its account and a default project; the same wallet later reaches the same files.

## Output

A JSON object containing: a short-lived presigned URL (url) to download the artifact bytes via HTTP, the HTTP method to use (method), the expiry timestamp (expires_at), and the resolved version_id of the artifact served.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "pathParams"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object",
     "required": [
      "artifact_id"
     ],
     "properties": {
      "artifact_id": {
       "type": "string"
      }
     },
     "additionalProperties": false
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "run_id": {
       "type": "string"
      },
      "version_id": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/artefaktum-artifact-download-d79a5726/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.artefaktum.dev](https://www.zero.xyz/host/api.artefaktum.dev/llms.txt)
