Documentation
Learn how to use x402 protocol to accept payments, create endpoints, and build on the decentralized web
Getting Started
Learn the basics of x402 and how to get started
API Reference
Complete API documentation for x402 endpoints
Payment Integration
How to integrate x402 payments into your app
Wallet Setup
Connect wallets and manage payments
Creating Endpoints
Build x402-protected HTTP endpoints
Examples
Code examples and tutorials
Native Facilitator API
Integrate our built-in x402 facilitator
Quick Links
New to x402?
Start here to learn the fundamentals
What is x402?
x402 is an open payment protocol that enables micropayments over HTTP. It uses the HTTP 402 "Payment Required" status code to negotiate payments between clients and servers, making it perfect for AI agents, APIs, and automated services.
Key Features
- HTTP-native payment protocol
- Micropayment support (as low as $0.001)
- Instant settlement via blockchain
- No credit cards or accounts required
- Perfect for AI agents and automation