- A wallet on Base with a small USDC balance.
- A signing client that can produce an
X-PAYMENTheader. The Coinbase x402 SDK ships clients for Python, TypeScript/JavaScript, Go, and Java.
1. Discover the price list
No payment, no auth.2. Probe the quote
Hit any tier path without payment — the server replies402 with a
machine-readable quote.
payment-required header to get:
amount is in USDC base units (6 decimals — 100000 = $0.10).
3. Sign and retry
Use the Coinbase x402 client to sign the quote against your wallet and retry with theX-PAYMENT header.
4. Receive the answer
X-PAYMENT header
won’t authorize a second call. Sign a fresh one for each request.
Next steps
- Authentication deep-dive — exactly what’s
in the
X-PAYMENTheader. - Endpoint reference — per-tier request/response.
- Networks — supported
{chain}values. - Risk categories — taxonomy returned
in
risk.risk_categories[]from the screening tiers. - Running pre-send screens at high volume? Switch to V2 API’s POST /v2/screen — same data, settled via subscription quota instead of per-call USDC.

