Quick links
What is x402?
Understand the protocol
Getting Started
Try it right now (no signup)
Server Integration
Add payments to my API
Client Integration
Pay for an x402 API
Agent Self-Provisioning
Provision an endpoint programmatically
Plans & Pricing
Compare plans
API Reference
See all endpoints
How it works
1
Client requests a protected endpoint
2
Server responds 402 Payment Required with price and payment address
3
Client signs a USDC transfer and retries with the X-PAYMENT header
4
Server forwards the payment to Renvoy, which settles it on-chain
5
Server returns the data
@x402/express middleware and @x402/fetch client handle steps 2-4 automatically.