Admin

Create User

Create a new user with the specified role (admin only).

post/admin/users/

Request

  • The document declares no server URL.
  • Auth: one of:
    • OAuth 2 (password, token URL /api/auth/login)
    • API key in header X-Api-Key
    • API key in query parameter api_key

Request body

usernamestring required

Login username (3-150 chars). Must be unique across the system.

passwordstring required

Initial password (policy: min 12 chars, 3+ character classes, at most 72 bytes UTF-8). The user can change this after first login.

emailstring email nullable

Optional email address. Used for OAuth account linking and notifications.

rolestring

User role: 'admin', 'editor', or 'viewer'. Defaults to 'viewer'.

Response

Successful Response

idstring uuid required
usernamestring required
emailstring nullable required
is_activeboolean required
status'active' | 'pending' | 'suspended' | 'deactivated' required

Account status: active, pending, suspended, or deactivated.

last_login_atstring date-time nullable required
created_atstring date-time required
rolesstring[] required

Assigned role names, e.g. ['admin', 'editor']

can_reset_passwordboolean required

Whether an administrator can set a local password for this account. True for local accounts even when an identity provider is also linked.

Changes

No recorded changes to this operation across all 50 revisions of this API.