Use API keys to authenticate CLI, CI, and programmatic API requests.
Create an API key
- Open Profile → API Keys in the TesterArmy dashboard.
- Click Create API Key.
- Copy the key and store it in your secret manager or CI environment.
API keys are shown once. If you lose a key, revoke it and create a new one.
Send the key in the Authorization header:
For the CLI, either run ta auth or set:
Troubleshooting
401 Unauthorized
The API key is missing, malformed, revoked, or belongs to a user who no longer has access to the team.
Check that:
- The header is exactly
Authorization: Bearer YOUR_KEY.
- The key comes from Profile → API Keys.
- The key has not been revoked.
- The user who created the key still belongs to the team.
Rotate a key
- Create a new key.
- Update your CLI, CI, or secret manager.
- Confirm requests work with the new key.
- Revoke the old key.