Skip to content

The Admin Workspace

ProcessHeadless mounts the Setup -> Headless workspace ({admin}/setup/headless/), combining a custom React overview & provider explorer with Entries/RecordEditor forms and Headless/OneTimeSecretBanner islands for displaying newly minted whk_, whr_, and whsec_ secrets once.

Overview lets authorized operators issue a scoped PAT immediately, flush Headless caches, prune expired refresh tokens, or inspect generated OpenAPI/TypeScript schemas.
Settings (superuser-writable) manages API prefix, operating mode, CORS origins, passthrough paths, rate limits, JWT/refresh TTLs, and the signing secret.
Blueprint Type Kind Key Fields Notes
headless single api_prefix, cors_origins, full_headless, resolve_paths, passthrough_paths, rate_limit, rate_window, jwt_ttl, refresh_ttl, secret_key Tabbed singleton (tab_routing, tab_limits, tab_security), revisions=10, deletable=false, write-only fingerprinted secret_key.
headless-keys collection title, user_id, full_access, scopes, rate_limit, expires_at, last_used_at, key_prefix, key_hash Scoped whk_* Personal Access Tokens; non-superusers see only their own keys.
headless-tokens collection title, user_id, full_access, scopes, expires_at, revoked_at, token_hash Rotating whr_* refresh tokens with reuse detection; non-superusers see only their own tokens.
headless-webhooks collection title, target_url, secret_key, all_events, events, custom_headers, last_status, last_triggered_at whsec_*-signed outbound webhooks; custom_headers and secret_key excluded from CSV/JSON exports.

Next steps