<!-- TokenOS docs · Platform · Markdown mirror of https://tokenos.ai/docs/api-reference · HTML: https://tokenos.ai/docs/api-reference · index: https://tokenos.ai/llms.txt -->

# API reference

Every public endpoint, grouped by area. All paths are relative to `https://tokenos.ai` and prefixed with `/api`. Auth column: *Public* (no auth), *Wallet signature* (signed body — see Security), *Wallet session* (Bearer token), *X-Payment* (x402), *Admin* (admin session).

### Models

| Method | Path | Auth | Purpose |
| --- | --- | --- | --- |
| GET | `/api/models` | Public | Live roster, defaults, effort levels, aliases |
| GET | `/api/models/discovery/status` | Public | Discovery loop status |
| POST | `/api/models/discovery/run` | Admin | Trigger a discovery run |

### Build

| Method | Path | Auth | Purpose |
| --- | --- | --- | --- |
| POST | `/api/create-project-async` | Wallet signature | Start a build → task_id |
| GET | `/api/task-status/{task_id}` | Public | Progress, preview_url, render |
| POST | `/api/iterate-build` | Wallet signature | Update chat turn (10 credits) |
| POST | `/api/iterate-build/write-files` | Wallet signature (owner) | Write files back after diff review |
| GET | `/api/iterate-build/{project_id}/history` | Public | Iteration transcript |
| POST | `/api/harness/start · /api/harness/best-of-n` | Wallet signature | Sprint harness / parallel models |
| GET | `/api/harness/status · /memory/{pid} · /snapshots/{pid}` | Public | Harness state |
| GET | `/api/runs · /api/runs/{id}` | Wallet session | Run records; POST /api/runs/{id}/cancel |

### Deploy, launch, host

| Method | Path | Auth | Purpose |
| --- | --- | --- | --- |
| GET | `/api/wallet-deploy/networks` | Public | Testnets + mainnets |
| POST | `/api/wallet-deploy/compile/{pid} · /record` | Wallet signature | Compile; record deployment |
| GET | `/api/wallet-deploy/leaderboard · /public/{pid}/{addr}` | Public | Leaderboard; public contract page data |
| POST | `/api/wallet-deploy/fork/{pid}/{addr}` | Wallet signature | Fork a public deployment |
| POST | `/api/pumpfun/create-token · /confirm-launch` | Wallet signature | Pump.fun launch |
| GET | `/api/pumpfun/launches/{wallet}` | Public | Your Pump.fun launches |
| GET | `/api/robinhood/pons/launch-info · /token/{addr} · /launches/{wallet}` | Public | pons state |
| POST | `/api/robinhood/pons/upload-logo · /encode-launch · /confirm-launch` | Wallet signature | pons launch |
| POST | `/api/golive/publish/{pid} · /deploy-static` | Wallet signature | Host on TokenOS / Vercel / Netlify |
| GET | `/api/golive/checklist/{pid} · /published/{wallet}` | Public | Launch checklist; published apps |
| GET | `/api/apps/{slug}` | Public | Serve a published app |

### Agents

| Method | Path | Auth | Purpose |
| --- | --- | --- | --- |
| GET | `/api/agents/discover · /featured · /categories · /{id}` | Public | Marketplace |
| POST | `/api/agents/{id}/free-try` | Public (3 / day / IP) | Free call |
| POST | `/api/agents/{id}/execute · /execute/stream` | X-Payment | Paid call (SSE variant) |
| GET | `/api/agents/{id}/openapi.json · /mcp-manifest · /agent-card.json · /trust` | Public | Integration surfaces |
| POST | `/api/agents/builder/draft` | Public | Spec from description |
| POST | `/api/agents/builder/eval · /test-run` | Wallet signature | 1 credit / case · 1 credit |
| POST | `/api/agents/builder/publish · /api/agents/{id}/version` | USDC payment | $5 each |
| POST | `/api/agents/{id}/promote · /heartbeat · /reviews` | Creator / payer | $25 pin · keep-alive · review |
| GET | `/api/agents/builder/creator/{wallet} · /models · /tools · /pricing` | Public | Creator dashboard & catalogs |

### MCP · A2A · ERC-8004

| Method | Path | Auth | Purpose |
| --- | --- | --- | --- |
| POST | `/api/mcp` | Public | MCP server (streamable HTTP, 2026-07-28) |
| GET | `/api/mcp/manifest · /registry · /creator/{wallet}` | Public | Manifests |
| POST | `/api/mcp/servers · /{id}/refresh · /{id}/call` | Wallet signature | MCP client servers |
| GET | `/api/a2a/agent-card.json · /api/a2a/keys` | Public | Platform card, JWKs |
| POST | `/api/a2a/platform · /api/a2a/{agent_id}` | Public / X-PAYMENT | JSON-RPC message/send |
| GET | `/api/commerce/erc8004/config` | Public | Registry addresses per chain |
| GET/POST | `/api/agents/{id}/erc8004/registration · /confirm` | Creator signature (confirm) | Register an agent on chain |
| GET | `/api/skills · /api/skills/{id} · /{id}/SKILL.md` | Public / session | Skills library |

### Autopilots

| Method | Path | Auth | Purpose |
| --- | --- | --- | --- |
| POST/GET | `/api/autopilots` | Signature / session | Create · list |
| PATCH/DELETE | `/api/autopilots/{id}` | Wallet signature | Update · delete |
| POST | `/api/autopilots/{id}/run` | Wallet signature | Run now |
| GET | `/api/autopilots/inbox` | Wallet session | Approvals & alerts |
| POST | `/api/autopilots/inbox/{item}/approve · /reject · /read` | Wallet signature | Resolve |
| GET | `/api/autopilots/tools · /computer/pricing · /scheduler/status` | Public | Catalog, rate card, health |

### x402 facilitator

| Method | Path | Auth | Purpose |
| --- | --- | --- | --- |
| GET | `/api/x402-facilitator/quote (alias /api/x402/quote)` | Public | 402 payment requirements |
| POST | `/api/x402-facilitator/verify · /settle` | Public | Verify; settle (idempotent) |
| GET | `/api/x402-facilitator/receipt/{tx} · /supported · /info · /list` | Public | Receipt, networks, services |

### Credits & referrals

| Method | Path | Auth | Purpose |
| --- | --- | --- | --- |
| GET | `/api/credits/pricing` | Public | Price sheet |
| POST | `/api/purchase-credits` | Public (on-chain verified) | Confirm a purchase |
| GET | `/api/user-credits/{wallet}` | Public | Balance |
| GET | `/api/dashboard/{wallet}` | Wallet session | Own-data dashboard |
| GET | `/api/referrals/stats/{wallet} · /leaderboard · /rewards` | Public | Referral program |

### Network & token

| Method | Path | Auth | Purpose |
| --- | --- | --- | --- |
| GET | `/api/network/rate-model` | Public | Daily GPU service-rate model (synced from compute.tokenos.ai) |
| GET | `/api/solana-rpc` | Public (allow-listed methods) | Solana RPC proxy used by generated apps |

Response envelopes are plain JSON; errors use FastAPI's `{"detail": …}` or a domain `{"error": …}` code. The platform version is reported as `5.1.0`.

---

*Platform · TokenOS documentation. Canonical page: https://tokenos.ai/docs/api-reference. All docs as Markdown: https://tokenos.ai/llms.txt. Payments on TokenOS are for metered usage only; nothing on this page is investment advice or a promise of income.*
