We raised €6M. Learn more →
Promptwatch Logo

x402

x402 is an open payment protocol that revives the HTTP 402 Payment Required status code so AI agents and crawlers can pay for resources programmatically, without accounts or API keys.
Updated August 1, 2026
AI

Definition

x402 is an open protocol, introduced by Coinbase in 2025, that turns HTTP 402 Payment Required into a working payment rail for machines. A client requests a resource, receives a 402 response describing the price and how to pay, submits payment, and retries the request. No account creation, API key provisioning, or human checkout step is involved, which is what makes it usable by autonomous AI agents.

The first reference implementations settle in stablecoins on-chain, and adoption grew quickly through 2025 and 2026 as agent traffic increased. A later revision added wallet credentials that prove both identity and payment authorization in the same exchange, which gives sites something user-agent strings never could: evidence of which specific user delegated authority to an agent.

x402 is deliberately narrow. It does not model carts, refunds, or the commerce lifecycle—that is the job of protocols like the Agentic Commerce Protocol for checkout and AP2 for authorization mandates. x402 just embeds payment into HTTP. In practice these layers stack: AP2 says the agent is authorized, x402 moves the money, and a licensing layer such as RSL says what the buyer may do with what they bought.

For publishers, x402 is the machine-to-machine plumbing behind pay per crawl and metered APIs. For GEO teams, it is worth understanding as part of the emerging economics of agentic search: as agents gain the ability to pay for access, the question shifts from whether a bot can reach your content to whether paying for it is worth more to you than being cited for free.

Examples of x402

  • An AI agent requests a metered API endpoint, receives HTTP 402 with payment details, settles the payment, and retries the request successfully.
  • A documentation site charges agents a fraction of a cent per fetch through x402 while keeping the same pages free for human visitors.
  • A crawler presents wallet credentials that prove both which operator it belongs to and that a specific user authorized the purchase.
  • A platform team stacks x402 for settlement, AP2 for authorization, and RSL for licensing terms rather than trying to solve all three with one protocol.

Terms related to x402

Pay Per Crawl

Pay per crawl is an arrangement where a site charges AI crawlers for each request using HTTP 402 Payment Required, instead of serving content for free or blocking it outright.

SEO

Agent Payments Protocol (AP2)

AP2 is Google's open protocol for agent-driven payments, using cryptographically signed mandates to define exactly what an AI agent is authorized to purchase on a user's behalf.

GEO

Agentic Commerce Protocol (ACP)

The Agentic Commerce Protocol (ACP) is an open standard from OpenAI and Stripe that lets AI agents complete secure, delegated checkout inside chat surfaces like ChatGPT.

GEO

Agentic Commerce

Agentic commerce is a buying model where AI agents discover, compare, and purchase products on behalf of users—shifting product visibility from human browsing to machine selection.

GEO

AI Agents

Autonomous AI systems that plan, use tools, execute multi-step tasks, and make decisions to achieve goals with minimal human intervention.

AI

Agentic Search

Agentic search is AI search that plans, browses, compares, uses tools, and completes multi-step research or transaction tasks on behalf of users.

GEO

Web Bot Auth

Web Bot Auth is an IETF-track protocol that lets AI crawlers and agents cryptographically sign HTTP requests so sites can verify bot identity instead of trusting user-agent strings.

AI

Really Simple Licensing (RSL)

Really Simple Licensing (RSL) is an open XML standard that lets publishers declare machine-readable usage, licensing, and compensation terms for AI crawlers and agents.

AI

Model Context Protocol (MCP)

Open standard by Anthropic enabling AI models to securely connect with external tools, databases, and services through a universal protocol.

AI

Agent Experience Optimization (AEO)

Agent Experience Optimization (AEO) is the practice of structuring a website and its data so AI agents can discover, understand, trust, and act on a business—not just read it.

GEO

Frequently Asked Questions about x402

Learn about AI visibility monitoring and how Promptwatch helps your brand succeed in AI search.

Traditional payment flows assume a human with an account, a card, and a checkout page. Autonomous agents have none of those. x402 lets a client pay for a single resource inline over HTTP and immediately retry the request, which makes per-request pricing practical for machine traffic.

Be the brand AI recommends

Monitor your brand's visibility across ChatGPT, Claude, Perplexity, and Gemini. Get actionable insights and create content that gets cited by AI search engines.

Promptwatch Dashboard