x402: Unlocking Per-Request Payments on HTTP Coinbase created the x402 protocol, contributed to the Linux Foundation in July 2026, which revives HTTP's 402 Payment Required status code as a machine-readable handshake letting AI agents pay per API request in stablecoins without accounts or API keys. The protocol supports exact, upto, batch-settlement and auth-capture schemes, and its payment-identifier extension caches responses by ID so retries avoid double-charging. Fireblocks and Chainalysis found over half of x402's lifetime transactions came from a two-month speculative burst in late 2025, with monthly volume settling to 5.1 million transactions worth roughly $274,000 by October 2026. Over the past seven parts of this series, we’ve looked at how AI agents reason and transact, which brings us to a deceptively simple question: how does an autonomous client actually pay for an API call without a human clicking "approve"? The x402 protocol answers that by reviving HTTP’s long-dormant 402 Payment Required status code as a native, machine-readable payment handshake. The HTTP 402 Payment Required status code was envisioned for a future where websites could charge for access on the spot, yet went largely unused. x402 finally makes that vision work. Created by Coinbase and contributed to the Linux Foundation in July 2026, x402 lets AI agents, scripts, and apps pay per request directly inside standard web traffic, skipping sign-ups, API keys, and monthly plans altogether. Instead of provisioning accounts or pre-negotiating billing tiers before an agent can hit an endpoint, payment happens inside the call itself. x402 is transport- and chain-agnostic, though HTTP with stablecoins like USDC on fast, low-fee networks such as Base or Solana is its most common setup: GET or POST . If payment is required, the server responds with HTTP 402 and payment requirements in the PAYMENT-REQUIRED header Base64-encoded JSON specifying accepted schemes, network, asset, and amount . PAYMENT-SIGNATURE header. In x402 v1, this was X-PAYMENT ; v2 standardizes on the new header names. PAYMENT-RESPONSE header confirming the settlement outcome. exact scheme for fixed per-call pricing known cost before execution , upto for variable costs where the buyer authorizes a ceiling and settlement reflects actual usage, batch-settlement for high-volume workloads where per-request authorizations are accumulated against a reusable channel, or auth-capture for refundable payments where funds are held in escrow and released captured, voided, or refunded after the resource is served. Cost note: The protocol itself doesn't add a processing cut, but facilitators charge for on-chain settlement. Coinbase's CDP Facilitator offers 1,000 free on-chain transactions per month, then $0.001 per transaction. Payment verification is always free. This means a $0.001 endpoint nets nothing after the free tier—sellers should price above their facilitator cost per call. If you've been following this series alongside MPP, both protocols revive HTTP 402 —but they optimize for different starting points: The two are structurally different rather than competing implementations of the same thing. x402's exact flow can map onto MPP's charge intent, and mppx can run x402-compatible EVM charges inline with MPP routes, so the same endpoint can serve both client types. Frictionless micropayments still need engineering discipline before going live: success: false should never be treated as delivered work. payment-identifier extension that lets clients attach a unique ID to a payment payload; the server caches responses keyed by that ID, so a retry with the same ID returns the cached result without reprocessing payment. The ID must be 16–128 characters and contain only alphanumeric characters, hyphens, and underscores. This is the mechanism that makes network-failure retries safe rather than double-charging the agent. x402's transaction counts are frequently cited in the hundreds of millions, but the numbers need context. Fireblocks and Chainalysis found that more than half of x402's lifetime transactions occurred during a two-month speculative burst in late 2025 tied to a token minted through the protocol. By October 2026, monthly volume had settled to 5.1 million transactions worth roughly $274,000. The more durable signal is stickiness: median time from wallet funding to first x402 payment fell from 73 days to 18 minutes, and 89% of wallets funded in Q2 2026 were topped up again within 30 days. For a more sobering benchmark: Visa's crypto lead, Cuy Sheffield, said in November 2026 that on-chain agent payment volume across x402 and MPP combined is around $50,000 per week, and has been flat for six to eight months. For builders evaluating x402, the question isn't "how many transactions happened" but "is the usage pattern that matters to my use case actually materializing." x402 takes the HTTP 402 status code that has sat dormant for decades and turns it into a working payment rail for machine-to-machine commerce. Its strengths are real: zero account provisioning, per-request settlement in stablecoins, and a growing facilitator ecosystem with clear if modest per-transaction costs. Its limitations are also real: it prices individual requests, not sessions, which means high-frequency metered workloads may be better served by MPP's session intent. The two protocols aren't converging—they're diverging into distinct niches, and that's fine. The web needs both a per-call payment primitive and a session-based billing layer. If you're building on x402, start with exact for predictable costs, use the payment-identifier extension from day one, and budget for facilitator fees once you exceed the free tier. The protocol is simple; the production discipline is not. To learn more about HarnessBuy, visit https://www.harnessbuy.com/ https://www.harnessbuy.com/ For official information about x402, see https://x402.org/ https://x402.org/