API tokens
Administration → API Tokens creates tokens that let other software use CrewSpec on your team's behalf, such as the sensor agent or your own integrations. You need service_token/view/all to see them.


A token isn't a person: it has its own Permissions, chosen when you create it, and nothing else. Give each token only what its software needs.
How many tokens you can use
Each APU on your subscription lets your team use one API token. The note at the top of the list shows how many tokens you're using out of how many your APUs allow.
- When you're using them all, + is unavailable. Disable or delete a token, or add APUs, to create another.
- Without APUs, API tokens can't be used.
- Disabled and expired tokens don't count.
If your team has more tokens than its APUs allow, for example after removing APUs, only the oldest tokens are accepted, up to your allowance. The rest are marked Not accepted: over your API token allowance, and any software using them is turned away until you add APUs or disable or delete an older token.
Creating a token
Select + (needs service_token/create).
- Token Name is required, up to 100 characters. Name it after what will use it.
- Permissions: choose from the permissions reference. Tokens can't be given permission to manage tokens or delete team data.
- Expiration Date: a preset from 24 Hours to 2 Years, Custom for a date, or Never.
After you create it, CrewSpec shows the Token Secret once. Copy it and store it somewhere safe, such as a password vault. You can't see it again; if it's lost, rotate the token.
Managing tokens
The list shows when each token was Last Used and when it expires. Expired and disabled tokens are marked.
- Edit (needs
service_token/edit/all) changes its name, permissions, expiry, or turns it off with Status. - Rotate gives it a new secret and stops the old one working straight away. Update the software that uses it.
- Delete (needs
service_token/delete/all) stops it working straight away.
The sensor agent
Download Agent Installer downloads CrewAgent, a Windows service that streams sensor data, such as sonar, and screen recordings to CrewSpec in real time. The installer asks for a token secret, so create a token for it first.