Skip to content

Administration

Endpoints under /api/admin/* are reserved for operators and elevated users. They cover identity (users, groups, API keys, scope sets), system configuration (config keys, defaults, indexes), and operational visibility (sessions, health).

Most endpoints in this section require either a dedicated *:read/*:write scope or the catch-all admin scope. The admin scope is intentionally broad — it bypasses most fine-grained checks — and should be issued sparingly.

Subsections

GroupWhat it covers
UsersList, read, create, modify, delete, unlock users; manage avatars and uniqueness checks.
GroupsGroup records and group membership.
API KeysMint, list, revoke API keys; view the catalogue of scopes a key may carry.
Scope SetsNamed bundles of scopes that get attached to users and API keys.
ConfigurationSystem config keys (read, replace, patch) and mail-config verification.
System DefaultsForce-recreate default objects (themes, blueprints, scope sets, etc.) — used during platform setup or recovery.
Index ManagementMongoDB index status, cleanup, and rebuild operations.
SessionsAdmin view of every user's active sessions.
System HealthService health snapshots for the running deployment.
Bootstrap ActivationOne-shot bootstrap endpoint used to mint the first admin during initial deployment.
Admin PushReceive enrollment tokens from the admin portal.

Scopes Summary

ScopeReach
adminCatch-all administrative scope. Required for Configuration, Defaults, Indexes, Sessions, Health, and the bootstrap activation flow.
admin:readRead-only access to a small slice of administrative metadata (Session filter metadata).
users:readReading user records.
users:writeModifying user records, including avatars, unlock, and uniqueness checks.
groups:readReading group records and membership.
groups:writeCreating/modifying groups and managing membership.
apikeys:readReading API key records.
apikeys:writeCreating and deleting API keys; viewing the scope catalogue available to keys.
scope_sets:readReading scope-set records.
scope_sets:writeCreating, modifying, and deleting scope sets.

Creating a new user is restricted to the admin scope; holders of users:write cannot invite users. This is intentional — see the Create User endpoint for details.

See also

  • Authentication — how clients obtain the tokens that carry these scopes.
  • Scopes — the complete scope catalogue.
  • Conventions — pagination, filtering, and error patterns used across every admin endpoint.

S-Launch