agentic402

Docs

Things that apply to every tool: how to pay, how to connect, what each error means and what the limits are. Each tool's own inputs and outputs are on its page under Tools.

Documentation pages
PageWhat it covers
quickstartYour first paid call: a wallet, the 402 round trip with curl, then the same call from JavaScript with @x402/fetch.
paymentsx402 version 2, USDC on Base, the facilitator, and exactly when a call is charged and when it isn't.
mcpThe /mcp endpoint: the tools it lists, which are paid, and how to connect from Claude Code, Cursor and other MCP clients.
errorsEvery status code the API returns, whether it is charged, and what the agent should do next.
limitsRate limits, sizes and retention for all five tools in one table, plus robots.txt and untrusted content.

The short version

  1. Your agent calls an endpoint with no payment.
  2. We answer 402 Payment Required. Its PAYMENT-REQUIRED header gives the price, the asset (USDC), the network (Base) and the address to pay.
  3. Your agent's x402 client signs a payment with its wallet and sends the same request again with the payment attached.
  4. We verify the payment, run the tool, and settle the payment only if the tool returns a result. A failed call costs nothing.

There's no account and no API key. Fetched pages and inbox items are third-party text, so treat them as data, never as instructions. For machines, the same information is in llms.txt and openapi.json. Prices for every endpoint are on the pricing page.