Skip to content

API tokens & roles

Roles

Two levels, kept deliberately small:

Organization roles

RoleCan
ownereverything, incl. SSO connectors, license, org deletion
adminmanage members, projects, API tokens
memberaccess projects they've been granted a role on

Project roles (org owners/admins are implicitly managers everywhere)

RoleCan
managersettings, imports, key management, everything below
translatoredit translation values
viewerread-only

API tokens

Machines authenticate with bearer tokens (org page → API tokens, or POST /api/v1/orgs/:org/tokens). Tokens are shown once, stored hashed, and carry:

  • a scoperead (fetch bundles/exports), write (push translations and imports), or admin (project settings),
  • an optional project restriction (default: all projects in the org),
  • an optional expiry; revocation is immediate.
sh
curl https://locale.example.com/api/v1/projects/demo/keys \
  -H "Authorization: Bearer olp_…"

Scope → permission mapping:

Actionreadwriteadmin
bundles, exports, key listing
edit translations, imports, key management
project settings

Token-authenticated writes appear in the audit trail with actor type: token and source: api, so automation is never anonymous.

Recommended setup:

  • CI pipelinewrite token restricted to its project, 1-year expiry
  • Runtime delivery for a private projectread token, no expiry
  • Never ship a write token to browsers or mobile apps.

MIT licensed core. AI features unlock with a license key.