What is x402?
x402 is an open standard for internet-native payments over HTTP. When a client requests a paid resource, the server replies 402 Payment Required with a price; the client retries with a signed payment, and the server returns the resource once the payment settles. Coinbase built it, and the x402 Foundation at the Linux Foundation now governs it.
At a glance
- Built by
- Coinbase
- Governance
- x402 Foundation at the Linux Foundation, operational since 14 July 2026
- Members
- 40 at launch, including Google, Visa, Mastercard, Stripe, Shopify, Cloudflare and AWS
- Spec
- v2
- Headers
- PAYMENT-REQUIRED on the 402, PAYMENT-SIGNATURE on the retry
- Payments
- Mostly stablecoins so far
How to spot it
- In your logs:
402responses on the routes you charge for, followed by a retry from the same client that returns200. A burst of 402s with no successful retries usually means an agent that cannot or will not pay. - In request headers:
PAYMENT-SIGNATUREon the paid retry. Most default access logs do not record request headers, so use edge logs or extended logging. - On a site without x402: an unexpected 402 more likely comes from a CDN feature such as pay per crawl or a misconfigured rule.
Other ways agents pay
Quick answers
Is x402 only for crypto?
It started with stablecoins and most use is still crypto, but the x402 Foundation describes it as a general standard for internet-native payments, with card companies among its members.
How does x402 work?
The server answers a request with 402 and a PAYMENT-REQUIRED header. The client retries with a PAYMENT-SIGNATURE header. The server, or a facilitator, verifies and settles, then returns the resource.
Do I need an account system to use x402?
No. That is the point: an agent can pay for one request without signing up, which suits APIs, datasets and paid content.