Skip to main content
Building in TypeScript, or starting from scratch? Use AgentCash Router instead: it handles payments, wallet identity, and discovery for you, and the Vercel template deploys a working pay-per-call API in one click.

When the agent finishes

  1. Your API should respond with 402 and payment metadata on unpaid requests.
  2. Your /openapi.json should describe each payable route with pricing info.
  3. Your origin will be registered on x402scan and/or mppscan so agents can find you.