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

Retrieve a specific private file stored on Pinata IPFS by its CID, gated behind a $0.001 USDC micropayment

## Facts

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

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

Example prompt: Fetch the private Pinata file with CID bafkreifm6sroj5jdnkbjojh5ra5hiybj3rwq52focjvaup7dn5amqll4ne — it costs $0.001 USDC to access.

## When to prefer this

Use this endpoint when you need to retrieve a specific private file stored on Pinata IPFS whose CID is already known, and you are willing to pay $0.001 USDC per retrieval via the x402 payment protocol. Ideal for AI agents operating in Web3 environments that need to access paywalled or private decentralized content.

## Known failure modes

- Payment insufficient or missing — returns 402 Payment Required
- Invalid or malformed CID — returns 404 Not Found
- CID does not correspond to a Pinata-hosted private file — returns 404
- Payment verification failure — returns 402 or 403
- Network/worker timeout — returns 503
- Unauthorized access if payment not confirmed by facilitator

## How this service works

Pay to retrieve a private file from Pinata by CID

## Output

The raw bytes or content of the private file stored on Pinata at the specified CID, returned after successful x402 micropayment verification.

## More

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