---
title: "Token types and lifecycle"
description: "Compare personal API, service, and server registration tokens by owner and purpose. Check key visibility, expiration, and the guide for each credential."
---

> Full documentation index: https://docs.alpacax.com/llms.txt

# Token types and lifecycle

<span id="tokens-overview" />

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](/use/settings/api-tokens/) | Your identity; scoped API calls | Account menu → **My API tokens** |
| [Service token](/use/iam/applications/service-tokens/) | An application; unattended commands, file transfer, and API calls | Application → **Tokens** |
| [Server registration token](/use/servers/register/tokens/) | A person or application; register servers into allowed groups | [Server registration](/use/servers/register/) 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

<span id="common-behaviors" />
<span id="token-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

<span id="expiration-presets" />

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](/use/iam/applications/service-tokens/#rotate-disable-and-expire) 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](/reference/scopes/), [access rules](/reference/access-rules/), and [token command matching](/reference/tokens/command-patterns/).

## Related documentation

- [Manage personal API tokens](/use/settings/api-tokens/)
- [Manage service tokens](/use/iam/applications/service-tokens/)
- [Manage server registration tokens](/use/servers/register/tokens/)
- [Token API reference](/reference/api/tokens/)

Source: https://docs.alpacax.com/reference/tokens/
