HTTP 402

x402: The Web's Payment Toll

Cloudflare's Monetization Gateway lets any page, dataset, API, or MCP tool sit behind a paywall that settles in stablecoins via the open x402 protocol. Here's the toll plaza it builds. Drag to look around; orbs are requests.

Toll booth economics

$0est. monthly revenue

The x402 handshake

1. Client requests the resource (GET /data)
2. Server replies 402 Payment Required + price & pay-to address
3. Client pays in stablecoin (on-chain, cents or less)
4. Client retries with payment proof header
5. Server verifies → 200 OK, content unlocked

Drag = orbit · wheel/pinch = zoom

The 30-year placeholder

HTTP status 402 Payment Required has been reserved since the 1990s — the web's founders assumed native payments were coming. They never did; ads and subscriptions filled the gap, and 402 sat unused for three decades. x402 finally gives it a job: a standard way for a server to say "this costs $0.001, here's how to pay," and for a client to pay and retry — no account, no card form, no human.

Why machines need this

AI agents can't fill out checkout forms or manage 500 subscriptions. But they can hold a wallet. Per-request pricing lets an agent buy exactly one API call or one article, instantly. For publishers, it converts scraping bots — today a pure cost — into paying customers. That's the "agentic web" bet: most future traffic is machines, and machines are excellent at paying tiny tolls.

Why stablecoins?

A stablecoin is a token pegged 1:1 to a currency (usually USD). For micro-payments they solve three problems at once: no volatility (a $0.001 price stays $0.001), sub-cent fees on modern chains, and instant machine-to-machine settlement with no card network, chargebacks, or 30-day payout cycles. The payment proof is just a signed receipt the server can verify.

Publisher tradeoffs

  • Pro: new revenue from bot/agent traffic that ads never monetized.
  • Pro: price discovery per resource — charge more for premium data.
  • Con: friction can crater volume; price too high and orbs bounce (watch the slider).
  • Con: gateway dependence — Cloudflare sits in the money path.
  • Open question: will human visitors ever accept per-page tolls, or is this machines-only?
Enjoy this tool? Build your own with Super