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.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
fix(discovery): surface six x402 endpoints hidden from /openapi.json + gate Permit2 demo on CDP creds
fudjiaa83a7c0583de
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 53e162439..c540cbec3 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -4,6 +4,10 @@Public history for [three.ws](https://three.ws), newest first. New pages come from `added` dates in data/pages.json; everything else is curated in data/changelog.json. Also available as [JSON](https://three.ws/changelog.json) and [RSS](https://three.ws/changelog.xml), live at [three.ws/changelog](https://three.ws/changelog).+## 2026-07-12++- **Agent discovery fixed: six paid endpoints were invisible to x402 scanners** — The machine-readable catalog at /openapi.json — what AI agents and x402 scanners like x402scan and AgentCash read to find and pay for three.ws APIs — had six paid endpoints (agent bouncer, verifiable vanity keys, crypto intel, cosmetic purchase, animation download, club cover) accidentally buried inside another entry, making them undiscoverable. All 61 payable routes now list correctly and the document passes the AgentCash discovery validator. The Permit2 gasless-payment demo is now only advertised when its settlement lane is actually live, so agents are never quoted a payment path that can't settle. (`/openapi.json`) `[fix, improvement]`+## 2026-07-11- **Dashboard · Billing & Passes** (`/dashboard/billing`) — Manage subscriptions and paid services — Premium pass status, on-chain payment history, API keys, and creator subscriptions.diff --git a/api/openapi-json.js b/api/openapi-json.jsindex 599330c9c..cb8f30a2f 100644--- a/api/openapi-json.js+++ b/api/openapi-json.js@@ -696,22 +696,31 @@ export default wrap(async (req, res) => {},},},- '/api/x402/permit2-paid-demo': {- get: {- operationId: 'x402_permit2_paid_demo',- summary: 'Paid: Gasless Permit2 + EIP-2612 settlement demo',- description:- "Pay $0.001 USDC via the Permit2-only path so a wallet holding USDC but zero ETH can complete the flow. CDP's x402ExactPermit2Proxy submits the EIP-2612 permit + Permit2 transfer atomically; the response surfaces the on-chain tx hash and a Basescan link.",- responses: {- 200: { description: 'Settlement summary with tx hash' },- 402: { description: 'Payment Required (x402)' },- },- 'x-payment-info': {- price: { mode: 'fixed', currency: 'USD', amount: '0.001' },- protocols: X402_PROTOCOLS,- },- },- },+ // Permit2 settlement runs exclusively through CDP's+ // x402ExactPermit2Proxy, so without CDP credentials the route's 402+ // carries an empty accepts[] — unpayable. Advertise it only when the+ // lane is actually honorable (same principle as omitting MPP above).+ ...(env.CDP_API_KEY_ID && env.CDP_API_KEY_SECRET+ ? {+ '/api/x402/permit2-paid-demo': {+ get: {+ operationId: 'x402_permit2_paid_demo',+ summary: 'Paid: Gasless Permit2 + EIP-2612 settlement demo',+ description:+ "Pay $0.001 USDC via the Permit2-only path so a wallet holding USDC but zero ETH can complete the flow. CDP's x402ExactPermit2Proxy submits the EIP-2612 permit + Permit2 transfer atomically; the response surfaces the on-chain tx hash and a Basescan link.",+ parameters: [],+ responses: {+ 200: { description: 'Settlement summary with tx hash' },+ 402: { description: 'Payment Required (x402)' },+ },+ 'x-payment-info': {+ price: { mode: 'fixed', currency: 'USD', amount: '0.001' },+ protocols: X402_PROTOCOLS,+ },+ },+ },+ }+ : {}),'/api/x402/three-intel': {get: {operationId: 'x402_three_intel',@@ -721,6 +730,7 @@ export default wrap(async (req, res) => {'liquidity, 24 h volume, and a bullish / bearish / neutral signal with a ' +'two-sentence rationale. Powered by live DexScreener data — the same oracle ' +'behind the paid intel kiosk in the $THREE town on three.ws/play.',+ parameters: [],responses: {200: { description: '$THREE market intel JSON' },402: { description: 'Payment Required (x402)' },@@ -1232,6 +1242,7 @@ export default wrap(async (req, res) => {summary: 'Paid: Pole Club cover charge (24h entry token)',description:'Pay $0.01 USDC to access the three.ws Pole Club. Once payment settles the caller receives an entry token granting access to the live club scene for 24 hours.',+ parameters: [],responses: {200: { description: 'Entry token JSON with expiry' },402: { description: 'Payment Required (x402)' },diff --git a/data/changelog.json b/data/changelog.jsonindex 01516cc0b..c19e24560 100644--- a/data/changelog.json+++ b/data/changelog.json@@ -1,6 +1,16 @@{"$comment": "Curated changelog entries for three.ws — 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-07-12",+ "title": "Agent discovery fixed: six paid endpoints were invisible to x402 scanners",+ "summary": "The machine-readable catalog at /openapi.json — what AI agents and x402 scanners like x402scan and AgentCash read to find and pay for three.ws APIs — had six paid endpoints (agent bouncer, verifiable vanity keys, crypto intel, cosmetic purchase, animation download, club cover) accidentally buried inside another entry, making them undiscoverable. All 61 payable routes now list correctly and the document passes the AgentCash discovery validator. The Permit2 gasless-payment demo is now only advertised when its settlement lane is actually live, so agents are never quoted a payment path that can't settle.",+ "tags": [+ "fix",+ "improvement"+ ],+ "link": "/openapi.json"+ },{"date": "2026-07-11","title": "The datapoint fabric: 480,000+ standalone paid endpoints",diff --git a/public/changelog.json b/public/changelog.jsonindex 9791323cd..5cf963da6 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,11 +1,22 @@{- "generated_at": "2026-07-12T01:57:46.072Z",+ "generated_at": "2026-07-12T02:09:06.437Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws","url": "https://three.ws"},"entries": [+ {+ "date": "2026-07-12",+ "type": "update",+ "title": "Agent discovery fixed: six paid endpoints were invisible to x402 scanners",+ "summary": "The machine-readable catalog at /openapi.json — what AI agents and x402 scanners like x402scan and AgentCash read to find and pay for three.ws APIs — had six paid endpoints (agent bouncer, verifiable vanity keys, crypto intel, cosmetic purchase, animation download, club cover) accidentally buried inside another entry, making them undiscoverable. All 61 payable routes now list correctly and the document passes the AgentCash discovery validator. The Permit2 gasless-payment demo is now only advertised when its settlement lane is actually live, so agents are never quoted a payment path that can't settle.",+ "link": "/openapi.json",+ "tags": [+ "fix",+ "improvement"+ ]+ },{"date": "2026-07-11","type": "launch",diff --git a/public/changelog.xml b/public/changelog.xmlindex 7c4b3b563..c7fca2af9 100644--- a/public/changelog.xml+++ b/public/changelog.xml@@ -6,6 +6,14 @@<atom:link href="https://three.ws/changelog.xml" rel="self" type="application/rss+xml"/><description>What's new on three.ws — features, improvements, and releases, newest first.</description><language>en</language>+ <item>+ <title>Agent discovery fixed: six paid endpoints were invisible to x402 scanners</title>+ <link>https://three.ws/openapi.json</link>+ <guid isPermaLink="false">2026-07-12:Agent discovery fixed: six paid endpoints were invisible to x402 scanners</guid>+ <pubDate>Sun, 12 Jul 2026 12:00:00 GMT</pubDate>+ <category>fix</category>+ <description>The machine-readable catalog at /openapi.json — what AI agents and x402 scanners like x402scan and AgentCash read to find and pay for three.ws APIs — had six paid endpoints (agent bouncer, verifiable vanity keys, crypto intel, cosmetic purchase, animation download, club cover) accidentally buried inside another entry, making them undiscoverable. All 61 payable routes now list correctly and the document passes the AgentCash discovery validator. The Permit2 gasless-payment demo is now only advertised when its settlement lane is actually live, so agents are never quoted a payment path that can't settle.</description>+ </item><item><title>Dashboard · Billing & Passes</title><link>https://three.ws/dashboard/billing</link>diff --git a/tests/openapi-aggregator.test.js b/tests/openapi-aggregator.test.jsindex fed9b496b..896a494fa 100644--- a/tests/openapi-aggregator.test.js+++ b/tests/openapi-aggregator.test.js@@ -107,6 +107,44 @@ describe('GET /openapi.json — aggregator coverage', () => {expect(doc.paths['/api/x402/skill-marketplace']).toBeTruthy();});+ it('never nests a path inside another path item', () => {+ // Regression guard: six /api/x402/* paths once shipped nested inside the+ // /api/x402/skill-call path item, making them invisible to discovery+ // (x402scan / AgentCash read paths at the top level only).+ for (const [path, pathItem] of Object.entries(doc.paths)) {+ for (const key of Object.keys(pathItem)) {+ expect(+ key.startsWith('/'),+ `path item ${path} contains nested path-like key ${key}`,+ ).toBe(false);+ }+ }+ });++ it('omits the Permit2 demo when CDP credentials are absent', () => {+ // Permit2 settlement requires CDP creds; without them the route's 402+ // carries an empty accepts[] (unpayable), so discovery must not+ // advertise it. Test env has no CDP_API_KEY_ID/SECRET.+ if (process.env.CDP_API_KEY_ID && process.env.CDP_API_KEY_SECRET) return;+ expect(doc.paths['/api/x402/permit2-paid-demo']).toBeUndefined();+ });++ it('exposes the once-hidden x402 endpoints at the top level', () => {+ for (const path of [+ '/api/x402/agent-bouncer',+ '/api/x402/vanity-verifiable',+ '/api/x402/crypto-intel',+ '/api/x402/cosmetic-purchase',+ '/api/x402/animation-download',+ '/api/x402/club-cover',+ ]) {+ const op = doc.paths[path]?.get ?? doc.paths[path]?.post;+ expect(op, `missing top-level path ${path}`).toBeTruthy();+ expect(op['x-payment-info']?.protocols).toBeTruthy();+ expect(op['x-payment-info']?.price).toBeTruthy();+ }+ });+it('free-tier endpoints note their quota in x-payment-info', () => {const priced = doc.paths['/api/v1/x/coingecko/price']?.get;expect(priced['x-payment-info'].note).toMatch(/30\/min/);