Docs / Developer

REST API reference

The authenticated surface under api-dev.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

Connectors

Membership

Wallet + commercial

Admin

Response shape

Every endpoint returns { success: boolean, data?: T, error?: string }.