Obsyd Docs Open app
Docs/Payments

x402 payments

x402 uses HTTP 402 Payment Required so a program can pay for a request without an account.

The flow

  1. Call the endpoint without payment.
  2. Read accepts in the 402 body: scheme, network, asset, amount, address.
  3. Sign a payment for that exact amount with the agent's wallet.
  4. Repeat the call with the signed payload, base64-encoded, in X-PAYMENT.
  5. On success, the X-PAYMENT-RESPONSE header carries the settlement transaction.

Fields in accepts

FieldMeaning
schemeexact: pay exactly this amount
networkWhere the USDC moves
assetAlways USDC
maxAmountRequiredAmount in the asset's smallest unit (6 decimals)
payToObsyd's receiving address
maxTimeoutSecondsHow long the quote holds
Warning
Never send a private key to Obsyd. The signed payment is valid for one amount, one address and a short time; that is all we need.

Clients

Any x402 client works. Most wrap fetch or requests and handle steps 2 to 4 for you, see the Quickstart.

Was this page helpful?

© 2026 Obsyd · Terms · Privacy