Create and revoke API tokens
Create an API token by choosing what it's for, check exactly what it can do before you create it, copy it once, and delete it when you no longer need it.
Create and revoke API tokens
An API token lets a script, a pipeline, or the strackt CLI act in your workspace without your password. Each token is bound to the workspace you create it in and carries only the permissions you give it.
Tokens live under Settings → API tokens. Any member of a workspace can create tokens there. The list shows the tokens you created in the current workspace.
The workspace owner can create tokens with any permission. Members and administrators can create tokens for reading workspace data, deploying applications, and inspecting or revoking their own tokens. For broader permissions, ask the workspace owner to create the token. This limit applies to new tokens; existing tokens keep their permissions.
For how to call the API once you have a token, see the REST API. To connect the CLI, see Install the strackt CLI.
Create a token
- Go to Settings → API tokens and choose Create token.
- Give it a Token name you'll recognise later — for example, the pipeline or machine it's for.
- Under What is this token for?, pick the option that matches how you'll use it. strackt fills in the permissions for you. Monitoring and inventory is selected to begin with.
- Read the sentence under the options. It describes, in plain words, what the token will be able to do and what it won't.
- Choose Create token.
- Copy the token from the Copy this token now window.
What each option grants
| Option | Meant for | What it grants | Highest tier | Available to |
|---|---|---|---|---|
| Agent — read and deploy | Read approved resources, including logs and allowed WordPress output. | Eleven infrastructure read permissions, deploy and rollback, and inventory of your own workspace tokens; no commands, SSH or plaintext secret reveal | Sensitive (logs may contain application data) | Any member |
| Monitoring and inventory | Dashboards, status checks, or syncing your fleet into another system. | Ten infrastructure Read permissions, and nothing else | Read | Any member |
| Deploy from CI | GitHub Actions, GitLab CI, or any pipeline that ships your code. | Read applications, environments, domains, requirements, operations and checkpoints, and deploy | Change | Any member |
| Full access | Everyday work from your own terminal — everything the CLI can do. | Every permission except the three WordPress ones | Sensitive | Workspace owner |
| Emergency maintenance | On-call access to apply server configuration and roll back to a checkpoint. | Read servers and operations, write servers, and read, create and restore checkpoints | Sensitive | Workspace owner |
| Something else | Choose individual permissions yourself. | Nothing until you pick permissions | — | Any member, within their available permissions |
Only options your workspace role permits appear. Each option carries a pill showing the highest tier it reaches, so you can see at a glance which ones hand over sensitive access.
Full access includes almost everything you can do within the selected resources. Production is excluded until you explicitly include it. If a script only needs one job, pick a narrower option or build your own with Something else.
The three tiers
Every permission belongs to exactly one tier:
| Tier | What it means |
|---|---|
| Read | Reads only — nothing here changes anything. Secret values stay masked; data your site holds does not. |
| Change | Creates, updates or removes the things you own. Nothing here reveals a credential or hands over a machine. |
| Sensitive | Reveals a credential, grants shell or arbitrary execution, destroys server-level state, or irreversibly revokes credentials. |
Change is not the same as "reversible". Write Applications, for example, can delete an application — along with its stored secrets.
When you pick permissions with a consequence worth knowing about, a warning list appears above the summary before you create the token. Read the list: one Read permission is on it too, because running read-only WordPress commands can list your site's users and their email addresses.
See or change the full permission list
Choose Review the N permissions this grants below the summary to open the full list, grouped by tier. Each permission shows its name, what it allows, and any warning that goes with it. Each tier also has a Read everything, Change everything or Sensitive everything switch that turns on every permission in that section.
You can adjust the list from any starting option:
- Turn permissions on or off, and the option you chose shows a Modified pill. The summary switches to a count of how many permissions in each tier you've selected.
- Choose Something else to start from an empty list. You need at least one permission before Create token becomes available.
The full catalogue is below. The workspace owner can choose any permission. Members and administrators can choose the ten infrastructure Read permissions, Read Logs, Deploy, Read Your Tokens and Revoke Your Tokens; the other permissions are hidden from their create form. This includes logs only from environments inside the approved scope; production needs explicit inclusion. Logs and WordPress reads can contain application or customer data, even though they do not grant access to plaintext environment secrets.
The permissions, by tier:
| Tier | Permission | What it allows |
|---|---|---|
| Read | Read Your Tokens (tokens:read) |
Inspect metadata for all of your own tokens in this workspace |
| Read | Read Servers (servers:read) |
View server details, status, and configuration |
| Read | Read Applications (applications:read) |
View applications and their settings |
| Read | Read Environments (environments:read) |
View environments and their settings |
| Read | Read Domains (domains:read) |
View the domains on your environments |
| Read | Read Requirements (requirements:read) |
View what each environment needs, such as its database |
| Read | Read Operations (operations:read) |
View operations, follow them live, and read their output |
| Read | Read Environment Secrets (secrets:read) |
View environment secret keys and masked values |
| Read | Read Checkpoints (checkpoints:read) |
View checkpoint history |
| Read | Read Services (services:read) |
View service details, state, and retirement blockers |
| Read | Run WordPress commands (read) (wordpress:read) |
Run allowlisted read-only WP-CLI commands and view the update plan. |
| Change | Write Servers (servers:write) |
Modify server settings and apply pending configuration |
| Change | Write Applications (applications:write) |
Create, update, and delete applications and their settings |
| Change | Write Environments (environments:write) |
Create, update, and delete environments, change their settings, and re-scan their repository |
| Change | Deploy (environments:deploy) |
Trigger deployments and rollbacks |
| Change | Write Domains (domains:write) |
Add and remove domains |
| Change | Write Requirements (requirements:write) |
Add, change, confirm, and remove requirements |
| Change | Write Environment Secrets (secrets:write) |
Create, update, and delete environment secrets |
| Change | Create Checkpoints (checkpoints:write) |
Take a new checkpoint of a server or environment |
| Change | Change service settings (services:write) |
Change the settings of services on managed servers |
| Change | Run WordPress commands (write) (wordpress:write) |
Run allowlisted safe write WP-CLI commands like cache flush. |
| Change | Apply protected WordPress updates (wordpress:protected) |
Apply protected WordPress updates with an automatic restore point. |
| Sensitive | Revoke Your Tokens (tokens:revoke) |
Irreversibly revoke your own tokens across this workspace |
| Sensitive | Sign SSH Certificate (servers:ssh) |
Request a short-lived SSH certificate for a server |
| Sensitive | Read Logs (logs:read) |
View runtime, queue, scheduler, and PHP logs |
| Sensitive | Reveal Environment Secrets (secrets:reveal) |
View plaintext environment secret values |
| Sensitive | Run Commands (commands:run) |
Run managed commands on application environments |
| Sensitive | Restore Checkpoints (checkpoints:restore) |
Restore checkpoints to previous states |
| Sensitive | Retire Services (services:retire) |
Retire services from managed servers |
| Sensitive | Manage Webhooks (webhook-endpoints:write) |
Create, update, delete, and test webhook endpoints |
Tokens created before these names keep everything they could do; their permissions are shown in these names.
Copy the token — it's shown once
After you create a token, the Copy this token now window opens with the token marked Shown once. Choose Copy token and store it somewhere safe, such as your CI provider's secret settings or a password manager.
strackt keeps only a hashed copy. Once you close the window, the token can't be displayed again. If you lose it, create a new token and delete the old one.
Check what a token can do later
Each token in the Registered tokens list shows:
- its name, and the option it was created for when its permissions match that option
- a pill for the highest tier it reaches
- when it was created, and when it was last used (or Never used)
- a sentence describing what it can do
That sentence is worked out from the token's actual permissions, so it stays accurate even if the options above change later. A modified set of permissions is stored without an option label; the permission summary still shows its access.
Existing tokens keep their permissions. Older permission names have been updated to the names above; you do not need to replace a token for this change.
Change a token's permissions
You can't edit a token after it's created. To change what a token can do, create a new one with the right permissions, switch your script or pipeline over to it, then delete the old one.
Revoke a token
- In Registered tokens, choose Delete next to the token.
- Confirm with Delete token.
Access is revoked immediately. Anything still using that token will be refused from its next request.
Approve a terminal
When your terminal shows a login code, open https://app.strackt.io/device and sign in. Enter the code, check the device name and network address, then choose a workspace, access and how long it lasts. Only continue if you started the login. The device name is supplied by the terminal; it does not prove which computer is asking.
Agent — read and deploy is selected by default for 30 days. It reads servers, applications, environments, domains, requirements, operations, masked secrets, checkpoints, services, allowed WordPress output and logs. It can deploy and roll back approved environments. It cannot run commands, use SSH, reveal plaintext secrets or make other changes. Logs and WordPress output can contain application data. You can choose 1, 7 or 30 days; there is no unlimited device lifetime.
Members and administrators can approve Agent, Monitoring or Deploy from CI. Only the workspace owner can approve Full access or Emergency maintenance. Every preset, including Full access, excludes production until you tick Include production environments; deployments and commands can reach application secrets indirectly. Full access keeps the same permissions as the preset previously called “The strackt CLI”.
After approval, return to your terminal to finish. The page shows what you approved and when it ends; it cannot confirm that the terminal saved it. If login or saving fails after approval, remove the named device token under Settings → API tokens and start again. Manual tokens keep their existing lifetime and creation flow.
Choose the resources a token can reach
Both terminal approval and Settings → API tokens start with Whole workspace, Non-production only. Choose an application, an environment or a server to narrow that boundary. Tick Include production environments explicitly when you need production access, including with Full access. The sentence under the chooser states the boundary you are approving.
An application or server includes future environments within it, and an environment includes future resources belonging to it. Deleting the selected resource leaves the token with no resource access; it never expands to the workspace. To change a boundary, revoke the token and create another.
A clean deploy can run on a server shared with production. If deployment first needs a configuration change affecting resources outside the token’s boundary, it is refused. Deployments run your code with its secrets and can reach them indirectly. Read access, logs and operation output can contain application data.
Existing tokens keep their stored access. Settings labels their boundary Existing workspace access. Old Agent tokens stay read-only; log in again or create a new Agent token for deploy and rollback access. CLI production visibility or confirmation flags cannot widen the approved scope.
The approved browser screen shows Approved code XXXXX-XXXXX. Compare it with the code in the terminal you are waiting on: starting another login leaves the older request independent. If you refresh the review or approval, enter the same code again. An approved summary can be reopened only in the approving session before the original code expires; reopening it does not issue another token.
Manage tokens through the API
An approved token with tokens:read can list or inspect your own tokens in its workspace through GET /api/v1/tokens and GET /api/v1/tokens/{token}. Any valid token can permanently revoke itself through DELETE /api/v1/tokens/{token} without another permission. Revoking another known token ID requires tokens:revoke. The API never returns another token's secret and cannot create or edit credentials. See the REST API for pagination, fields and errors.
New Agent approvals include tokens:read only. Full access includes both permissions. Agent logins can list, inspect and revoke themselves, but cannot revoke another token. These permissions cover all of your own tokens in this workspace, including tokens for other resources and production. They are separate from the selected infrastructure boundary and do not grant the other tokens' infrastructure access. Monitoring, CI deploy and Emergency maintenance do not gain these permissions. Older tokens keep the powers you originally approved. Self-revocation is available to every valid token, including tokens with no selected permissions.
Last used is an approximate successful authentication time with five-minute precision, rather than a record of finished work. Revoking a token stops new requests from every copy of it. Requests already authenticated, open streams and accepted work may finish. Existing SSH certificates keep their bounded lifetime. Deletion cannot be undone; create or approve a replacement when needed.
Server onboarding permissions
Owner-approved Full access or custom workspace tokens can install servers and erase their data. cloud-accounts:read permits account metadata and catalogue discovery; cloud-accounts:write saves human-supplied provider credentials. Agent and member presets do not gain these onboarding grants. If a token lacks permission, ask the owner to approve a new token. A token cannot approve its own permissions or purchase a server: ordering hands off to the signed-in owner for price review and explicit confirmation.
Was this helpful?