Organization API tokens for CI that don't belong to a person

Every team has one: the CI pipeline that runs on Dmytro's personal token. It works until Dmytro changes teams, and while it works it can do everything Dmytro can, in every workspace he's in. Organization API tokens are the fix: they belong to the organization, they only do what their scopes allow, and they keep working when people come and go.

Personal vs organization tokens

Personal (trt_…)Organization (trs_…)
Acts asthe person who made itthe organization, under the token's name
Can doeverything that person canonly what its scopes allow
Workspacesevery workspace the person is inall, or a chosen list
When someone leavesstops workingkeeps working
Takes a seat–no

Create one

  1. Settings ▸ API tokens ▸ Organization tokens ▸ Create.
  2. Name it after what uses it, for example GitHub Actions – checkout-service. That's how it shows in run history, sync commits and the audit log.
  3. Scopes: at least one.
  4. Workspaces: every workspace, or a list.
  5. Expiry: 30 days, 90 days (default), 1 year, or none.
  6. Copy the token. It's shown once; only a hash and the first 10 characters are stored.

Pick the smallest scope

ScopeFor
readReading collections and environments, listing runs
writeRunning collections and suites from the CLI and saving runs; editing collections and environments
sync:readrequestarium sync status --check jobs
sync:writeJobs that sync push or sync pull
runStarting runs through the Run API, and nothing else
admin:auditExporting the audit log to another system

Use it in CI

Store the token as a CI secret and pass it as an environment variable. No login step:

.github/workflows/api-tests.yml
- name: API tests
  env:
    REQUESTARIUM_TOKEN: ${{ secrets.REQUESTARIUM_ORG_TOKEN }}
  run: requestarium run-collection "Checkout API" --env Staging --save-run --junit results.xml

The CLI works out the organization from the token. Saved runs show the token's name as who ran them.

Rotate and revoke

Each token shows who created it, when it was last used, when it expires, and who revoked it. Revoking takes effect on the next request. An organization can have up to 20 active tokens; expired and revoked ones don't count.

A rotation that doesn't break the build: create the new token, update the CI secret, run the pipeline once, then revoke the old token. Creating and revoking are both in the audit log.

What tokens can never do

Organization tokens can't manage members, SSO, SCIM, billing or other tokens; can't create share links; can't use the AI assistant; and can't change workspace settings. Those stay with people signed in to the app.