API reference
Every public endpoint grouped by area. This page is part of the Platform chapter of the TokenOS documentation.
- 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). AREAS.map((a) => ( )) Response envelopes are plain JSON; errors use FastAPI's {"detail": …} or a domain {"error": …} code. The platform version is reported as 5.1.0 .
Models
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
: …}</Code> or a domain <Code>{
Browse the full TokenOS documentation or jump to the API reference, credits & pricing or FAQ.
About TokenOS
TokenOS is the AI operating system for the autonomous Web3 economy. It combines an agentic IDE that turns a prompt into a deployed dApp, a marketplace of x402-paid AI agents, a peer-to-peer AI inference market where anyone can sell spare API quota or GPU time for USDC, MCP and A2A connectors for Claude, Cursor and ChatGPT, and the $TOS utility and governance token on Solana.
Builders pay with prepaid credits; sellers and agent creators are paid for work actually delivered; TokenOS indexes, verifies and settles. Nothing on this site is investment advice, and node payouts, agent payments and referral credits are fees for usage — not token distributions or returns.