# QRCode.Pub File Store

> QRCode.Pub File Store is a paid API for AI agents from qrcode.pub, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-11).

Upload a file (image, PDF, text, etc.) and receive a temporary hosted URL with a unique ID and deletion token

## Facts

- Endpoint: POST https://qrcode.pub/x402/store?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/qrcode-pub-file-store-0dcd32b0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_L2u4QPucQezdJMdLv8cBg

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 qrcode-pub-file-store-0dcd32b0 -d '<json body>'
```

Example prompt: Upload this product screenshot PNG to QRCode.Pub's file store and give me the hosted URL and the delete token so I can remove it later.

## When to prefer this

Use this endpoint when you need to temporarily host a file and get a public URL — particularly useful as a precursor step to creating a QR code that points to the file. It's well-suited for small to medium files in common formats (images, PDFs, JSON, CSV, text/markdown) that need a short-lived public link with a known expiry and a deletion mechanism. Prefer this over generic file storage when you're already working within the QRCode.Pub ecosystem or want a pay-per-use model with no subscription.

## Known failure modes

- Unsupported file type returns an error — only image/png, image/jpeg, image/webp, image/gif, application/pdf, application/json, text/plain, text/markdown, text/csv are accepted
- Payment failure or insufficient USDC balance prevents upload
- File too large may exceed undocumented size limits
- Lost deletion token means file cannot be removed before expiry
- File expires around 2026-11-04 — links will break after that date

## How this service works

Create editable (dynamic) QR codes that never expire. One-time payment from $9, unlimited scans, change the link any time, scan counts included. Free static QR code generator too.

## Output

Returns a JSON object containing a unique file ID, a public hosted URL (e.g. https://qrcode.pub/f/{id}), the original file name, MIME type, file size in bytes, a secret bearer token for deletion, a DELETE endpoint instruction, and an expiry timestamp.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "file": {
   "type": "string",
   "description": "File bytes (image/png, image/jpeg, image/webp, image/gif, application/pdf, application/json, text/plain, text/markdown, text/csv)",
   "contentEncoding": "binary"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "id": "k7m2p9x4q1z8w3n6",
  "url": "https://qrcode.pub/f/k7m2p9x4q1z8w3n6",
  "name": "chart.png",
  "type": "image/png",
  "bytes": 1024,
  "token": "secret",
  "delete": "DELETE https://qrcode.pub/x402/store/k7m2p9x4q1z8w3n6 with header Authorization: Bearer <token>",
  "expires": "2026-11-04T00:00:00.000Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/qrcode-pub-file-store-0dcd32b0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from qrcode.pub](https://www.zero.xyz/host/qrcode.pub/llms.txt)
