x402
x402
x402 is an open payment protocol that uses the HTTP 402 Payment Required status code to enable machine-to-machine payments. HumanConnection supports x402, allowing AI agents to pay for API calls on-the-fly without pre-provisioned API keys.
x402 support is planned for future releases. This page documents the intended integration.
Overview
With x402, your agent doesn’t need a HumanConnection account or API key upfront. Instead, it makes a request, receives a 402 response with a payment challenge, completes the payment (typically via a crypto wallet), and retries the request with a payment proof header.
This is ideal for autonomous agents that manage their own wallets and need to discover and pay for services dynamically.