FurlPay Docs
Open App
  • Introduction
  • Quickstart
  • For AI Agents
  • Monorepo
  • API Routes
  • Authenticationnew
  • Webhook Eventsnew
  • Error Codesnew
  • Rate Limitsnew
  • Agentic Payments (x402)
  • Agent Trust & Mandates (TAP)
  • CCTP Cross-Chainnew
  • LI.FI Swapsnew
  • FurlPay Travels (Travel MCP)
  • Solana Actions & Blinks
  • Claude Connectornew
  • AI Assistants
  • Stripe Crypto
  • Persona KYC
  • MiCA Roadmap
  • Security Posturenew
  • MPC & WebAuthn
  • Help Centernew
  • Getting Started
  • KYC Verification
  • Passkeys & Biometrics
  • Privacy & Data Protection
  • Transaction Statuses
  • Gasless Transfers
  • Deposits & Withdrawals
  • Managing Virtual Cards
  • Freezing & Unfreezing Cards
  • Declined Transactions
  • SDK & API Support
  • x402 Monetization Basics
  • Booking Travel
  • Travel Refunds & Cancellations

Resources

  • Changelog
  • System Status
  • OpenAPI Spec
  • Community
  • GitHub
Docs/Help Center/x402 Monetization Basics

Help Center

x402 Monetization Basics

x402 lets you charge per request for anything served over HTTP — an API, a dataset, a model endpoint — and lets AI agents pay for it without an account, an API key, or a subscription.

The idea in one paragraph

HTTP has always had a status code 402 Payment Required; x402 finally gives it a protocol. Your endpoint answers an unpaid request with a 402 carrying a price quote. The caller — typically an AI agent — signs a USDC payment authorization and retries with it attached. A facilitator settles the payment on-chain, and your endpoint releases the response. No signup, no invoicing, no key management: paying is the authentication.

Two protocol dialects, handled for you

x402 v1 carries payment data in X-PAYMENT headers and the 402 body; v2 (since December 2025) moved to PAYMENT-SIGNATURE / PAYMENT-REQUIRED headers with different shapes. FurlPay's tooling speaks both at once and answers in whichever dialect the caller used — you never configure a version.

Monetize an endpoint in three commands

bash
npm install @furlpay/gateway
npx @furlpay/gateway secret        # generates your quote secret
npx @furlpay/gateway expose http://localhost:8000 \
  --price 0.01 --pay-to 0xYourWallet --network base

That reverse proxy paywalls an API you cannot even modify. For code-level integration (Next.js routes, Express middleware), see the package docs on npm.

What the gateway protects you from

  • Replay: one payment unlocks one response, exactly once — even under concurrent retries.
  • Substitution: a payment quoted for a cheap endpoint cannot unlock an expensive one, or a different request body at the same price.
  • Underpayment, expired quotes, wrong-network payments, and facilitator outages all fail closed.

Where the money goes

Payments settle as USDC to the wallet you set in payTo — directly, on-chain. FurlPay never custodies your revenue.

Full protocol documentation: Agentic Payments (x402).

Did this page help?
Edit this page on GitHub

← Previous

SDK & API Support

Next →

Booking Travel