Sign up and create a workspace
Go to app.tooken.io and create your account. After signing in, you’ll be prompted to create your first workspace.Workspaces are isolated environments — all tokens, API keys, audit logs, and settings live inside a workspace. Give your workspace a name that reflects its purpose, such as
production or my-team.Get your API key
Inside your workspace, navigate to Settings → API Keys and click Create API Key. Give it a descriptive name — for example, You’ll use this key to authenticate all requests to the Tooken API. Keep it out of source control and never share it in plaintext.
local-dev or ci-pipeline — and click Create.Your new API key looks like this:Copy your API key now and store it somewhere safe — such as a password manager or secrets manager. Tooken does not display the full key value again after you leave this page.
Create your first token
With your API key in hand, send a A successful response returns the new token along with its metadata:The
POST request to /v1/tokens to create a scoped token. The example below creates a token named my-first-token with the tokens:read scope.The
token value in the response is shown only once. Copy it immediately and store it securely before closing the response. If you lose it, you’ll need to create a new token — Tooken cannot retrieve the value again.expires_at field is null when no expiration is set. To issue a token that expires automatically, include an "expires_at" field in your request with an ISO 8601 timestamp.Use your token
Pass the token value you received as a Because the token was created with the
Bearer token in the Authorization header of any downstream request that requires it.tokens:read scope, it can list and retrieve token records but cannot create or revoke them. If a request requires a scope the token doesn’t have, the API returns a 403 Forbidden response.Next steps
Authentication
Learn the difference between API keys and tokens, and how to handle auth errors.
Scopes
Explore all available scopes and how to combine them for least-privilege access.
Expiration policies
Set expiration dates and configure automatic rotation for long-lived tokens.
API reference
Browse every endpoint in the Tooken REST API.
