On this page
Before you start: any role (personal) or Organization API tokens: change (organization). Second factor required if enrolled.
- Open creation: - Personal: avatar menu, API tokens, New token. - Organization: navigation, API tokens, New organization token.
- Enter Name, pick Role (User, Viewer, Admin) and optional Custom role (within your permissions).
- Enable Extra rights, optionally restrict Accepted from networks (one IP/range per line) and set Expires in (default max 90 days).
- Click Create token (confirm second factor if prompted).
- Click Copy, store the secret (shown once) and click I saved the token.
Send as a bearer header:
bash
export PRINCIPAL_TOKEN=<your token>
curl -H "Authorization: Bearer $PRINCIPAL_TOKEN" \
https://principal.example.com/api/v2/targetsExtra rights#
| Right | Allows |
|---|---|
Allow security changes |
Edit security settings within role (default max 7 days). |
Allow token management |
Manage narrower, shorter-lived tokens. |
Allow reading credentials |
Read credentials you may reveal (audited). |
Allow installation administration |
Installation admin personal token: health, maintenance, all-org audit. |