Skip to main content

Token types

Strix has two types of API tokens:

Personal tokens

  • Attached to one user
  • Expire after 90 days (default)
  • Best for individual scripts and local tools

Service keys

  • Org-level, not attached to a user
  • Can stay valid for a long time (no default expiry)
  • Best for CI/CD pipelines and production integrations
  • Only org admins can create service keys

Default scopes

Service keys default scopes:
Personal tokens default scopes:
These defaults apply when creating a token from API Access or POST /api/v1/tokens. Device login creates a named CLI session with Minimal, Recommended, Full, or Custom access and an immutable login ceiling. It is shown separately from ordinary keys in API Access and reused by later sign-ins from the same CLI installation. See CLI login. webhooks:write is admin-only. tokens:write lets an active member manage ordinary personal tokens; the current CLI session can list/switch its memberships, inspect or narrow itself, and revoke itself without that scope. Its login ceiling prevents switching from widening authority. Only organization admins can create service keys or manage another member’s tokens. You can change the scopes when you create a token.

Resource-restricted tokens

API scopes control what a token may do. With Enterprise RBAC, optional rbac_scopes further restrict which assets it may access. Each resource restriction is an object with exactly these fields:
type is target, tag, or business_unit; value is 1–120 characters and may contain ASCII letters, digits, ., _, :, /, @, or -. A target value identifies one asset, while tag and business_unit values match asset metadata. An empty rbac_scopes array means organization-wide asset access within the token’s API scopes and the creator’s current role. When a token-authenticated caller creates another token and omits rbac_scopes, the new token inherits the caller’s restrictions. An explicit list must be a subset of the caller token’s restrictions. API scopes are similarly capped by the member’s current organization role and by the caller token. The CLI exposes the token request fields directly:
Use --expires-at <ISO-8601> instead for an absolute expiration. The token secret is returned only by the create response; store it securely before leaving the output.

Available scopes

Each endpoint specifies the scope that it requires. A token can only call the endpoints that match its scopes.

Using tokens

Include the token in the Authorization header:
Managed CLI sessions also send X-Strix-Workspace: <organization_id> on normal API requests. This pins a process to the workspace it started in and turns a concurrent switch into a safe 409 conflict. Ordinary API tokens do not require this header.

Best practices

  • Give each integration only the scopes that it needs (least privilege)
  • Rotate tokens regularly, especially service keys
  • If a token is compromised, revoke it immediately. A revoked token stops operation on the next request
  • Use personal tokens for development and service keys for production