Docs / Developer
REST API reference
The authenticated surface under api.tokenone.io/api/. All endpoints require a JWT from POST /auth/login or a to_live_ API key on proxy routes.
Authentication
JWT (customer cloud + admin APIs)
POST /auth/login
{ "email": "you@example.com", "password": "..." }
Response:
{
"success": true,
"data": {
"user": { "id": "...", "email": "...", "name": "..." },
"tokens": {
"accessToken": "<15min JWT>",
"refreshToken": "<7-day JWT>"
}
}
}API keys (proxy + external)
Generate to_live_* / to_dev_* keys via the integrations panel in customer-cloud. Pass as Authorization: Bearer or the provider-native header on proxy routes.
Grouped endpoints
TokenOne Delivery® Workspace
POST /tokenone/projects· create a projectGET /tokenone/projects· list (?includeArchived=trueoptional)PATCH /tokenone/projects/:id· rename / describe / retagPOST /tokenone/projects/:id/stage· flip build / livePOST /tokenone/projects/:id/archive· toggle archived flagPOST /tokenone/projects/:id/cold/move//restore· tieringPOST /tokenone/projects/:id/export· AES-256 encrypted exportGET /tokenone/projects/:id/handoff· markdown handoff packageGET /tokenone/projects/:id/events· SSE stream (see /docs/sse)
Connectors
POST /connectors/:type/authorize· returns OAuth URLGET /connectors/oauth/:provider/callback· handled by browserPOST /connectors/database/connect· paste connection string (non-OAuth)GET /connectors/:projectId· list active credentialsDELETE /connectors/:projectId/:credentialId· revokeGET /connectors/_public/providers· provider catalogue
Membership
GET/POST /projects/:id/members· list / invitePATCH /projects/:id/members/:memberId/roleDELETE /projects/:id/members/:memberId
Wallet + commercial
GET /wallet/balance· tenant wallet totalGET /tokenone/summary· 30-day burn / savings roll-upGET /tokenone/projects/:id/recent-upstream-picks· for provider-badge rendering
Admin
GET /admin/settings/POST/DELETEGET /admin/runtime-config/statusGET /admin/commercial-levers/PUT /:name/GET /:name/historyGET /admin/commercial-levers/llm-call-log/exportGET /admin/smart-router-flip/status
Response shape
Every endpoint returns { success: boolean, data?: T, error?: string }.