Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

feat: add x402 revenue and receipts documentation detailing payment flow and analytics

qbdzf66c5b111515
diff --git a/CHANGELOG.md b/CHANGELOG.md
index d896a8998..acead3325 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -14,6 +14,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr
- **Agent Sniper is now a standalone open-source package** — The engine that lets three.ws agents snipe pump.fun launches is now its own lightweight, embeddable package: @three-ws/agent-sniper. Run it four ways — as a library, a CLI, an MCP server your AI agent can drive, or a paid x402 API that other agents pay in USDC to use. It ships with pluggable wallet, storage, RPC, and launch-feed adapters, so you can run a fully self-custodial sniper from your own keypair or a multi-tenant hosted service from one engine. Every agent gets its own wallet, its own budget and concurrency caps, a mandatory stop-loss, a price-impact circuit breaker, and a simulate-first default — plus the 3D-agent layer that puts a live trading desk on screen. Multiple agents and multiple users can snipe side by side, each embodied by its own 3D AI agent. `[sdk, feature]`
- **Agent Studio movement previews now play on the live avatar** — On the Body tab of Agent Studio, clicking a move in the Movement library — and pinning a looping idle as your resting pose — now actually animates your agent on the stage. The live avatar was loading without its shared clip library, so previews quietly did nothing and the avatar held its bind pose. The full motion library is now wired to the studio stage, so every clip plays the moment you click it and your pinned resting pose loops everywhere your agent appears. (`/agent-studio`) `[fix]`
- **AI chat now routes around a dead provider account instead of hammering it** — When one of the AI providers behind the chat is out of credit or its account is unfunded, it answers every request with the same billing wall. The chat already fell back to a working provider, but it would keep re-trying the dead one as a last resort on the very next message — wasting a round-trip and occasionally surfacing an 'at capacity' message that didn't need to happen. Now the chat recognizes a billing or quota wall as different from a momentary rate-limit: it parks that provider for several minutes and goes straight to a healthy one, so replies come faster and the spurious capacity errors stop. Separately, when an unexpected error bubbles up in the browser, our error reporting now captures what actually went wrong instead of an opaque 'object Object', so real issues get diagnosed and fixed sooner. `[fix, improvement]`
+- **Documented the full x402 paid-endpoint catalog and where endpoint revenue is recorded** — The developer docs now cover every x402 paid endpoint and the money that flows through them. The endpoint catalog adds the services that had landed without docs — the revenue/analytics report, the avatar batch optimizer, club cover, paid tutoring, the notification gateway, the wallet-connect and Permit2 reference endpoints, the MCP tool catalog — and a new page explains the revenue ledger end to end: how a payment verifies, settles, and is recorded in x402_audit_log, how to read endpoint revenue (with copy-paste SQL and the analytics report shape), how signed receipts work, and why this is the opposite direction of money from the Money Pulse agent-spend feed. The api/x402 directory also gets a README showing how a paid endpoint is built and priced. (`/docs/x402-endpoints`) `[docs]`
- **Fixed several pages returning a 404** — A handful of pages were built and shipping but had no clean-URL route, so they fell through to the not-found page: the agent wallet (/agent-wallet), the viability report (/viability), and the gallery picker. All now load correctly. The agent wallet, when opened without a specific agent, also shows a clear prompt to pick or create one. (`/viability`) `[fix]`
- **Marketplace & trading viability get a dedicated page** — The two "honest signal" panels — marketplace viability (real $THREE skill GMV, take-rate, repeat buyers, trading pairs) and trading viability (real guarded coin-trade flow, cost and realized P&L on closed positions) — now live on their own page at /viability. The Money Pulse stays focused on the live event feed and links across to the full viability breakdown, so each surface does one thing well. Same real on-chain numbers, just easier to read and share. (`/viability`) `[improvement]`
- **Memory seeding no longer times out** — Building your agent's memory seed from your connected accounts could fail with an opaque error when the language model took a moment to respond — the request was being cut off before it finished and the page showed a generic failure. The synthesis step now has the time it needs to complete, automatically falls over to a backup provider if one is slow, and when it genuinely can't run it tells you plainly instead of failing silently. `[fix]`
diff --git a/api/x402/README.md b/api/x402/README.md
new file mode 100644
index 000000000..3f42874a1
--- /dev/null
+++ b/api/x402/README.md
@@ -0,0 +1,75 @@
+# `api/x402/` — paid HTTP endpoints
+
+Every file in this directory is an HTTP endpoint that charges per call over
+[x402](../../docs/x402.md): the caller hits it, gets a `402 Payment Required`
+challenge, settles a small USDC payment, and retries with an `X-PAYMENT` header to
+get the result. These are the platform's **own** sellable services — the catalog
+other agents (and the [autonomous loop](../../docs/autonomous-x402.md)) pay to use.
+
+- **Full catalog + prices:** [`docs/x402-endpoints.md`](../../docs/x402-endpoints.md)
+- **Where revenue is recorded:** [`docs/x402-revenue.md`](../../docs/x402-revenue.md)
+- **How to pay one as a buyer:** [`docs/x402-buyer.md`](../../docs/x402-buyer.md)
+- **Protocol mechanics:** [`docs/x402.md`](../../docs/x402.md)
+
+## How an endpoint is built
+
+Each handler exports the result of `paidEndpoint(spec)` from the shared handler
+[`../_lib/x402-paid-endpoint.js`](../_lib/x402-paid-endpoint.js). That factory
+builds the 402 challenge, verifies and settles the payment, runs your logic, then
+issues a signed receipt — so a handler only declares its price, schema, and the
+work to do. Minimal shape (see [`token-intel.js`](./token-intel.js) for a full
+one):
+
+```js
+import { paidEndpoint } from '../_lib/x402-paid-endpoint.js';
+import { priceFor } from '../_lib/x402-prices.js';
+
+const ROUTE = '/api/x402/my-service';
+
+export default paidEndpoint({
+ route: ROUTE,
+ // Default price in USDC atomics (6 decimals); env-overridable — see below.
+ priceAtomics: priceFor('my-service', '10000'), // $0.01
+ description: 'One line an agent reads to decide whether to buy.',
+ networks: ['solana', 'base'], // accepted networks, in challenge order
+ schema: { /* JSON Schema for input + output, drives Bazaar discovery */ },
+ // Throw BEFORE doing paid work if inputs are bad — the buyer keeps their money.
+ async handler({ req }) {
+ return { /* the JSON result the buyer paid for */ };
+ },
+});
+```
+
+The handler runs **after** settlement, so it must deliver real value every time.
+If the work can't be done (bad input, upstream down), throw before settling — the
+shared handler turns that into the 402/4xx the buyer expects rather than charging
+for nothing.
+
+## Pricing & overrides
+
+Each endpoint declares its own default inline via `priceFor('<slug>', '<atomics>')`.
+Operators override any price at deploy time with:
+
+```
+X402_PRICE_<SLUG>=<atomics>
+```
+
+where `<SLUG>` is the upper-snake-case slug — `my-service` → `X402_PRICE_MY_SERVICE`.
+The resolver ([`../_lib/x402-prices.js`](../_lib/x402-prices.js)) falls back to the
+inline default on a missing or non-integer value.
+
+## Free read surfaces in this directory
+
+A few files live here but are **not** paid — they're free observability reads
+(`mcp-perf.js`, `service-pricing-report.js`) or signature-gated buyer access
+(`my-receipts.js`, which proves wallet ownership via SIWX instead of charging).
+They use the `wrap()`/plain-handler pattern, not `paidEndpoint`.
+
+## Adding an endpoint
+
+1. Create `api/x402/<slug>.js` exporting `paidEndpoint({ ... })`.
+2. Add a row to [`docs/x402-endpoints.md`](../../docs/x402-endpoints.md) with the
+ slug, default price, and what it returns.
+3. Add the route to `vercel.json` so `/api/x402/<slug>` resolves.
+4. Add a `data/changelog.json` entry if it's a new user- or developer-facing
+ service.
diff --git a/data/changelog.json b/data/changelog.json
index 904b0cc58..393415ad4 100644
--- a/data/changelog.json
+++ b/data/changelog.json
@@ -1,6 +1,15 @@
{
"$comment": "Curated changelog entries for three.ws \u2014 the editorial layer of the public changelog. New PAGE launches are tracked automatically via the `added` field in data/pages.json; this file is for everything else holders care about: improvements, fixes, SDK releases, trading/payments capabilities, security work. scripts/build-page-index.mjs merges both sources into CHANGELOG.md, public/changelog.json, and public/changelog.xml. Newest first. Allowed tags: feature, improvement, fix, sdk, infra, docs, security. `link` is optional and must be a live three.ws path.",
"entries": [
+ {
+ "date": "2026-06-30",
+ "title": "Documented the full x402 paid-endpoint catalog and where endpoint revenue is recorded",
+ "summary": "The developer docs now cover every x402 paid endpoint and the money that flows through them. The endpoint catalog adds the services that had landed without docs — the revenue/analytics report, the avatar batch optimizer, club cover, paid tutoring, the notification gateway, the wallet-connect and Permit2 reference endpoints, the MCP tool catalog — and a new page explains the revenue ledger end to end: how a payment verifies, settles, and is recorded in x402_audit_log, how to read endpoint revenue (with copy-paste SQL and the analytics report shape), how signed receipts work, and why this is the opposite direction of money from the Money Pulse agent-spend feed. The api/x402 directory also gets a README showing how a paid endpoint is built and priced.",
+ "tags": [
+ "docs"
+ ],
+ "link": "/docs/x402-endpoints"
+ },
{
"date": "2026-06-30",
"title": "The $THREE holder leaderboard now rides out RPC rate limits instead of stalling",
diff --git a/docs/money-feed.md b/docs/money-feed.md
index de2e704e9..99b300b67 100644
--- a/docs/money-feed.md
+++ b/docs/money-feed.md
@@ -93,3 +93,4 @@ and millisecond `ts`.
- [Circulation engine](circulation-engine.md) — the largest producer of activity.
- [Autonomous x402 loop](autonomous-x402.md) — treasury-paid intel purchases.
- [Agent wallets](agent-wallets.md) — how spends are gated before they're recorded.
+- [x402 revenue & receipts](x402-revenue.md) — the *other* direction: money paid **to** our endpoints (`x402_audit_log`), not agent spend.
diff --git a/docs/x402-endpoints.md b/docs/x402-endpoints.md
index c56fa1184..e9f478f26 100644
--- a/docs/x402-endpoints.md
+++ b/docs/x402-endpoints.md
@@ -80,6 +80,7 @@ for to feed the oracle and sniper.
| `/api/x402/mint-to-mesh` | per call | Token/mint → 3D mesh; `-batch` variant $0.05. |
| `/api/x402/model-check`, `/api/x402/model-validation-sweep` | $0.001 | Validate a GLB / sweep a batch. |
| `/api/x402/glb-optimization-report` | per call | GLB size/optimization analysis. |
+| `/api/x402/avatar-optimize-batch` | $0.001 | Batch optimization pass over the top N avatars. |
| `/api/x402/animation-download`, `/api/x402/asset-download` | per asset | Paid asset/animation delivery. |
## Launch, naming & utility endpoints
@@ -92,17 +93,41 @@ for to feed the oracle and sniper.
| `/api/x402/did` | per call | Decentralized identifier resolution. |
| `/api/x402/billboard` | $0.05 | Post to the on-platform billboard. |
| `/api/x402/dance-tip` | $0.001 | Tip a club performer. |
+| `/api/x402/club-cover` | $0.01 | Pole-club door cover charge; a paid wallet re-enters free for the pass window. |
| `/api/x402/cosmetic-purchase` | per item | Buy a cosmetic. |
+| `/api/x402/tutor` | $0.01 / answer | Paid tutoring; a session accumulates a running tab across answers. |
| `/api/x402/spend-session` | $0.01 | Open a metered spend session. |
| `/api/x402/llm-proxy` | per call | Paid LLM proxy. |
+| `/api/x402/notify` | $0.001 | Notification gateway (Telegram + the autonomous loop's `canary` heartbeat lane). |
+| `/api/x402/wallet-connect` | $0.001 | Wallet-bridge connect probe. |
+| `/api/x402/permit2-paid-demo` | $0.001 | Reference endpoint for the Permit2 / EIP-2612 gasless-approval scheme. |
| `/api/x402/cross-chain`, `/api/x402/network-cost` | per call | Cross-chain cost comparison. |
| `/api/x402/*-health`, `/api/x402/rate-limit-probe`, `/api/x402/schema-check` | $0.001 | Paid health/diagnostic probes used by the autonomous loop. |
> Prices above marked "per call / per tier / per source" are computed by the
> handler rather than a flat default; check the handler and any
-> `X402_PRICE_<SLUG>` override for the exact figure in your deployment. Every
-> flat default is listed in [`api/_lib/x402-prices.js`](../api/_lib/x402-prices.js)
-> and overridable as described above.
+> `X402_PRICE_<SLUG>` override for the exact figure in your deployment. Each
+> endpoint declares its own default inline via
+> `priceFor('<slug>', '<atomics>')` (resolver:
+> [`api/_lib/x402-prices.js`](../api/_lib/x402-prices.js)) — grep a handler for
+> `priceAtomics` / `priceFor(` to see its figure — and every default is
+> overridable with `X402_PRICE_<SLUG>` as described above.
+
+## Observability, revenue & ops endpoints
+
+Several endpoints in `api/x402/` report on the platform itself. The paid ones
+charge a token fee (they are real, sellable observability products an agent can
+consume); a few are **free** read surfaces that happen to live in the same
+directory.
+
+| Endpoint | Default | Returns |
+|---|---|---|
+| `/api/x402/analytics` | $0.005 | Platform reports — pick `report=revenue` for the x402 endpoint-revenue summary (see [x402 revenue & receipts](x402-revenue.md)), plus club and listing analytics. |
+| `/api/x402/mcp-tool-catalog` | per call | Snapshot of every MCP tool — name, paid/free, price, input shape — and a diff vs the last snapshot (added / removed / re-priced tools). |
+| **Free read surfaces** | — | — |
+| `/api/x402/my-receipts` | free | A buyer's own settled receipts, gated by a wallet signature (SIWX) rather than a payment. |
+| `/api/x402/mcp-perf` | free | MCP tool latency dashboard data. |
+| `/api/x402/service-pricing-report` | free | Tracked upstream-dependency price catalog + active price-increase/-drop alerts. |
## $THREE only
@@ -115,4 +140,6 @@ input and do not promote any specific token.
- [x402 protocol](x402.md) — the challenge/settle mechanics.
- [x402 buyer client](x402-buyer.md) — how to pay these endpoints in code.
+- [x402 revenue & receipts](x402-revenue.md) — where settled payments are recorded and how to read endpoint revenue.
+- [Autonomous x402 loop](autonomous-x402.md) — the scheduled buyer that drives volume through these endpoints.
- [MCP tools](mcp-tools.md) — the same capabilities exposed as paid MCP tools.
diff --git a/docs/x402-revenue.md b/docs/x402-revenue.md
new file mode 100644
index 000000000..89824cc70
--- /dev/null
+++ b/docs/x402-revenue.md
@@ -0,0 +1,222 @@
+# x402 Revenue & Receipts
+
+Every time someone pays one of three.ws's [paid endpoints](x402-endpoints.md), the
+settlement is recorded. This page is the reference for **where that money is
+recorded**, how to read endpoint revenue, and how the durable receipt is issued to
+the buyer.
+
+> Source: settlement persistence
+> [`api/_lib/x402/audit-log.js`](../api/_lib/x402/audit-log.js), receipt storage
+> [`api/_lib/x402/receipt-storage.js`](../api/_lib/x402/receipt-storage.js),
+> revenue report [`api/_lib/x402/revenue-analytics.js`](../api/_lib/x402/revenue-analytics.js),
+> served by [`api/x402/analytics.js`](../api/x402/analytics.js).
+
+---
+
+## Two directions of money — don't confuse them
+
+three.ws records value moving in **two opposite directions**, in two different
+tables. They never overlap, and mixing them up will double-count your numbers.
+
+| Direction | Meaning | Table | Surfaced by |
+|---|---|---|---|
+| **Revenue IN** | Money paid **to** our endpoints for using them | `x402_audit_log` | `/api/x402/analytics?report=revenue` (this page) |
+| **Spend OUT** | Money an agent's wallet **paid out** (tips, trades, agent-to-agent x402) | `agent_custody_events` | The [Money Pulse](money-feed.md) at `/api/pulse` |
+
+The [Money Pulse](money-feed.md) shows the agent economy — one agent paying
+another, tips, launches. **This page is the other side of the ledger:** the
+platform's own endpoint revenue. A call to `/api/x402/token-intel` writes a
+**revenue** row in `x402_audit_log`; it is not an `agent_custody_events` spend and
+does not appear in the Money Pulse.
+
+---
+
+## The settlement flow
+
+When a buyer pays a paid endpoint, the shared handler
+([`api/_lib/x402-paid-endpoint.js`](../api/_lib/x402-paid-endpoint.js)) runs:
+
+1. **Challenge** — no `X-PAYMENT` header → respond `402 Payment Required` with the
+ accepted networks, asset, price, and pay-to address.
+2. **Verify** — the buyer retries with an `X-PAYMENT` header; the facilitator's
+ `/verify` confirms the signed payment matches the requirement
+ ([`api/_lib/x402-spec.js`](../api/_lib/x402-spec.js) `verifyPayment()`).
+3. **Settle** — the facilitator's `/settle` (or, for BSC, a direct on-chain
+ `pay(bytes32)` contract call) moves the USDC (`settlePayment()`).
+4. **Persist** — `logPaymentEvent()` writes one row to `x402_audit_log`, and a
+ signed receipt is stored in `x402_receipts`.
+5. **Run + respond** — the endpoint logic executes and returns the result.
+
+Steps 4's writes are fire-and-forget (`queueMicrotask`) with a connection-level
+retry, so a transient DB blip never silently drops a settled payment.
+
+---
+
+## The revenue ledger — `x402_audit_log`
+
+This is the **single source of truth for money flowing through our endpoints.**
+Every payment event lands here — settled, failed, and access-control events alike.
+
+```sql
+CREATE TABLE x402_audit_log (
+ id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
+ event_type TEXT NOT NULL, -- 'payment_settled' | 'payment_failed'
+ -- | 'siwx_grant' | 'siwx_access' | 'bypass_granted'
+ route TEXT NOT NULL, -- e.g. '/api/x402/token-intel'
+ resource_url TEXT,
+ payer TEXT, -- wallet address
+ network TEXT, -- e.g. 'solana' | 'base' | 'bsc'
+ amount_atomics TEXT, -- USDC atomics (6 decimals): '10000' = $0.01
+ asset TEXT,
+ tx_hash TEXT,
+ settlement_status TEXT, -- 'success' | 'failed'
+ facilitator_response JSONB,
+ duration_ms INTEGER,
+ ip_address TEXT,
+ user_agent TEXT,
+ metadata JSONB,
+ created_at TIMESTAMPTZ DEFAULT NOW()
+);
+```
+
+Schema:
+[`api/_lib/migrations/2026-05-27-x402-audit-log.sql`](../api/_lib/migrations/2026-05-27-x402-audit-log.sql).
+Filter `event_type = 'payment_settled'` for revenue; `amount_atomics` is USDC at 6
+decimals, so divide by `1e6` for dollars.
+
+### Reading revenue directly
+
+Total settled revenue and unique payers over the last 24h:
+
+```sql
+SELECT
+ count(*) AS payments,
+ count(DISTINCT payer) AS unique_payers,
+ sum((amount_atomics)::numeric / 1e6) AS gross_usd
+FROM x402_audit_log
+WHERE event_type = 'payment_settled'
+ AND created_at >= now() - interval '24 hours';
+```
+
+Revenue by endpoint, last 7 days, top 10:
+
+```sql
+SELECT
+ route,
+ count(*) AS calls,
+ sum((amount_atomics)::numeric / 1e6) AS gross_usd
+FROM x402_audit_log
+WHERE event_type = 'payment_settled'
+ AND created_at >= now() - interval '7 days'
+GROUP BY route
+ORDER BY gross_usd DESC
+LIMIT 10;
+```
+
+---
+
+## The revenue report — `/api/x402/analytics`
+
+You don't have to query SQL. The `analytics` endpoint serves the same numbers,
+pre-aggregated. It is itself a [paid endpoint](x402-endpoints.md) ($0.005 default)
+— pass `report=revenue` and a `period`:
+
+```bash
+# After settling the 402 challenge (see the x402 buyer client doc), retry with:
+curl -s "https://three.ws/api/x402/analytics?report=revenue&period=24h" \
+ -H "X-PAYMENT: <settled-payment-header>"
+```
+
+`report` accepts: `revenue`, `x402_volume`, `clubs`, `marketplace`,
+`agent_leaderboard`, `sniper_trades`, `user_activity`. `period` accepts `1h`,
+`6h`, `24h`, `7d`, `30d`, `all`.
+
+The `revenue` report shape
+([`revenue-analytics.js`](../api/_lib/x402/revenue-analytics.js)):
+
+```json
+{
+ "report": "revenue",
+ "period": "24h",
+ "since": "2026-06-29T00:00:00.000Z",
+ "generated_at": "2026-06-30T00:00:00.000Z",
+ "totals": {
+ "gross_usd": 12.34,
+ "net_platform_usd": 11.90,
+ "settlement_fee_usd": 0.44,
+ "total_payments": 247,
+ "failed_payments": 3,
+ "unique_payers": 18,
+ "avg_payment_usd": 0.05
+ },
+ "fee_splits": {
+ "gross_usd": 12.34,
+ "settlement_fee_usd": 0.44,
+ "net_platform_usd": 11.90,
+ "effective_fee_rate": 0.0357,
+ "fee_per_settlement_usd": 0.0018,
+ "fee_source": "..."
+ },
+ "by_endpoint": [
+ { "endpoint": "/api/x402/token-intel", "count": 120, "gross_usd": 1.20, "share": 0.097 }
+ ],
+ "top_endpoint": { "endpoint": "/api/x402/token-intel", "gross_usd": 1.20 }
+}
+```
+
+`net_platform_usd` is gross minus the estimated on-chain settlement fee — what the
+platform actually keeps. `failed_payments` counts `event_type = 'payment_failed'`
+rows in the same window, so you can watch the settlement success rate.
+
+---
+
+## Receipts — `x402_receipts`
+
+Each successful settlement also issues the buyer a durable, signed receipt
+([`receipt-storage.js`](../api/_lib/x402/receipt-storage.js)):
+
+```sql
+CREATE TABLE x402_receipts (
+ id uuid PRIMARY KEY DEFAULT gen_random_uuid(),
+ payer text NOT NULL, -- buyer wallet
+ network text NOT NULL,
+ resource_url text NOT NULL, -- what they paid for
+ format text NOT NULL,
+ receipt jsonb NOT NULL, -- the signed receipt artifact
+ transaction text, -- settlement tx
+ issued_at timestamptz NOT NULL DEFAULT now()
+);
+```
+
+A buyer reads **their own** receipts at
+[`/api/x402/my-receipts`](x402-endpoints.md) — that endpoint is free but gated by
+a wallet signature (SIWX), so a buyer proves ownership of the `payer` address
+rather than paying again.
+
+### Anti-replay — `bsc_consumed_tx`
+
+For BSC direct-scheme settlements (where there is no facilitator and the buyer
+pays the `ThreeWSPayments` contract directly), each on-chain `Payment` tx is
+recorded in `bsc_consumed_tx` (`tx_hash` primary key) the first time it is spent,
+so the same on-chain payment can never be replayed against two requests.
+
+---
+
+## Driving volume through these endpoints
+
+Revenue only exists if the endpoints get called. The
+[Autonomous x402 loop](autonomous-x402.md) is the scheduled buyer that pays many
+of these endpoints on a cadence to feed the oracle and sniper, and the
+[Circulation engine](circulation-engine.md) drives real agent-to-agent commerce.
+Both settle **real** USDC through the same flow above — every row in
+`x402_audit_log` is a verifiable settlement, never a synthetic number.
+
+---
+
+## Related
+
+- [x402 paid endpoints](x402-endpoints.md) — the catalog of what charges and how much.
+- [x402 protocol](x402.md) — the challenge / verify / settle mechanics.
+- [x402 buyer client](x402-buyer.md) — how to settle a 402 challenge in code.
+- [Autonomous x402 loop](autonomous-x402.md) — the scheduled buyer that drives volume.
+- [Money feed](money-feed.md) — the agent-spend side of the ledger (the Money Pulse), distinct from endpoint revenue.
diff --git a/docs/x402.md b/docs/x402.md
index cf59cdd5f..054abc485 100644
--- a/docs/x402.md
+++ b/docs/x402.md
@@ -125,3 +125,9 @@ consuming the intent. Not yet enforced server-side.
the wire shape (manifest + retry header) is unchanged.
- Currency is always an SPL mint pubkey. SOL-native payments aren't
supported yet.
+
+## Related
+
+- [x402 paid endpoints](x402-endpoints.md) — the catalog of the platform's own paid endpoints.
+- [x402 revenue & receipts](x402-revenue.md) — where settled payments are recorded and how to read endpoint revenue.
+- [x402 buyer client](x402-buyer.md) — how to settle a 402 challenge in code.
diff --git a/public/changelog.json b/public/changelog.json
index abf124200..8ad8da3df 100644
--- a/public/changelog.json
+++ b/public/changelog.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-06-30T21:13:02.991Z",
+ "generated_at": "2026-06-30T21:48:14.424Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json",
"site": {
"name": "three.ws",
@@ -88,6 +88,16 @@
"improvement"
]
},
+ {
+ "date": "2026-06-30",
+ "type": "update",
+ "title": "Documented the full x402 paid-endpoint catalog and where endpoint revenue is recorded",
+ "summary": "The developer docs now cover every x402 paid endpoint and the money that flows through them. The endpoint catalog adds the services that had landed without docs — the revenue/analytics report, the avatar batch optimizer, club cover, paid tutoring, the notification gateway, the wallet-connect and Permit2 reference endpoints, the MCP tool catalog — and a new page explains the revenue ledger end to end: how a payment verifies, settles, and is recorded in x402_audit_log, how to read endpoint revenue (with copy-paste SQL and the analytics report shape), how signed receipts work, and why this is the opposite direction of money from the Money Pulse agent-spend feed. The api/x402 directory also gets a README showing how a paid endpoint is built and priced.",
+ "link": "/docs/x402-endpoints",
+ "tags": [
+ "docs"
+ ]
+ },
{
"date": "2026-06-30",
"type": "update",
diff --git a/public/changelog.xml b/public/changelog.xml
index 57cb01ccd..935b35a3c 100644
--- a/public/changelog.xml
+++ b/public/changelog.xml
@@ -70,6 +70,14 @@
<category>fix</category>
<description>When one of the AI providers behind the chat is out of credit or its account is unfunded, it answers every request with the same billing wall. The chat already fell back to a working provider, but it would keep re-trying the dead one as a last resort on the very next message — wasting a round-trip and occasionally surfacing an 'at capacity' message that didn't need to happen. Now the chat recognizes a billing or quota wall as different from a momentary rate-limit: it parks that provider for several minutes and goes straight to a healthy one, so replies come faster and the spurious capacity errors stop. Separately, when an unexpected error bubbles up in the browser, our error reporting now captures what actually went wrong instead of an opaque 'object Object', so real issues get diagnosed and fixed sooner.</description>
</item>
+ <item>
+ <title>Documented the full x402 paid-endpoint catalog and where endpoint revenue is recorded</title>
+ <link>https://three.ws/docs/x402-endpoints</link>
+ <guid isPermaLink="false">2026-06-30:Documented the full x402 paid-endpoint catalog and where endpoint revenue is recorded</guid>
+ <pubDate>Tue, 30 Jun 2026 12:00:00 GMT</pubDate>
+ <category>docs</category>
+ <description>The developer docs now cover every x402 paid endpoint and the money that flows through them. The endpoint catalog adds the services that had landed without docs — the revenue/analytics report, the avatar batch optimizer, club cover, paid tutoring, the notification gateway, the wallet-connect and Permit2 reference endpoints, the MCP tool catalog — and a new page explains the revenue ledger end to end: how a payment verifies, settles, and is recorded in x402_audit_log, how to read endpoint revenue (with copy-paste SQL and the analytics report shape), how signed receipts work, and why this is the opposite direction of money from the Money Pulse agent-spend feed. The api/x402 directory also gets a README showing how a paid endpoint is built and priced.</description>
+ </item>
<item>
<title>Fixed several pages returning a 404</title>
<link>https://three.ws/viability</link>
diff --git a/public/features.json b/public/features.json
index 062c86be6..0b112c2a8 100644
--- a/public/features.json
+++ b/public/features.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-06-30T21:13:02.727Z",
+ "generated_at": "2026-06-30T21:48:14.405Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json",
"site": {
"name": "three.ws",