Docs
Live demo

Create an API token

Issue a personal or organization bearer token for scripts, CI pipelines or AI agents.

On this page

Before you start: any role (personal) or Organization API tokens: change (organization). Second factor required if enrolled.

  1. Open creation: - Personal: avatar menu, API tokens, New token. - Organization: navigation, API tokens, New organization token.
  2. Enter Name, pick Role (User, Viewer, Admin) and optional Custom role (within your permissions).
  3. Enable Extra rights, optionally restrict Accepted from networks (one IP/range per line) and set Expires in (default max 90 days).
  4. Click Create token (confirm second factor if prompted).
  5. 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/targets

Extra 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.
↑ ↓ to moveEnter to openEsc to close