Announcement! Version 0.10 is out now! Check out the release notes.

On this page

Access Tokens

API requests authenticate with a Bearer token (RFC 6750). Tokens are managed in the console under Access Tokens.

Tokens are stored hashed in auth.db. The console displays a new token once. With the console disabled, the first start writes a full-access token to tokens/{SERVER_NAME}.txt (Getting Started).

Creating a token ​

Fields in Access Tokens → New token:

Field Required Description
Name Yes Service or user the token belongs to; recorded in audit and traffic logs
Description No Purpose, e.g. "ERP sync service"
Expiration (days) No Empty for no expiry
Rate limit No Requests per window for this token; empty uses the global limit
Scopes No Endpoint restriction (default *)
Environments No Environment restriction (default *)
Tenants No Allowed values per tenant header

The token value is displayed once, after Create.

Scoping tokens ​

A token reaches an endpoint when the endpoint matches its scopes and the environment matches both its environments and the endpoint's AllowedEnvironments.

Endpoint scopes ​

Pattern Access
* All endpoints
Products Endpoint Products
Products,Orders Both endpoints
Product* Endpoints starting with Product
Company/Employees Namespaced endpoint
Company/* All endpoints in the Company namespace
Inventory/Products@v2 Version 2 of Inventory/Products (Versions)
Inventory/Products* Every version of Inventory/Products
files/Images File endpoint Images; files grants every file endpoint

Scopes are validated on create and update: *, or an endpoint key of letters, digits, _, . and - segments, with an optional @v{n} version and a trailing *. @v1 is rejected: version 1 is the unversioned endpoint key.

Environment scopes ​

Pattern Access
* All environments
prod Environment prod
dev,test Both environments
dev* Environments starting with dev

The request environment must also be listed in the endpoint's AllowedEnvironments:

Token environments Endpoint AllowedEnvironments Request environment Result
* (not set) Any Allowed
* ["prod"] prod Allowed
* ["prod"] dev Blocked
prod,dev (not set) test Blocked
prod,dev ["prod"] dev Blocked

Tenant scopes ​

The AllowedTenants field maps each tenant header to its permitted values, e.g. {"X-Company-Id": ["ACME", "GLOBEX"]}. With one value per header the request header is optional; with several values it is required. Endpoint configuration: Tenant headers.

Common configurations ​

Scenario Scopes Environments
Full access * *
Single integration (Globe+) Company/* 500,700
Development * dev,test
Webhook ingestion Webhooks/* *

Rotating a token ​

Rotation issues a new token value with the same name, scopes, environments, tenants and rate limit, and revokes the old value. Expiration keeps the remaining days. Rotate is in the edit panel of an active token. Rotate on a schedule and after any exposure.

Last use ​

The token list displays the last use of each token. The value is recorded on token verification and is accurate to 30 seconds.

Archiving a token ​

Archiving revokes a token; requests with it return 401, and its plaintext token file is deleted. Archived tokens are listed with Show archived and can be restored. The last token with full access cannot be archived or narrowed.

Token audit log ​

Each token records its operations (created, scopes, environments and tenants changed, rotated, archived). The log opens from the token's edit drawer under Audit Log. API: GET /ui/api/tokens/{id}/audit (Console API).

Last updated: 2026-10-29