Token types and lifecycle
Choose a token by who owns the work and what the token needs to do.
Token types
| Token | Owner and purpose | Where to manage |
|---|---|---|
| Personal API token | Your identity; scoped API calls | Account menu → My API tokens |
| Service token | An application; unattended commands, file transfer, and API calls | Application → Tokens |
| Server registration token | A person or application; register servers into allowed groups | Server registration or its token settings |
Use a service token for CI/CD and other unattended automation. Its scopes and access rules are bounded by the application’s roles. A personal API token carries your own identity; new personal tokens cannot receive command or file-transfer scopes. A registration token authorizes server onboarding, including registering more than one server with one key.
Key visibility
A token key is shown once when issued. Copy it into secure storage before leaving the page. A service token’s key dialog closes only after you confirm you have stored the key. A pending service token key cannot authenticate until approval. If its key is lost after activation, an authorized person can rotate it.
Expiration
Personal and registration token forms offer 7 days, 30 days, 90 days, 1 year, or a custom date. Every new personal or registration token expires. The workspace’s Maximum token lifetime is 1–366 days (default 366); the form begins at 1 year or the shorter maximum, and options beyond it are disabled. Replace the key before it expires. An expired token stops working.
Service tokens use a separate expiration and rotation policy. The personal and registration token maximum does not apply to them. Service-token rotation replaces the key immediately.
Access rules
Scopes define the API actions a token can request. Server, command, and file access rules can narrow those scopes. A scope by itself does not bypass an applicable access rule. See scope reference, access rules, and token command matching.