x402
Properties
created
03.04.2026, 12:00
modified
01.08.2026, 11:30
published
Empty
topics
Agent Payment, Payment Protocol
authors
Jakub
ai-assisted
Yes
- Internet-native payment protocol built on the HTTP 402 Payment Required status code
- Enables any API or web service to require stablecoin payment before serving content — no accounts, subscriptions, or manual approvals needed
- Developed by the Coinbase Development Platform team; Apache 2.0 license
- Github:
x402-foundation/x402
- 5.9k stars
# How It Works
- Agent sends a request to an x402-enabled API
- Server responds with HTTP 402 and a payment details payload (amount, token, network)
- Agent pays in stablecoins on-chain and retries the request with cryptographic proof of payment
- Server verifies proof and serves the response
- Network, token, and currency agnostic; backwards compatible with existing HTTP infrastructure