Skip to main content
The admin endpoints provide administrative functionality for managing users, viewing system configuration, and accessing latest archived content.

Authentication

All admin endpoints require:
  • Valid JWT token in the Authorization header
  • User must be active (is_active = true)
  • User must have specific permissions for each endpoint
Admin endpoints are powerful and should only be accessible to trusted users. Ensure proper permission configuration.

Get latest posts

GET /api/v1/latest
Retrieves the latest original posts (OPs) across all boards in catalog format.
Authorization
string
required
Bearer token from the login endpoint
Required permission: archive_latest_view

Response

catalog
array
Array of latest OP posts in catalog format across all configured boards

Get configuration

GET /api/v1/configs
Retrieves moderation-related configuration values.
Authorization
string
required
Bearer token from the login endpoint
Required permission: archive_configs_view

Response

Returns an array of configuration key-value pairs.
configs
array
Array of configuration objects with key and value properties

User management

List all users

GET /api/v1/users
Retrieves all users in the system.
Authorization
string
required
Bearer token from the login endpoint
Required permission: user_read

Response

users
array
Array of user objects (passwords are redacted)

Get user by ID

GET /api/v1/users/{user_id}
Retrieves a specific user by their ID.
user_id
integer
required
The user’s unique identifier
Authorization
string
required
Bearer token from the login endpoint
Required permission: user_read

Response

Create user

POST /api/v1/users
Creates a new user account.
Authorization
string
required
Bearer token from the login endpoint
Required permission: user_create
This endpoint is rate-limited to 6 requests per hour to prevent abuse.

Request body

username
string
required
Username (must not already exist)
password
string
required
User’s password (will be hashed)
permissions
array | null
Array of permission strings. null for no permissions.
is_admin
boolean
required
Whether the user has admin privileges
is_active
boolean
required
Whether the user account is active
notes
string | null
Optional notes about the user

Response

Update user

PUT /api/v1/users/{user_id}
Updates an existing user account.
user_id
integer
required
The user’s unique identifier
Authorization
string
required
Bearer token from the login endpoint
Required permission: user_update

Request body

username
string
required
Username (must match existing user)
password_old
string | null
Current password (required if changing password)
password_new
string | null
New password (optional)
permissions
array | null
Array of permission strings
is_admin
boolean
required
Whether the user has admin privileges
is_active
boolean
required
Whether the user account is active
notes
string | null
Optional notes about the user
To change a password, both password_old and password_new must be provided. The old password is validated before the change.
The system enforces that at least one active admin must exist. You cannot deactivate or demote the last active admin.

Response

Delete user

DELETE /api/v1/users/{user_id}
Deletes a user account.
user_id
integer
required
The user’s unique identifier
Authorization
string
required
Bearer token from the login endpoint
Required permission: user_delete
The system enforces that at least one active admin must exist. You cannot delete the last active admin.

Response

Available permissions

Users can be granted the following permissions:
  • user_create - Create new users
  • user_read - View user information
  • user_update - Modify existing users
  • user_delete - Delete users
  • report_open - Open reports
  • report_close - Close reports
  • report_read - View reports
  • report_update - Update reports
  • report_delete - Delete reports
  • report_save_notes - Save moderator notes on reports
  • post_show - Unhide posts
  • post_hide - Hide posts
  • post_delete - Delete posts
  • media_hide - Hide media files
  • media_show - Unhide media files
  • media_delete - Delete media files
  • archive_stats_view - View archive statistics
  • archive_latest_view - View latest archived posts
  • archive_configs_view - View system configuration
  • messages_view - View system messages
Admin users bypass permission checks and have access to all functionality.

Build docs developers (and LLMs) love