Request
An autonomous agent calls an AgentPay-enabled API like any other HTTP resource.
GET /api/premiumAgentPay turns HTTP 402 into an autonomous USDC payment flow for AI agents. Discover a price, pay within policy, and continue — no accounts, invoices, or human checkout.
Agents can browse, reason, and act — but they still hit a human checkout when value must move.
AgentPay gives APIs a machine-native price and agents a policy-controlled way to pay it. One familiar HTTP status becomes a market primitive: ask, quote, settle, continue.
An autonomous agent calls an AgentPay-enabled API like any other HTTP resource.
GET /api/premiumHTTP 402 returns exact USDC terms. Local policy approves the origin, chain and spend.
402 · 0.01 USDCThe API verifies the onchain receipt, atomically claims it, and releases the resource.
200 · premium dataCall the public endpoint. It quotes exactly $0.01 in real USDC on Base. A verified transaction hash unlocks the premium response once — and only once. The returned text is intentionally fixed and non-sensitive: this proves settlement, not authenticated access control.
Pricing travels with the request instead of through accounts, invoices or a separate checkout stack.
Agents enforce origin, chain, recipient, token and maximum spend before signing anything.
Receipts, confirmations, official USDC transfer logs and durable replay protection gate every response.