# 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).

Pay $0.001 USDC to retrieve a private file stored on Pinata IPFS by its CID (Content Identifier)

## Facts

- Endpoint: POST https://402-server.pinata-marketing-enterprise.workers.dev/v1/retrieve/private/bafkreigapts2hedc4n2in6c5bj7x4eclx4ergaizi7naalcehkhcza7dxa
- 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-34abb573
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WUOs--5IzdyBVU38dIcw8

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-34abb573 -d '<json body>'
```

Example prompt: Can you fetch the private Pinata file with CID bafkreigapts2hedc4n2in6c5bj7x4eclx4ergaizi7naalcehkhcza7dxa for me? I'm okay paying the $0.001 USDC retrieval fee.

## When to prefer this

Use this endpoint when you need to access a specific private file pinned on Pinata's IPFS service identified by a known CID, and you are willing to make a small USDC micropayment via the x402 protocol. Prefer this over public IPFS gateways when the file is private/gated and requires payment authorization.

## Known failure modes

- Payment insufficient or rejected — x402 payment not processed, file not returned
- Invalid or unknown CID — file not found on Pinata
- CID does not correspond to a private file accessible via this gateway
- Expired or malformed payment token — 402 payment header rejected
- Network or Cloudflare Worker timeout — service temporarily unavailable

## How this service works

Pay to retrieve a private file from Pinata by CID

## Output

The raw content of the private file stored on Pinata, returned after successful micropayment authorization via x402 protocol. The agent receives the file bytes or content corresponding to the requested CID.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pinata-private-file-retrieval-via-x402-payment-34abb573/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)
