# Pinata Private File Retrieval via x402 Payment

> Pinata Private File Retrieval via x402 Payment is a paid API for AI agents from 402-server.pinata-marketing-enterprise.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Pays $0.001 USDC and retrieves a specific private file stored on Pinata by its CID (bafkreig64zjue3vnfqejtq2lmzdhgbbsin7gc7dxdebw3exy4ysjkoq62q)

## Facts

- Endpoint: POST https://402-server.pinata-marketing-enterprise.workers.dev/v1/retrieve/private/bafkreig64zjue3vnfqejtq2lmzdhgbbsin7gc7dxdebw3exy4ysjkoq62q
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pinata-private-file-retrieval-via-x402-payment-96d7d3b9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DwaAxJdW92PV5bQmiIFMg

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 pinata-private-file-retrieval-via-x402-payment-96d7d3b9 -d '<json body>'
```

Example prompt: Can you retrieve the private Pinata file with CID bafkreig64zjue3vnfqejtq2lmzdhgbbsin7gc7dxdebw3exy4ysjkoq62q for me — it costs $0.001 USDC to unlock?

## When to prefer this

Use this endpoint when you need to access a specific private file pinned on Pinata's IPFS infrastructure and are willing to pay a $0.001 USDC micropayment via the x402 protocol. Prefer this over public IPFS gateways when the file is private/gated. This is purpose-built for AI agents that can handle x402 payment flows for decentralized file retrieval.

## Known failure modes

- Payment insufficient or rejected — x402 payment header missing or USDC balance too low
- CID not found — the specified content identifier does not exist or has been unpinned
- Unauthorized access — payment processed but file access still denied
- Worker timeout — Cloudflare worker fails to respond within time limit
- Invalid CID format — malformed content identifier provided in the URL path

## How this service works

Pay to retrieve a private file from Pinata by CID

## Output

Returns the raw content of the private file stored on Pinata identified by the specified CID, after the x402 micropayment of $0.001 USDC is processed and authorized.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pinata-private-file-retrieval-via-x402-payment-96d7d3b9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 402-server.pinata-marketing-enterprise.workers.dev](https://www.zero.xyz/host/402-server.pinata-marketing-enterprise.workers.dev/llms.txt)
