Skip to content

x402 Protocol

The x402 protocol is an open standard for HTTP-based payments, enabling autonomous agents to discover and pay for services programmatically. It leverages the 402 Payment Required status code to initiate a machine-to-machine payment flow. You can read more about the original specification in the Coinbase x402 repository.

The following headers are used to coordinate the payment between the agent and the AgentBureau gateway.

HeaderDescription
PAYMENT-REQUIREDThe amount and currency required (e.g., 5.00 USDC).
PAYMENT-LINKAn ethereum: URI or direct wallet address for payment.
X-PAYMENT-NONCEA unique nonce for the current payment request.
X-PAYMENT-SCHEMESet to tx-hash-v1 for AgentBureau.
HeaderDescription
PAYMENT-SIGNATUREThe transaction hash of the USDC transfer (e.g., 0x...).
Idempotency-KeyA unique string to prevent duplicate processing of the same task.