QuackUIInstall

API tokens

Let scripts call the QuackUI API.

Create one in File › Account › API tokens.

Creating a token

Copy it straight away. It isn’t shown again and only its hash is stored. Tokens start with quackui_pat_ and last 1 to 365 days.

export QUACKUI_TOKEN=quackui_pat_...
curl -H "Authorization: Bearer $QUACKUI_TOKEN" https://bi.example.com/api/reports

What it can do

It acts as you, with your role, groups, rows and columns at the time of each request. Scopes narrow it further.

Scope Covers
reports:read, reports:write Reports, folders, images
data:read Querying models and exporting reports
runs:read, runs:write Runs and their exports, schedules, deliveries
models:read, models:write Models and sources
admin:read, admin:write Groups, attributes, permissions, row and column security, destinations, listing users

Write includes read for the same area. A token with no scopes works everywhere tokens are accepted.

No token can manage tokens, passwords, single sign-on links or user accounts, or read the audit log. GET /api/auth/me works with any.

Revoke

Revoke it in the same place. Admins can revoke anyone’s in File › Users. Disabling a user or resetting their password revokes theirs. Changing your own password doesn’t.

Single sign-on doesn’t end tokens. Someone removed at the provider keeps theirs until they expire, are revoked or the account is disabled, so disable the account in QuackUI too. Until then, groups and attribute values from claims stay as at the last SSO sign-in, unless an admin changes them.

Schedules and reports made with a token stay after it is gone. After a leak, check the owner’s schedules too.

Worked example: Script an export.