x402
x402 lets an API or page charge per request. The server answers 402 with a PAYMENT-REQUIRED header, the client retries with a signed payment, and a facilitator settles it, mostly in stablecoins.
Published 2026-11-26. Updated 2026-11-29. Facts checked 2026-11-26. Read as Markdown
- Status
- Vendor spec
- Version
- v2
- Owner
- x402 Foundation (Linux Foundation)
- Layer
- Commerce (can agents pay?)
- Where on a site
HTTP 402 with PAYMENT-REQUIRED- Specification
- github.com
In short
-
The server answers
402 Payment Requiredwith aPAYMENT-REQUIREDheader. The client retries withPAYMENT-SIGNATURE, and the server confirms withPAYMENT-RESPONSE[1]. - It is a vendor spec, protocol version 2, run by the x402 Foundation at the Linux Foundation. Its technical steering committee is Coinbase, Cloudflare and Stripe [2][3].
- There is no discovery file on the merchant's site. Discovery happens through facilitators [2][4].
- Recent support includes AWS Bedrock AgentCore, which can pay x402 sellers on AWS Marketplace (2026-11-19), and PayPal, which joined the foundation (2026-11-10) [5][6]. Visa's agent wallet moved the other way, to MPP [7].
- Ora counts a real x402 payment challenge on 131 of 181,111 scanned sites [8].
x402 puts a price in the HTTP response
x402 makes a price part of the HTTP response. An agent asks for a resource, learns the price from the 402, pays, and gets the resource, with no account or sign-up. That suits small, frequent purchases such as one API call or one article.
A facilitator checks and settles payments so the seller does not have to run blockchain infrastructure. In the default flow, money moves only after the request succeeds [2]. Payments are mostly in USDC-style tokens on networks such as Base and Solana, named with CAIP-2 identifiers; the spec encourages similar identifiers for other payment networks [2]. AWS's version bills the buyer's AWS account in US dollars instead of a crypto wallet [5].
A priced URL answers with a 402 and the price
-
On a priced URL, the server sends status 402 and a
PAYMENT-REQUIREDheader holding base64-encoded JSON withx402Version(2),resourceand anaccepts[]list. Each entry givesscheme,network,amount,asset,payToandmaxTimeoutSeconds[1][2]. -
For browser clients, expose
PAYMENT-REQUIREDandPAYMENT-RESPONSEwithAccess-Control-Expose-Headers, and allowPAYMENT-SIGNATUREin preflight [1]. -
The legacy version 1 put the JSON in the response body and used
X-PAYMENTheaders. Version 2 renamed them [1]. -
No
/.well-knownfile. Facilitators can list priced resources through the "Bazaar" discovery API [4]. - As an optional identity link, an extension tells clients to sign requests with Web Bot Auth keys [9].
Few sites charge this way yet
- Ora counted 131 of 181,111 sites its users scanned (2026-11-25) [8].
- Cloudflare Radar's 2026-11-02 scan, as transcribed by TechnologyChecker, found 7 of 115,468 popular domains [10].
- Cloudflare's Monetization Gateway, in closed beta, charges agents with plain x402 [11]. Apify accepts x402 and MPP for its tools (2026-11-24) [12].
In our scan of 14 sites on 2026-11-26, no request was answered with a 402 [13]. We only see a 402 on URLs the scan visits, so a priced API elsewhere on a site would be missed.
Adopt it only if you sell per request
- Adopt it only if you sell per request, such as API calls, data, content or tool runs. Most sites can skip it.
- Use a platform before building your own. Cloudflare and AWS Marketplace already handle the 402 and settlement.
- Consider MPP alongside it. Stripe supports both [14], and some agent wallets support only one.
- Tell agents what costs money. Mark priced endpoints in your API docs or OpenAPI file, since there is no site-level discovery file.
Questions
What is HTTP 402 Payment Required used for?
HTTP has reserved status 402 for future use for decades, without defining how it works [15]. x402 and MPP now use it to tell a client that a resource has a price and how to pay it [1].
Which should I support, x402 or MPP?
x402 is a foundation-run spec built around stablecoin payments through facilitators. MPP is an IETF individual draft that treats payment as an HTTP authentication step and supports cards and other methods. If your payment provider supports both, offering both reaches more agents.
Sources
| # | Source | Publisher | Primary or secondary | Checked | Status |
|---|---|---|---|---|---|
| 1 | https://github.com/x402-foundation/x402/blob/main/specs/transports-v2/http.md | x402 Foundation | primary | 2026-11-26 | vendor spec (protocol v2) |
| 2 | https://github.com/x402-foundation/x402/blob/main/specs/x402-specification-v2.md | x402 Foundation | primary | 2026-11-26 | vendor spec (v2.0, 2025-12-09) |
| 3 | https://github.com/x402-foundation/x402/blob/main/TSC.md | x402 Foundation | primary | 2026-11-11 | governance |
| 4 | https://github.com/x402-foundation/x402/blob/main/specs/extensions/bazaar.md | x402 Foundation | primary | 2026-11-26 | vendor spec (extension) |
| 5 | https://aws.amazon.com/blogs/machine-learning/enable-ai-agents-to-pay-for-aws-marketplace-x402-products-with-amazon-bedrock-agentcore-payments/ | AWS | primary | 2026-11-26 | vendor announcement (2026-11-19) |
| 6 | https://x.com/x402/status/2120275779170766892 | x402 Foundation | primary (seen as a search excerpt) | 2026-11-26 | announcement (2026-11-10) |
| 7 | https://app.visacli.sh/docs/pay-with-mpp | Visa (Visa CLI docs) | primary | 2026-11-26 | experimental product |
| 8 | https://ora.ai/protocol-adoption | Ora | primary | 2026-11-26 | adoption data (2026-11-25) |
| 9 | https://github.com/x402-foundation/x402/blob/main/specs/extensions/http-message-signatures.md | x402 Foundation | primary | 2026-11-11 | vendor spec (extension) |
| 10 | https://technologychecker.io/blog/agentic-commerce-statistics-insights | TechnologyChecker (Cloudflare Radar data) | secondary | 2026-11-26 | adoption data (2026-11-02) |
| 11 | https://developers.cloudflare.com/monetization-gateway/x402/ | Cloudflare | primary | 2026-11-26 | experimental (closed beta) |
| 12 | https://blog.apify.com/introducing-x402-agentic-payments/ | Apify | primary | 2026-11-26 | vendor announcement (2026-11-24) |
| 13 | Our scans of 14 sites, 2026-11-26 (scanner 0.2.0) | Agents404 | primary (own data) | 2026-11-26 | own data |
| 14 | https://stripe.com/blog/machine-payments-protocol | Stripe | primary | 2026-11-11 | vendor announcement (2026-03-18) |
| 15 | https://www.rfc-editor.org/rfc/rfc9110 | RFC Editor | primary | 2026-11-26 | stable (RFC 9110) |
Recent changes
- 2026-11-24 Apify adds x402 and MPP payments for AI agents via Apify AGI
- 2026-11-24 Visa CLI adds Trusted Agent Protocol to MPP and retires x402
- 2026-11-19 AWS adds Marketplace x402 purchasing to Bedrock AgentCore payments
- 2026-09-30 Cloudflare Monetization Gateway beta uses x402
- 2026-07-14 x402 Foundation becomes operational
- 2026-04-02 Linux Foundation announces the x402 Foundation
Primary sources
| # | Source | Publisher | Checked |
|---|---|---|---|
| 1 | https://github.com/x402-foundation/x402/blob/main/specs/transports-v2/http.md | GitHub (x402-foundation) | 2026-11-11 |
| 2 | https://aws.amazon.com/blogs/machine-learning/enable-ai-agents-to-pay-for-aws-marketplace-x402-products-with-amazon-bedrock-agentcore-payments/ | AWS | 2026-11-26 |