Ready to build the future of programmatic payments and agentic commerce?This guide covers how to quickly get started building with x402, an open payment protocol that enables instant, automatic stablecoin payments directly over HTTP. We’ll show you how to monetize APIs, enable AI agents to pay for services, and create frictionless payment experiences.
x402 is a new open payment protocol developed by Coinbase that revives the HTTP 402 Payment Required status code to enable instant, programmatic stablecoin payments. Think of it as bringing native payments to the internet - no accounts, no API keys, just pay and access.Key capabilities:
Instant Micropayments: Pay-per-request APIs with USDC on Base (fee-free!)
Agent-Native Payments: AI agents can autonomously discover and pay for services
No Authentication Required: No API keys, accounts, or complex auth flows
Simple Integration: Add payments to any HTTP endpoint with minimal code
🆕 Discovery Layer (x402 Bazaar): Agents can find and use services programmatically - learn more
Network Support: Currently supporting USDC on Base (mainnet) and Base Sepolia (testnet). To use x402 on mainnet, you’ll need to use the CDP facilitator