This content reflects minia2a as of its publication date and is kept for the record. Current model: x402 pay-per-call in USDC on Base only, 5 free trial calls per signed wallet, no credits and no top-up rail.
Your 402 advertisement is a second implementation of your API
2026-11-28 · from a sweep of 135 advertised output shapes
When an agent meets a pay-per-call endpoint, the first thing it reads is the unpaid 402. Inside it is a machine-readable advertisement: an input example, and an output example naming the keys the answer will carry. That advertisement is what an agent writes its parser against before it ever pays.
The trouble is that the advertisement is not produced by the handler. It is a separate artifact — a generated table, a probe run, a snapshot — and nothing in most deployments compares it to what the handler actually returns. It is, in effect, a second implementation of the API, written by a different program, and never exercised by a customer's call. Second implementations drift, and the drift is silent because the advertisement still looks machine-checkable.
On 2026-11-28 we judged every first-party service that advertises an output shape — 135 of them — by comparing the two shape fields inside each PAYMENT-REQUIRED document against each other and against a real call. Nineteen were self-inconsistent. Two of those are not key drift at all: the advertisement describes a completely different answer than the call it advertises.
Two fields, two calls
The x402 bazaar extension carries two descriptions of the answer under extensions.bazaar.info.output:
| field | where it comes from | what it actually describes |
|---|---|---|
candidates | a probe that called the endpoint with empty input {} | what an unparameterised call returns |
example | a probe that called the endpoint with the advertised input | what the call in the same document returns |
Those are two different requests. When a handler branches on input — and every interesting one does — the two requests can return different objects. Usually the difference is a handful of keys. Sometimes it is the shape of the whole answer.
Live, from a x402-country 402 document:
"input": { "method": "GET", "queryParams": { "code": "FR" } }, "candidates": [ "count", "countries" ], // an empty call: a list "example": { "ok": true, "result": { "name": "France", "capital": "Paris", "continent": "Europe", "currency": "EUR" } } // the advertised call: one object A buyer that follows candidates writes resp.result.countries.map(...). The advertised call never returns a countries array; result.countries is undefined and the parse throws on the first element. The example in the same document says so plainly — the buyer just had no reason to prefer one field over the other, because both are the server's own words.
Same problem, milder, on x402-iban-validate: candidates is [reason, valid] (the shape of a rejected IBAN), while the advertised call — a valid German IBAN — returns {valid: true, country: "DE"}. country is in no candidate list. Same for x402-validate-email (domain, local), x402-validate-url (host, port, protocol), x402-chain-registry (chainId, explorer, rpc, symbol), x402-celo, and twelve more.
Both fields are true statements.
candidatescorrectly describes the empty call;examplecorrectly describes the advertised call. The document is self-contradictory, and the contradiction is structural: two probes, two inputs, one document, no reconciliation.
Drift is not only keys — it is semantics
Keys are the easy case. The expensive case is a field whose meaning changed in the handler and did not change in the advertisement, because the example was captured months earlier.
x402-poly-volume advertises {"limit": 1} and an example with "count": 1 and one market. Read literally that teaches: count is how many markets you asked for. The live answer to that exact input:
advertised: { "count": 1, "markets": [ ... ] } # 4 keys; count echoes the requested limit live: { "count": 60, "returnedMarkets": 1, "marketsTruncated": true, ... } # 6 keys; count = markets matching the filter count is not the page size. It is the size of the filtered set, and returnedMarkets is the page size, and marketsTruncated says the two differ. An agent that budgets from the advertisement ("one market, small payload") gets a number sixty times larger than it expected, with no field in the example that warned it.
x402-market-census is the same failure one level up. Its example carries categoryCount: 10 and ten categories. The live answer:
advertised (snapshot 2026-11-06): categoryCount 10, 13 keys live (2026-11-28T08:28Z): categoryCount 26, returnedCategories 10, categoriesTruncated true, 15 keys The number in the advertisement is the length of the array that was returned. Today categoryCount is the total number of categories in the snapshot, the array is a page of ten, and categoriesTruncated discloses the gap. An agent that read the old example and summed categoryCount as "categories present" was, as of today, off by sixteen — and the two fields that would have told it so are absent from the advertisement entirely.
Why the two probes were not enough
The shape probe that produced candidates also had a cap: it kept sorted(keys)[:12]. A twelve-key response and a fifteen-key response produced the same advertisement, and nothing marked the difference — the same "a count that counts the slice" defect we wrote about yesterday, now living inside the generator of the advertisement rather than inside a paid answer. Measured across 717 rows of the shape table, exactly three sat on the boundary; one of them (x402-market-census) really was over it. The cap was raised to 24 with a self-test that proves a 15-key response loses nothing and a 40-key response is still bounded — but the honest fix is a candidatesTruncated disclosure at the emission site, not a bigger number.
What to do if you publish endpoints
- Generate the advertisement from the call you advertise. If
input.queryParamssayscode=FR, theoutput.examplemust come from that exact request — and the shape list next to it must describe the same request, not a default one. - Reconcile, do not choose. Where a handler branches, the advertised shape should be the union of the branches, or the branch the example exercises. Emit the reconciliation where the document is built, not in the generated table: a hand-edit to a generated table rots at the next regeneration, and it only fixes the ids you noticed.
- Disclose truncation in the advertisement too. If the shape list has a bound, the document needs a field that says the bound was hit. Silent capping inside the generator is the same lie as silent capping inside the handler.
- Guard the two fields against each other. Replay the published input once, diff the observed key set against
candidatesandexample, and fail the build onEXAMPLE-EXTRA. That single comparison found all nineteen here, and it costs one free call per service.
What to do if you consume endpoints
- Treat the advertisement as a hint, not a schema. It is generated, it is stale-aware only if someone made it so, and it is not exercised by your call.
- Fingerprint once. On your first paid call, record the key set of
resultand parse against that. A small amount of defensive parsing (key in result, optional chaining, a shape canary) survives drift that no schema can. - Never infer a total from an example count.
count: 1next tolimit: 1is the most misleading number in an advertisement, because it looks like a fact and is really an echo of your request. - Prefer the document's
exampleovercandidateswhen they disagree, because the example is the call you are about to make. But verify: a good server will make them agree.
The advertisement is the cheapest part of a pay-per-call API to generate and the cheapest to check, which makes it the least defensible place for drift. If a buyer can find nineteen contradictions with one free call per endpoint, so can the seller — and only the seller can fix them once, at the source.
The marketplace is at minia2a.uk — 1,958 pay-per-call endpoints in USDC on Base, 5 free trial calls per signed wallet on the endpoints that offer trials, no registration. The correction for the nineteen advertisements described here does not belong in a hand-edit of the generated table — that rots at the next regeneration. It belongs where the 402 is emitted, as a union of the two probes' key sets, so that regenerating the table cannot put the contradiction back. As of this post the advertisements above are still contradictory on the live site; the union is staged for the next gateway build.
Originally published at minia2a.uk.