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 endpoint lets you retrieve a private file stored on IPFS through Pinata by specifying its CID (Content Identifier) in the URL path. It uses Coinbase's x402 payment protocol, meaning callers pay per-request with cryptocurrency — no Pinata account or API key required. When called without payment, the endpoint returns an HTTP 402 challenge; once the payment header is satisfied, the private file content is returned.

The endpoint is part of Pinata's account-free IPFS access suite, which also includes endpoints for public and private file uploads. Private files on Pinata are not accessible through public IPFS gateways, so this paid retrieval mechanism is the intended way to fetch them. The CID in the URL path (e.g., `bafkreicg754td66rkwrdrjrk2zmfqkedodyvfqwxpe5mdh5xnxvd73jidq`) identifies the specific file to retrieve.

Documentation beyond the landing page is hosted at docs.pinata.cloud/files/x402. The x402 challenge object returned by the probe was empty, so exact pricing, accepted tokens, and payment network details could not be confirmed from the probe alone. Callers should consult the full Pinata x402 docs for payment specifics.

Capabilities

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

Use cases

  • Retrieving a specific private file from IPFS without a Pinata account
  • Paying per-request with crypto to access gated IPFS content
  • Building agent workflows that fetch private decentralized storage objects on demand
  • Integrating private IPFS file access into dApps or automated pipelines

Fit

Best for

  • Agents or apps that need on-demand access to private IPFS files without managing API keys
  • Crypto-native workflows where per-request micropayments are preferred over subscriptions
  • Decentralized application backends that retrieve private content by CID

Not for

  • Bulk or high-volume file downloads where a Pinata subscription would be more cost-effective
  • Retrieving publicly pinned IPFS content (use a public gateway instead)
  • Users who cannot transact in cryptocurrency

Quick start

import { fetchWithPayment } from 'x402-fetch';

const res = await fetchWithPayment(
  'https://402-server.pinata-marketing-enterprise.workers.dev/v1/retrieve/private/bafkreicg754td66rkwrdrjrk2zmfqkedodyvfqwxpe5mdh5xnxvd73jidq',
  { method: 'GET' }
);
const fileData = await res.blob();
console.log('Retrieved file size:', fileData.size);

Endpoint

Transporthttp
Protocolx402
Pay to0xc900f41481B4F7C612AF9Ce3B1d16A7A1B6bd96E
CurrencyUSD COIN

Quality

0.45/ 1.00

The endpoint is live (returns 402 on GET) and the landing page confirms the service's purpose, but the x402 challenge object is empty (no pricing, token, or network info), there is no OpenAPI schema, the /docs path returns 404, and no example request/response bodies are available from the crawl. Most details must be inferred from the landing page description and the URL structure.

Warnings

  • x402 challenge body was empty — pricing, accepted payment tokens, and network details are unknown from the probe alone
  • No OpenAPI or JSON schema available for the endpoint
  • On-server /docs, /api, /pricing, and /README all return 404; full documentation is external at docs.pinata.cloud/files/x402
  • Response content type and format are unknown — could be raw file bytes or JSON wrapper

Citations

Provenance

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

Agent access

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