Create Token
POST
Authorizations
Primary scheme: Authorization: Key <key_id>:<secret>.
Body
application/json
Seconds until the token expires; omitted means the service default.
Scopes granted to the token. Omitted means every scope of the minting key; an explicit subset narrows the grant, and requesting beyond the key's scopes is a 403.
Least-privilege grants carried by v3 API keys.
Stored as text[] on api_keys; NULL scopes means full access (legacy keys). Scopes are stored as text so new least-privilege surfaces can be introduced without a database-enum migration.
Available options:
jobs:read, jobs:write, models:read, files:write, webhooks:manage, log_drains:manage, usage:read, keys:manage