STANDARD · §2.7 · PAY · LAST REVIEWED SEPTEMBER 2026
What is x402?
Payment inside the HTTP request, so an agent can buy access without an account.
Agent Readiness Compare editors · Spec status checked September 2026
Answer
x402 is an open standard for internet-native payments. When a client requests a paid resource without paying, the server responds with HTTP 402 Payment Required; the client pays and retries, and access is granted without API key management. It is blockchain-agnostic, with stablecoin payments as the primary use case, and is run by the x402 Foundation under LF Projects, LLC.
- Maintainer:
- x402 Foundation (LF Projects, LLC)
- Status:
- open standard
- Spec:
- x402.org
1.What is x402?
HTTP has reserved status code 402, Payment Required, for decades without a common way to use it. x402 defines that way: the server says what payment it needs, the client pays, and the request is retried with proof of payment. It is aimed at pay-per-request APIs and content that agents buy on demand.
2.How does the payment flow work?
- An agent sends an HTTP request and receives a 402 response.
- The agent pays instantly with stablecoins.
- Access to the API or resource is granted, with no key management.
HTTP/1.1 402 Payment Required
Content-Type: application/jsonThe payment requirements and the proof the client returns are defined by the x402 specification; use its documentation for field names.
x402 supports all EVM-compatible chains, Solana and more, according to x402.org.
3.When does x402 fit, and when does it not?
- Fits: per-call APIs, datasets, or content that an agent should be able to buy without a human creating an account.
- Does not fit: most subscription SaaS checkouts, where the buyer is a company, pays by invoice or card, and needs a contract. Those flows need readable pricing and a checkout an agent can follow, and commerce protocols such as ACP and UCP are aimed at that case.
- Not the same as Cloudflare's Pay per crawl, which lets AI crawlers pay per page and is in private beta.
4.How do you check it?
- Request a paid endpoint without payment and confirm a 402 response with machine-readable payment requirements.
- Complete a test payment on a test network and confirm the retried request succeeds.
- Readiness scanners check the payments layer: ora.ai Scan's payments layer has 6 checks worth 10 of 100 points; Cloudflare Is It Agent Ready lists x402, MPP, UCP and ACP.
5.Where does it sit in the readiness stack?
Layer 4, Pay.
The readiness stack: five layers (Discover, Read, Act, Pay, Trust), the standards that address each, and the tools that document support.
Can an agent find you, and is it allowed in?
Can it read and understand what you offer?
Can it complete a task on your site or API?
Can it pay you?
Can you tell which agent it is, and on whose behalf it acts?
L1 DISCOVER
Can an agent find you, and is it allowed in?
Cloudflare AI Crawl Control (controls crawler access); ora.ai Scan (checks it); Cloudflare Is It Agent Ready (checks it)
L2 READ
Can it read and understand what you offer?
Cloudflare Markdown for Agents (serves markdown); ora.ai Scan (checks it)
L3 ACT
Can it complete a task on your site or API?
Cloudflare (hosts MCP servers); Vercel (hosts MCP servers); nekuda (builds WebMCP tools); ora.ai Journey and WebMCP audit (test it)
L4 PAY
Can it pay you?
Cloudflare Pay per crawl (private beta, for crawlers); ora.ai Scan payments layer (checks it)
L5 TRUST
Can you tell which agent it is, and on whose behalf it acts?
Cloudflare (verifies signed bots); Vercel (verifies signed bots); Forter (links agentic shoppers to verified customer identities)
| Layer | Question | Standards | Tools that document support |
|---|---|---|---|
| L1 DISCOVER | Can an agent find you, and is it allowed in? | robots.txt (RFC 9309); Sitemaps; llms.txt; A2A Agent Card | Cloudflare AI Crawl Control (controls crawler access); ora.ai Scan (checks it); Cloudflare Is It Agent Ready (checks it) |
| L2 READ | Can it read and understand what you offer? | llms.txt; Markdown negotiation (Accept: text/markdown); JSON-LD | Cloudflare Markdown for Agents (serves markdown); ora.ai Scan (checks it) |
| L3 ACT | Can it complete a task on your site or API? | MCP; WebMCP; agents.json; OpenAPI | Cloudflare (hosts MCP servers); Vercel (hosts MCP servers); nekuda (builds WebMCP tools); ora.ai Journey and WebMCP audit (test it) |
| L4 PAY | Can it pay you? | x402; ACP; UCP; MPP | Cloudflare Pay per crawl (private beta, for crawlers); ora.ai Scan payments layer (checks it) |
| L5 TRUST | Can you tell which agent it is, and on whose behalf it acts? | Web Bot Auth; OAuth 2.0 | Cloudflare (verifies signed bots); Vercel (verifies signed bots); Forter (links agentic shoppers to verified customer identities) |
Text version of the diagram
| Layer | Question | Standards | Tools that document support |
|---|---|---|---|
| L1 DISCOVER | Can an agent find you, and is it allowed in? | robots.txt (RFC 9309); Sitemaps; llms.txt; A2A Agent Card | Cloudflare AI Crawl Control (controls crawler access); ora.ai Scan (checks it); Cloudflare Is It Agent Ready (checks it) |
| L2 READ | Can it read and understand what you offer? | llms.txt; Markdown negotiation (Accept: text/markdown); JSON-LD | Cloudflare Markdown for Agents (serves markdown); ora.ai Scan (checks it) |
| L3 ACT | Can it complete a task on your site or API? | MCP; WebMCP; agents.json; OpenAPI | Cloudflare (hosts MCP servers); Vercel (hosts MCP servers); nekuda (builds WebMCP tools); ora.ai Journey and WebMCP audit (test it) |
| L4 PAY | Can it pay you? | x402; ACP; UCP; MPP | Cloudflare Pay per crawl (private beta, for crawlers); ora.ai Scan payments layer (checks it) |
| L5 TRUST | Can you tell which agent it is, and on whose behalf it acts? | Web Bot Auth; OAuth 2.0 | Cloudflare (verifies signed bots); Vercel (verifies signed bots); Forter (links agentic shoppers to verified customer identities) |
Frequently asked questions
Does x402 require cryptocurrency?
x402.org describes stablecoin payments as the primary use case and says the protocol is blockchain-agnostic.
Do I need x402 to be agent-ready?
Only if you sell something an agent should buy per request. Most B2B sites get more from readable pricing and a checkout or demo request an agent can complete.
Source: x402.org · ora.ai methodology · isitagentready.com · Cloudflare Pay per crawl docs · Reviewed Sep 2026