GUIDE · HTTP 402

HTTP 402 Payment Required — the status code that changes everything

402 existed for decades as a reserved code. Agent commerce finally gives it a job: machine-readable payment challenges instead of opaque 401 API keys.

What a modern 402 looks like

HTTP/1.1 402 Payment Required
Content-Type: application/json

{
  "accepts": [{
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "payTo": "0x…",
    "amount": "1000"
  }]
}

Amount 1000 with USDC (6 decimals) = $0.001.

Fetch a live 402 Charge agents guide Related: 402 + AI agents
KEEP GOING · SCRIPTMASTERLABS

Related