Agentic Payments (x402+)
Pay-per-call API access. An AI agent calls your API, gets a 402, pays, retries.How It Works
- Add x402+ middleware to your API endpoint
- Agent calls endpoint → gets 402 with payment details
- Agent pays (from vault = gasless, or direct transfer)
- Agent retries with proof →
POST /v2/sessions/:id/verifyconfirms - Your handler executes, agent gets data
resource field set to the API path.
Creating an x402 Session
Verifying Payment
Your API middleware verifies the payment before serving the response:status is settled.