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 as | the person who made it | the organization, under the token's name |
| Can do | everything that person can | only what its scopes allow |
| Workspaces | every workspace the person is in | all, or a chosen list |
| When someone leaves | stops working | keeps working |
| Takes a seat | – | no |
Create one
- Settings ▸ API tokens ▸ Organization tokens ▸ Create.
- 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. - Scopes: at least one.
- Workspaces: every workspace, or a list.
- Expiry: 30 days, 90 days (default), 1 year, or none.
- Copy the token. It's shown once; only a hash and the first 10 characters are stored.
Pick the smallest scope
| Scope | For |
|---|---|
read | Reading collections and environments, listing runs |
write | Running collections and suites from the CLI and saving runs; editing collections and environments |
sync:read | requestarium sync status --check jobs |
sync:write | Jobs that sync push or sync pull |
run | Starting runs through the Run API, and nothing else |
admin:audit | Exporting 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:
- name: API tests
env:
REQUESTARIUM_TOKEN: ${{ secrets.REQUESTARIUM_ORG_TOKEN }}
run: requestarium run-collection "Checkout API" --env Staging --save-run --junit results.xmlThe 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.