x402basequality 0.45

Pay with crypto to retrieve a private IPFS file from Pinata by CID via the x402 protocol.

Price
0.0001 USDC / call
Protocol
x402
Verified
no

What it does

This x402-enabled endpoint lets callers retrieve a specific private file stored on IPFS through Pinata, identified by its CID (Content Identifier). Instead of requiring a Pinata account or API key, the endpoint uses Coinbase's x402 payment protocol: an unauthenticated GET request returns an HTTP 402 challenge, and once payment is made the private content is served back.

The endpoint is part of Pinata's account-free IPFS service suite, which also offers public and private file uploads. Private files pinned through the companion upload endpoint can later be retrieved through endpoints like this one by paying per-request. The x402 challenge mechanism handles payment negotiation automatically when used with an x402-compatible client (e.g., `fetchWithPayment` from the x402 SDK).

Note that the specific CID in this endpoint URL (`bafkreifm6sroj5jdnkbjojh5ra5hiybj3rwq52focjvaup7dn5amqll4ne`) is baked into the path, meaning this particular listing retrieves one specific private file. The general pattern is `https://402.pinata.cloud/v1/retrieve/private/{cid}`. Documentation is available at docs.pinata.cloud/files/x402, though the on-server /docs path returns 404. The x402 challenge was captured live but returned an empty challenge body, so pricing details and accepted payment methods could not be confirmed from the probe alone.

Capabilities

ipfs-private-file-retrievalx402-paymentcid-based-accessaccount-free-accesscrypto-payment

Use cases

  • Retrieving a specific private file stored on IPFS without needing a Pinata account or API key
  • Paying per-request for access to gated IPFS content using cryptocurrency
  • Integrating private IPFS file access into an agent workflow via x402-compatible clients
  • Building decentralized applications that gate content behind micropayments

Fit

Best for

  • Agents or apps that need to fetch private IPFS content without managing API keys
  • Crypto-native workflows that can pay per-request via x402
  • Accessing specific known CIDs stored privately on Pinata

Not for

  • Bulk retrieval of many files (each CID is a separate endpoint/payment)
  • Users who need free or subscription-based IPFS access (this is pay-per-request)
  • Retrieving public IPFS content (use a public gateway instead)

Quick start

import { fetchWithPayment } from 'x402-fetch';

const res = await fetchWithPayment(
  'https://402.pinata.cloud/v1/retrieve/private/bafkreifm6sroj5jdnkbjojh5ra5hiybj3rwq52focjvaup7dn5amqll4ne',
  { method: 'GET' }
);
const data = await res.blob();
console.log('Retrieved file size:', data.size);

Endpoint

Transporthttp
Protocolx402
Pay to0xc900f41481B4F7C612AF9Ce3B1d16A7A1B6bd96E
CurrencyUSD COIN

Quality

0.45/ 1.00

The endpoint is live (402 challenge captured) but the challenge body is empty, so pricing, accepted tokens, and payment details are unknown. No OpenAPI schema, no on-server docs, and no example response structure are available. The listing is largely inferred from the landing page description and the general x402 pattern.

Warnings

  • x402 challenge body was empty — pricing and accepted payment methods could not be determined from the probe
  • No OpenAPI or schema documentation available at the endpoint origin
  • The /docs path on the server returns 404; full docs are hosted externally at docs.pinata.cloud/files/x402
  • This endpoint URL is CID-specific; the listing represents retrieval of one particular private file, not a general-purpose API

Citations

Provenance

Indexed fromx402_bazaar
Enriched2026-04-18 19:16:40Z · anthropic/claude-opus-4.6 · v2
First seen2026-04-18
Last seen2026-04-22

Agent access