Coinbase’s X402 protocol enables USDC payments via standard HTTP no wallets, plugins, or QR codes reviving the HTTP 402 code to reshape web-based stablecoin transfers.
Share
Subscribe to the AlphaWire Newsletter
The internet still depends on outdated systems like credit cards, bank transfers, and rigid subscriptions, none built for real-time, automated interactions between machines. Stablecoins like USDC offer a better fit, but only if they integrate directly into web-native protocols.
That’s where X402 comes in. In June 2025, Coinbase’s team introduced a new use for the HTTP 402 status code (“Payment Required”) a feature that has existed for decades but was never implemented. X402 repurposes it as a programmable signal for stablecoin transactions.

On May 6, 2025, Hyperbolic Labs announced support for Coinbase’s X402 protocol, calling it a major unlock for agentic tools and highlighting its ability to power seamless, per-call USDC payments via HTTP requests.
According to PYMNTS, X402 is designed for both bots and humans, marking a ‘ChatGPT moment’ for payments. With partners like AWS, Anthropic, Circle, and NEAR, Coinbase aims to bring Web3 payments directly into the HTTP layer.
Boosty Labs, in collaboration with Coinbase, demonstrated a working AI agent that automatically completes API calls by paying for them in USDC following a 402 → 200 HTTP flow without any wallet pop-ups or manual steps.
X402 is live on @heurist_ai ‘s Deep Research tool and being tested in real-world scenarios. This enables a major shift in digital interactions: AI agents, backend services, and bots can now initiate real-money transactions seamlessly over standard HTTP. X402 merges data delivery and value transfer into a unified layer, acting as a payment primitive for the next-generation web.
X402 turns a long-unused part of the HTTP protocol, the 402 Payment Required status, into a real mechanism for stablecoin payments. Here’s how the full interaction plays out:
Simulated GET request from a client initiating access to a resource. Reflects how an X402 flow begins with no plugins or wallet popups.

Example 402 response with JSON payload specifying token, chain, and recipient. Modeled after Coinbase and Boosty Labs documentation:

And returns a JSON payload such as:

POST request with a signed transaction in the custom HTTP header. Represents how payment is submitted via the X402 standard:

Once payment is confirmed, the server returns the requested content. The entire flow happens within the HTTP protocol, without wallet popups, QR codes, or external redirects.
The following flowchart illustrates the X402 transaction flow:

X402 matters because it brings native, on-chain payments into the web’s core protocol stack. HTTP. It bypasses browser extensions, third-party gateways, and custodial flows, enabling real-time, permissionless stablecoin transactions between machines, APIs, and users.
X402 runs on Base, Coinbase’s Layer 2, where USDC transfers routinely finalize in under 500 milliseconds at a cost of less than $0.001. These characteristics enable true microtransaction use cases for per-request access, streaming APIs, and real-time paywalls.
In May 2025, Coinbase demonstrated an AI agent successfully paying for API access via HTTP using X402. The transaction was signed, submitted, and verified with no wallet interface, and the data request completed within the same HTTP cycle.
Coinbase has released a reference implementation on GitHub, allowing developers to integrate programmable, per-request stablecoin payments into existing APIs or SaaS platforms using standard HTTP middleware.
X402 introduces a fundamental shift in how value is exchanged online by embedding stablecoin payments directly into the HTTP protocol. Instead of relying on external wallets, payment processors, or subscription models, X402 allows users, bots, and backend systems to make real-time payments using standard web requests.
The protocol is already live for developers. Coinbase’s GitHub repo contains open-source code, implementation guides, and test deployments. Engineers can add X402 to Express or Hono servers with minimal configuration, enabling pay-per-request billing logic using USDC and on-chain verification.
This means financial transactions can now occur alongside data requests, just like HTML or JSON, without browser extensions or redirects. Built on Coinbase’s Base network, X402 enables fast, low-cost USDC payments with sub-second finality, making microtransactions viable for APIs, content access, and machine-to-machine services.
By reviving the long-dormant HTTP 402 status code and standardizing signed payments in headers, X402 turns the web itself into a payment-capable medium, unlocking use cases like AI agents purchasing data, real-time API monetization, and decentralized billing systems. It doesn’t add a new layer to the internet; it enhances the one we already use.
X402 isn’t theoretical. it’s live in mid‑2025 and powering real web-native stablecoin payments. Bots, browsers, and backend clients can now pay for digital resources with USDC using a simple HTTP request.
Real use cases include:
What Stripe is to fiat, X402 could be for stablecoins, but built for bots and integrated directly into the web.
| Use case | Before (Traditional) | After x402 |
| AI agent payments | API key + credit card checkout | 402 → USDC → retry via HTTP headers |
| Micro‑API monetization | Subscriptions, time-limited keys | Pay per request; no key setup |
| Bots as users | Not possible w/o human tokens | Fully autonomous machine payments |
| SaaS billing | Stripe + KYC + invoices | On-chain payments via HTTP |
X402 turns the dormant HTTP status code 402 (“Payment Required”) into a live, programmable payment mechanism using USDC over HTTP. no wallets, no browser plugins, no UI friction.
Here’s how it works:
X402 works on Base, Coinbase’s layer-2, where fees are under $0.001 and finality is 400ms. ideal for autonomous payments. This seamless design makes X402 suitable for everything from AI agent payments to micro-API monetization. all over standard web infrastructure.
As X402 enters wider adoption in the second half of 2025, its long-term impact will depend on developer traction, standardized tooling, and integration across major API ecosystems.
While Coinbase and Boosty Labs have demonstrated real-world utility, the protocol still faces challenges: interoperability with other chains, privacy considerations, and potential regulatory scrutiny around machine-initiated payments.
However, the foundation is solid. By embedding programmable payments directly into HTTP, the internet’s core protocol, X402 positions itself not just as a technical novelty but as a new payment primitive for the age of AI, APIs, and autonomous agents. The real test now is scale.
X402 requires no wallets, browser extensions, or QR codes. It integrates directly into HTTP, allowing users or bots to respond to a 402 status code with a signed USDC payment in the HTTP header, making it frictionless and invisible to the end user.
Yes. X402 is specifically designed for autonomous agents, including AI bots, to make real-time payments for API calls, data access, or digital services without requiring human authorization or UI interactions.
X402 runs on Base, Coinbase’s Ethereum layer-2 network. Base was chosen for its low fees (typically under $0.001) and 200–400ms transaction finality, making it ideal for microtransactions and real-time payments.
No. X402 uses USDC directly and doesn’t require pre-approvals or holding ETH for gas. Base network abstracts gas costs via meta-transactions or batching, depending on implementation.
X402 is ideal for API providers, SaaS platforms, DePIN networks, and devs building agentic tools or AI workflows. Any use case that benefits from per-request billing, automated access control, or frictionless payments can adopt X402 using standard HTTP libraries.
Share
