x402 — Payment Required

Internet-native payments standard

What is x402?

x402 is an open, neutral standard for internet-native payments. It revives the HTTP 402 "Payment Required" status code—originally defined but rarely used—to enable instant, programmatic payments between clients and servers.

How it works

  1. Client requests a resource from the server
  2. If payment is required, server responds with HTTP 402 and payment instructions
  3. Client sends payment (e.g. stablecoins) and retries
  4. Server verifies payment and returns the resource

Key benefits

Use cases

Monetize APIs, microservices, digital content paywalls, proxy services, and pay-per-request models. Ideal for AI agents that need to autonomously pay for services.

Learn more

x402.org · Coinbase x402 docs