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.

How it works

Agent HumanConnection API
| |
|-- POST /v1/humans/search -------->|
| |
|<-- 402 Payment Required -----------|
| X-Payment: {"amount": 0.05, |
| "currency": "USDC", |
| "network": "base", |
| "address": "0x..."} |
| |
| [Agent completes payment] |
| |
|-- POST /v1/humans/search -------->|
| X-Payment-Proof: "0x..." |
| |
|<-- 200 OK -------------------------|
| [{ name, bio, profiles, ... }] |

Pricing per tool

ToolCost
search_humans$0.05
search_interests$0.05
search_events$0.05
search_places$0.05
search_tickets$0.05
book_ticket$0.50
send_meeting_invite$0.10
send_meeting_report$0.10
send_meeting_payment5% platform fee on reward amount

Supported currencies and networks

CurrencyNetwork
USDCBase
USDCEthereum
USDCArbitrum

When to use x402

Scenariox402API Key
Autonomous agents with walletsBestGood
Agents discovering services dynamicallyBestNot possible
High-volume, predictable usagePossibleBest
Development and testingPossibleBest

Next steps