x402 is Coinbase’s open protocol for pay-per-request HTTP access. Instead of an API key, you pay a small amount of USDC on Base or Solana for each request — ideal for AI agents that need onchain data without managing subscriptions or key rotation. This is an alternative authorization method for the same Zerion API. Endpoints, JSON:API responses, query parameters, and filters all behave exactly as in the rest of the docs — only the way you prove access changes. Zerion also supports MPP, a sibling protocol that settles on Tempo. See Authentication for an overview of all access methods.Documentation Index
Fetch the complete documentation index at: https://developers.zerion.io/llms.txt
Use this file to discover all available pages before exploring further.
Quickstart with the Zerion CLI
The easiest way to use x402 is with the Zerion CLI, which handles the payment handshake, wallet signing, and retries automatically. Set the private key of the wallet that holds USDC, then make a request with--x402:
- Base (EVM)
- Solana
Direct integration
If you’re not using the CLI, use the Coinbase x402 SDK (Go, TypeScript, Python) to handle payment construction and retries. You’ll need a wallet with USDC on Base or Solana and its private key.Example
How it works
- Client sends a request to an API endpoint
- Server returns
402with aPAYMENT-REQUIREDheader describing where and how much to pay - Client signs a USDC transfer and retries with a
PAYMENT-SIGNATUREheader - Zerion settles the payment via the Coinbase Developer Platform and returns the response
Rate limits
None — pay per request, no per-second or monthly quota.Error handling
402 Payment required— no or invalid payment signature. Inspect thePAYMENT-REQUIREDresponse header for a fresh challenge and retry.402 x402 payment rejected— the facilitator rejected the signature. Thedetailfield contains the reason.402 x402 payment settlement failed— the signature was valid but on-chain settlement failed.