Users and roles
Authenticate with Authorization: JWT <access_token>
. Role and user management is subject to the panel’s permission checks. Hosting administrator accounts use the separate Admin API
.
HTTP methods GET
Authentication Panel JWT
Permission catalog for constructing role permission objects.
HTTP methods GET, POST
Authentication Panel JWT
List or create a role. Fields are name, description, and permissions. Returns the role with id and is_builtin.
HTTP methods GET, PUT, PATCH, DELETE
Authentication Panel JWT
Read, edit, or delete a role. Built-in or assigned roles cannot be deleted.
HTTP methods GET, POST
Authentication Panel JWT
List or create a panel user. Send username, email, and password on creation. Optional fields include roles (IDs)
, is_active and access_expires_at (ISO 8601 or null).
HTTP methods GET, PUT, PATCH, DELETE
Authentication Panel JWT
Read, edit, or delete a user. The account owner is protected. The response includes is_owner, last_login, totp_enabled, and status.
HTTP methods POST
Authentication Panel JWT
Send password. Returns HTTP 204.
HTTP methods POST
Authentication Panel JWT
Invalidate the user’s panel sessions. Returns HTTP 204.
HTTP methods GET, PATCH
Authentication Panel JWT
Read the current user with roles and effective permissions, or PATCH email. Returns the profile.
HTTP methods POST
Authentication Panel JWT
Invalidate prior sessions and issue a replacement JWT in token.
POST /api/v2/panel_users/users/
{
"username": "show-host",
"email": "host@example.com",
"password": "<new password>",
"roles": [
2
],
"is_active": true
}
Example role
Each permission catalog item
has a key, label_i18n_key, group, and allowed levels. A role’s permissions object maps each key to its level. To inspect the user’s effective permissions across roles, read /api/v2/panel_users/me/
.
POST /api/v2/panel_users/roles/
{"name":"Analyst","description":"Audience reporting","permissions":{"statistics":"read"}}
Role levels and account states
A role permission value is none (no access), read (read access), or write (write access, which includes read where applicable). Action-only permissions use none or write. Query the permission catalog for the values each key accepts. In the account creation example, roles: [2] assigns the role with ID 2.
Account status is active (access enabled), disabled (inactive user), or expired (access expiration has passed).