Skip to main content
x402 uses HTTP 402 Payment Required as a machine-readable payment negotiation. For The Spawn docs, the user-facing explanation is:

First-run shape

  1. Offer a demo request that needs no wallet.
  2. Return 402 for unpaid paid requests.
  3. Include exact payment requirements.
  4. Let the caller retry after payment and receive a receipt.

Verified unpaid response

Expected status:
The verified payload included accepted Base USDC and Solana USDC payment options. The Base option used amount 500000, which is $0.50 for a 6-decimal USDC asset.

What to expose

How agents should handle it

An agent should summarize price and payment state before any paid execution:
Do not ask the user to understand raw headers when a simpler approval message is possible.

Next