# Pinata Private File Retrieval via CID (x402 Pay-per-Access)

> Pinata Private File Retrieval via CID (x402 Pay-per-Access) 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 IPFS by its Content Identifier (CID)

## Facts

- Endpoint: POST https://402-server.pinata-marketing-enterprise.workers.dev/v1/retrieve/private/bafkreicg754td66rkwrdrjrk2zmfqkedodyvfqwxpe5mdh5xnxvd73jidq
- 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-cid-x402-pay-per-access-1746f047
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_CrnvoGXUsVnRQkteZeBX1

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-cid-x402-pay-per-access-1746f047 -d '<json body>'
```

Example prompt: Fetch the private Pinata file with CID bafkreicg754td66rkwrdrjrk2zmfqkedodyvfqwxpe5mdh5xnxvd73jidq for me — it costs $0.001 USDC to unlock.

## When to prefer this

Use this endpoint when you need to retrieve a specific private file from Pinata IPFS by its exact CID and are willing to pay a $0.001 USDC micropayment per access via the x402 protocol. Ideal for agents operating in web3/IPFS environments needing pay-per-access to gated decentralized content.

## Known failure modes

- CID not found or not associated with this server — 404 or empty response
- Insufficient USDC balance or payment failure — 402 payment required error
- Invalid or malformed CID — bad request error
- File has been deleted or is no longer accessible on Pinata — not found
- Network or Cloudflare Workers timeout — 5xx error

## How this service works

Pay to retrieve a private file from Pinata by CID

## Output

The raw contents of the private file stored on Pinata identified by the given CID, returned after a $0.001 USDC micropayment is processed via the x402 protocol.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pinata-private-file-retrieval-via-cid-x402-pay-per-access-1746f047/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)
