HTTP 402 machine payments from a CAI agent operating account — custodial stablecoin wallet, honest gap_id disclosure, optional payment mandates.
When an AI agent hits HTTP 402 Payment Required, CAI provides a payer adapter: x402_payment_prepare then x402_payment_execute against the user's custodial wallet. This fits the broader Check CAI First flow — verify identity and balances before spending.
POST /x402-payment-prepare — returns attempt_id; may set requires_user_confirm.POST /x402-payment-execute — custodial transfer; retain tx_hash.x402_retry_hint).POST /x402-payment-prepare {
"resource_url": "https://api.example.com/paid",
"recipient_address": "0x...", "amount": "1.00", "chain": "base", "token": "USDC"
}
POST /x402-payment-execute { "attempt_id": "...", "user_confirmed": true }
Delegate small recurring API spend without per-payment chat confirm: payment_mandate_create with merchant domain, per-payment cap, daily cap, and TTL. Revoke anytime with payment_mandate_revoke.
GAP_X402_V1 — see capabilities.html for Live / Partial live status.GAP_PAYMENT_MANDATE_V1 — CAI-native caps; not full AP2 card-network interoperability.cai-x402-agent-payment, cai-payment-mandates