Server Integration
Adding payment requirements to your API
Client Integration
Paying for x402-protected APIs
Agent Self-Provisioning
An AI agent that needs a facilitator endpoint
Base URL
All requests go through:Path prefixes
The path prefix determines authentication and tier routing:Facilitator URL in your server config
Your server needs a facilitator URL. This is what you pass toHTTPFacilitatorClient:
POST /settle— settle a payment on-chainPOST /verify— verify a payment signature without settling
@x402/express middleware calls these automatically.