Access, roles and tokens
Sessions, roles, API tokens, OIDC and TOTP.
On this page
All API paths are under /api/v1.
Sessions#
Browser users sign in with POST /api/v1/auth/login. The session is a server-side cookie. Requests that change state need an X-CSRF-Token header. Users can change their password (/auth/password) and enrol TOTP (/auth/totp/enroll, then /auth/totp/confirm). OIDC sign-in uses /auth/oidc/start and /auth/oidc/callback when OIDC is configured.
Roles#
| Role | Permissions | Max query range |
|---|---|---|
viewer | search | 7 days |
analyst | search, saved | 31 days |
auditor | search, audit | 31 days |
operator | search, saved, jobs, storage | 31 days |
admin | search, saved, jobs, audit, storage, admin | 31 days |
API tokens#
Create tokens with POST /api/v1/tokens from a signed-in session. A token cannot create another token.
| Field | Rule |
|---|---|
name | 1 to 64 characters |
scopes | At least one of search, saved, jobs, audit, storage, admin |
ttl_days | API tokens: 1 to 90. MCP tokens (kind: "mcp"): 1 to 30, default 7 |
A token can do only what its scopes and its owner's role both allow. The secret is shown once. Revoke with DELETE /api/v1/tokens/{id}.
curl -sS http://127.0.0.1:8080/api/v1/me -H "Authorization: Bearer <TOKEN>"The port above is an example; use your API port.
Report an inaccuracy (opens a support ticket in the portal; nothing is sent from this page)