Credentials
Use the smallest credential that fits the job. Privilege lives on the token grant, not on an /admin URL.
Cheat sheet
All of these go in the header as:
user | realm. Legacy personal / daemon types are rejected.
API planes
There is no
/admin route tree. The same resource paths serve everyone; the grant decides if the call is allowed.
Interactive specs on this site: Hub API and Daemon API only.
Grants (domains + access)
Every user and realm token carries a grant:- Domains — where the credential may act (
orgs/scopes/realms). - Access — per entity, one or more of
read|write|admin.read— get / list (including run details and logs)write— create / update / publish / dispatch / cancel / heartbeatadmin— irreversible tenancy ops (delete user/org, rotate org keys, …)
runs:write or dispatch:write). Run events, logs, phases, and artifacts share the runs entity — they are not separate domains.
Mint templates
CI publisherSession (people)
/internal routes. Day-to-day login stays on Hub API.
User token (automation)
type: "user".