Skip to content

Sell your API to AI agents

Answer 402 with your price, register your origin, and agents pay your wallet per call; to charge AI crawlers on a site instead, use the tollbooth.

WHAT IT COSTS YOU
listing fee$0
cut of your sales0%
signup / accountnone
review queuenone
who holds your fundsyou do
you keep your paywallyes
seller toolsoptional, paid
How we make money ↓
$ POST /api/index/register

Five steps, no account

  1. 01

    Serve a 402

    Answer HTTP 402 with your price, asset, network and payTo on each paid endpoint; any x402 middleware does this.

  2. 02

    Register the origin

    One POST to /api/index/register. No account and no review queue.

  3. 03

    Get crawled

    The crawler reads your manifest at once and re-probes it every 30 minutes for health, never as a paid call.

  4. 04

    Get ranked

    The router shortlists tools by how well they match a task, so an accurate description wins. It buys from an outside seller only when the buyer asks (include: "external"). Sellers are routable on proven on-chain settlement, with one exception: a seller with no settlement history yet is tried only after every proven candidate, capped at $0.05 a call on Base (at most $0.25 a day per seller, $5.00 a day in all), $0.01 a call on Solana and $0.01 a call on Polygon, Arbitrum and Celo, and flagged unproven on the receipt.

  5. 05

    Get paid

    Buyers pay your wallet directly, in the asset and on the chains your 402 names. Settled Base USDC volume shows up on the public on-chain leaderboard.

One-liner, from a shell
curl -X POST \
  https://agent402.tools/api/index/register \
  -H 'content-type: application/json' \
  -d '{"origin":"https://seller.example"}'
Register in one call
We probe your origin and list you if it answers; an app under a path registers with that path.

Speak MPP? Register on the MPP marketplace →

$ GET /.well-known/x402

What the crawler reads

Your x402 manifest at /.well-known/x402, the routes on the origin you register and their 402s; never your keys or funds. The crawler page lists every read.

Manifest format, with an example

Serve a JSON manifest at /.well-known/x402 on the origin you register. The crawler reads its resources array (tools, endpoints, services, items and resourceCatalog are read the same way). Each entry is a route URL, or an object with resource (or url, endpoint, path), an optional method and description, and an accepts list in the shape your 402 returns: scheme, network, amount in the asset's base units, asset, payTo. A manifest for one route can carry resource and accepts at the top level, and x402Version is optional.

Only routes on the origin you register are listed. An entry that names another host is skipped, so one site cannot list another's endpoints. If your paid API runs on a different host from your website, register that host as its own seller and serve its manifest there.

With no manifest, the crawler reads /openapi.json, then /agents.json, when an operation carries a payment annotation or a public x402 registry already lists the origin, then /llms.txt list entries that are Markdown links to a route with a dollar price on the same line. The same origin rule applies to each. Every paid route should answer an unpaid request with its 402, which is where the crawler confirms the price and chain.

/.well-known/x402
{
  "x402Version": 2,
  "resources": [
    {
      "resource": "https://api.example.com/v1/quote",
      "method": "POST",
      "description": "Shipping quote for one parcel",
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "amount": "10000",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "payTo": "0xYourWalletAddress",
          "maxTimeoutSeconds": 60,
          "extra": { "name": "USD Coin", "version": "2" }
        }
      ]
    }
  ]
}
$ POST /api/route

How buyers reach you

matchhealthpayerspricecurated flagshorter slugthen judged fit

Four places buyers find you; the router ranks matches in the order above.

Smart Order RouterRanks tools for a described task; it buys from the best outside seller only when the buyer passes include: "external"./api/route
Marketplace directoryEvery indexed seller with its tools, networks, last crawl and health./marketplace
Per-chain market pagesOne page per settlement chain, so a buyer finds sellers who take theirs./solana
On-chain leaderboardRanked by settled Base USDC, with buyer diversity beside the dollars./leaderboard
$ GET /api/index?seller=<your host>

Listed, then paid

Registering lists you at once. Router payment is the second gate, earned from real buyers past the settlement floor (see Get ranked); your seller-trust answer carries its exact gate.

Router verdicts and what to do about each
If routerDispatchReason says
reasonwhat it meanswhat you can do
crawl_failedthe last crawl of this origin did not succeed, so nothing is routed to itServe your manifest, OpenAPI document or llms.txt at a public URL that answers with a parseable body. The next successful crawl restores routing; re-registering below crawls you now.
no_supported_routethe seller advertises no chain this host holds a spending wallet forAdvertise at least one chain the router pays on, alongside any others you support. The verdict at /api/index?seller=<your host> lists the chains it reads.
price_unknownno seller price is known for this route, and the router never spends against an unknown priceAnswer a bare unpaid request to every paid route with its 402, before you validate input. A route that needs a query parameter or a body still has to return its 402 to the crawler's empty probe, or no price can be read and the router never spends against an unknown one.
network_unknownthe crawl learned no payment network (the paid route answered something other than a 402 to the unpaid probe), so the router cannot tell which chain to pay onSame fix: the paid route answered the probe with something other than a 402, so no chain was learned.
usdc_domain_mismatchthe seller's USDC accept on this chain advertises an EIP-712 domain name that is not the token's own (Base USDC signs under "USD Coin"; Monad, Celo and Sei USDC under "USDC"), so a stock x402 buyer - this router included - signs an authorization the facilitator refuses and nothing settles; the seller has to fix the accept before anyone can pay itAdvertise the token's own EIP-712 name in the accept's extra ("USD Coin" for Base USDC). Until then no stock buyer can pay you, ours included.
gateway_rail_unsupportedthe seller's accept on this chain is signed under Circle Gateway's EIP-712 domain (extra.name "GatewayWalletBatched", extra.verifyingContract the GatewayWallet), not under the token's own, and settles through a batch facilitator - a deliberate, working rail that this router's stock x402 signer cannot produce a credential for; nothing for the seller to fix, and it becomes eligible the day the router speaks the railNothing to fix: your batched rail works for buyers that speak it. To be routable today as well, add a second accept on the same chain signed under the token's own EIP-712 domain.
payment_method_unsupportedthe seller's accept on this chain asks the buyer to send a transfer and prove it afterwards (extra.paymentMethod such as "direct-transfer"), which no stock x402 buyer does - this router signs an authorization for the facilitator to settle - so no buyer of ours can pay the routeOffer the standard exact scheme, where the buyer signs a USDC authorization and the facilitator settles it. A 402 that asks the buyer to send a transfer and prove it afterwards cannot be paid by a stock x402 buyer, ours included.
extension_unsupportedthis route's 402 requires an x402 extension (payment-identifier) in a shape this router's buyer cannot fill, so the router never signs a payment for it; a statement about what this router can pay, not about the seller, and nothing counts against the seller's record. A buyer that can fill the declaration can pay the route directlyDeclare the payment-identifier extension as the spec defines it ({ info: { required: boolean } }) on an x402 v2 challenge, with a schema that admits the extension's id format, or mark it optional. Until then the router does not buy the route; buyers that can fill your declaration still pay you directly.
route_malformedthe route the index holds is not a usable path (the listing gave a value that is not text where the route belongs), so the router never spends against itGive each route as a path string, or a resource URL string or a resource object whose url is a string, so the crawler reads the path you serve.
url_templatethe route is an unsubstituted path template; the router never spends against itServe concrete paths; the router never buys a templated path such as /items/{id}.
listed_onlythe router lists this seller and does not buy from it; a buyer can pay it directlyNothing to fix on the listing: the router lists you and does not buy from you. Buyers can still find and pay you directly.
category_excludedroutes that sell personal data about individuals are listed but not bought by the routerNothing to fix: the route stays listed, buyers can still call it directly, and your other routes are judged on their own.
settlement_requiredon Base the router pays sellers with on-chain settlement history above the floor from enough distinct payers; a seller below it is tried only under the small unproven ceiling when its verdict carries unprovenTierIf the verdict also carries unprovenTier: true, there is nothing to fix: you are callable now in the unproven lane, and payments from real outside buyers move you up.
settlement_self_fundedon Base the router counts only settlement the seller did not fund itself: a payment made with USDC that the wallet it pays had sent the payer earlier is the seller's own money coming home and does not count, and without those payments this seller's history is below the floor; payments made with the payers' own money still countPayments made with USDC your own paid wallet sent the payer are netted out. Only buyers' own money counts.
delivery_failingtwice within the memo window, this router paid this seller on this chain for two different requests and the call did not deliver (a 5xx answer carrying no settle receipt, or an error answer after the seller took the payment), so it is skipped until that memo expires or a call to it succeeds. Settlement history is evidence about the past; this is what happened the last times someone actually paidTwo of the router's recent paid calls to you, for different requests, did not deliver. It retries once that memo expires or a paid call to you delivers; fix the failing route first.

Seller tools

toolwhat it readsper read
bestsellersWhat agents pay for on this catalog, ranked by buyers, sales or revenue, with each tool's trend, read from our sales ledger.$0.005
demand-radarWhat agents asked this server for and did not find, ranked by cluster.$0.005
seller-payabilityBuys one call from your endpoint and reports every leg, from the 402 to the settlement receipt.$0.10
x402-auditGrades any x402 endpoint's payment security from the outside, without paying it.$0.01

Seller questions

What does it cost to list?

Nothing. Listing is free, with no signup and no review queue, and nothing is deducted from your price: buyers pay your wallet directly.

How does Agent402 make money?

Never from your sales: a buyer who pays you directly earns us nothing. We earn from buyers of our own 500+ tools, and from the router's disclosed spread when it buys from you at your full advertised price and resells the result. Asking us not to buy from you never changes your ranking, and we exclude ourselves from our own leaderboard.

ranking: route-order.js →self-exclusion: ledger-leaderboard.js →

How do agents find my API?

Through the four surfaces above. The router runs a tool from this catalog unless the buyer asks for an outside seller (include: "external"), and its ranking order is in the router guide. GET /api/index?seller=<your host> returns its verdict for your origin.

the router guide →

What if my site is not an API?

Use agent402-tollbooth, open MIT middleware for Express, Next.js, Cloudflare Workers, a reverse proxy or WordPress. People browse normally; known bots get a 402 and either pay in USDC or solve a proof-of-work.

paid into an exchange business account? →

Which chains can I get paid on?

Advertise whichever you support. Agent402 itself accepts 14 rails: USDC on Base, Solana, Polygon, Arbitrum One, Monad, Celo, Avalanche C-Chain, Sei, OP Mainnet, Arc, Ink, Stellar & Algorand - plus USDG on Robinhood Chain. When the router buys from a seller to resell the result to an agent, it pays the seller on the chain the agent paid on, so it reaches you only on chains you accept; it holds spending wallets for Base, Algorand, Solana, Tempo, Arc, Polygon, Arbitrum One, Robinhood Chain and Celo. With the x402 exact scheme on EVM chains, the facilitator submits the transfer and pays its gas, so neither side needs the native token.

What is the settlement floor, and how do I get over it?

A minimum of settled payments from distinct outside payers, read on chain, before the router treats a seller as proven; your seller-trust answer carries the exact gate. Payments funded from the wallet you are paid at, or from our own wallets (probes, payability checks, router purchases), never count. Below it you are still paid through the unproven lane.

What happens if my endpoint goes down?

The probe that runs every 30 minutes notices and your rolling health drops; you stay listed, and routing skips you until a probe succeeds again. A new seller with no probe history starts at full health.