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

Retrieves a specific private file stored on Pinata by its IPFS CID after a micropayment of $0.001 USDC is made via the x402 payment protocol

## Facts

- Endpoint: POST https://402-server.pinata-marketing-enterprise.workers.dev/v1/retrieve/private/bafkreiefdk5omvmbtuysrnjq5khpnmqjre4wpzdwwsvw37llcmvg6klf3u
- 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-147bfd57
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_AKFOL1HwhdNVr2rN_yiUD

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-147bfd57 -d '<json body>'
```

Example prompt: Can you fetch the private Pinata file with CID bafkreiefdk5omvmbtuysrnjq5khpnmqjre4wpzdwwsvw37llcmvg6klf3u for me? It costs $0.001 USDC to unlock and download it.

## When to prefer this

Use this endpoint when you need to retrieve a specific private file from Pinata IPFS storage that is gated behind a per-call micropayment using the x402 protocol. Prefer this over public IPFS gateways when the file is private and requires payment authorization.

## Known failure modes

- Payment not included or insufficient — HTTP 402 returned requiring payment details
- Invalid or non-existent CID — file not found error
- Unauthorized — CID does not belong to an accessible private file
- Payment processing failure — USDC transaction rejected or malformed
- Network timeout accessing Pinata storage backend

## 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 identified by the given CID, returned after the x402 micropayment of $0.001 USDC is processed successfully.

## More

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