Administration API
Manage panel users, roles and permissions, read the panel-wide activity log and error log, run the installation self-check, and update the panel through the OSS Panel API.
Everything the Administration section of the panel does, as endpoints under
/admin: users, roles and the permission catalogue, the activity log and its
retention, the installation self-check ("doctor"), the API error log, and the
panel update.
All paths are relative to https://<your-panel-host>/api. Read
Authentication first. The examples use:
PANEL=https://panel.example.com
TOKEN='1|xcMq8K3vZ2pL…'Access
Every /admin route is for panel administrators only: an account with the
administrator flag. Any other account gets 403, whatever its role says. Roles
do not apply here, so there are no permission keys on this page.
The users and roles routes that create, change or delete something also refuse a
request that carries the Central token,
with 403. Central can read users and roles, not change them.
Unless the table says otherwise, an endpoint draws on the shared budget (see Rate limits).
Endpoint index
| Method | Path | Limit per minute | Purpose |
|---|---|---|---|
GET | /admin/dashboard | shared | Counts of users, roles and activity. |
GET | /admin/users | shared | List users. |
POST | /admin/users | shared | Create a user. |
PUT | /admin/users/{user} | shared | Change a user's name, username or administrator flag. |
DELETE | /admin/users/{user} | shared | Delete a user. |
PUT | /admin/users/{user}/reset-password | shared | Set a new password. |
PUT | /admin/users/{user}/roles | shared | Replace a user's roles. |
POST | /admin/users/{user}/impersonate | shared | Sign in as a user (cookie session). |
GET | /admin/roles | shared | List roles. |
POST | /admin/roles | shared | Create a role. |
PUT | /admin/roles/{role} | shared | Change a role. |
DELETE | /admin/roles/{role} | shared | Delete a role. |
GET | /admin/permissions | shared | The permission catalogue. |
POST | /admin/permissions/sync | shared | Refresh the catalogue from the panel's code. |
GET | /admin/activity-log | shared | The panel-wide activity log. |
GET | /admin/activity-log/filters | shared | Values for the log's filters. |
GET | /admin/activity-log/retention | shared | How long entries are kept. |
PUT | /admin/activity-log/retention | 10 | Change how long entries are kept. |
GET | /admin/doctor | 10 | Installation self-check. |
GET | /admin/error-logs | shared | The panel's API error log. |
GET | /admin/panel-update | 30 | Installed version, latest release, preflight. |
POST | /admin/panel-update | 3 | Start a panel update. |
GET | /admin/panel-update/{panelUpdate} | polling | Follow one update. |
Dashboard
GET /admin/dashboard
{
"dashboard": {
"users": {"total": 6, "admins": 2, "non_admins": 4},
"roles": {"total": 4},
"activity": {"today": 18, "total": 2431}
}
}The built-in Central account is not counted as a user.
Users
GET /admin/users
| Query | Rules |
|---|---|
search | Up to 255 characters. Matches name and username. |
filter[is_admin] | true or false. |
per_page | 10, 20, 50 or 100. Default 15. |
page | Page number. |
Returns {"users": [ … ], "meta": {"current_page", "per_page", "total", "last_page"}}, newest first:
{
"id": 3,
"name": "Sam Rivera",
"username": "sam",
"is_admin": false,
"roles": [{"id": 2, "name": "Developer"}],
"last_login_at": "2026-11-25T08:14:03+00:00",
"last_login_at_human": "6 hours ago",
"last_login_ip": "203.0.113.24",
"created_at": "02-11-2026 09:14:03",
"created_at_human": "3 weeks ago"
}POST /admin/users
curl -X POST "$PANEL/api/admin/users" \
-H "Authorization: Bearer $TOKEN" -H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-d '{"name": "Sam Rivera", "username": "sam", "password": "Correct-Horse-9", "password_confirmation": "Correct-Horse-9", "is_admin": false, "role_ids": [2]}'| Field | Rules |
|---|---|
name | Required, up to 255 characters. |
username | Required, up to 255 characters: ASCII letters, digits, - and _. Unique. |
password | Required. At least 10 characters, with upper and lower case letters and a number. |
password_confirmation | Required: must match password. |
is_admin | Required boolean. |
role_ids | Required array of at least one existing role id. |
Answers 201 with {"user": { … }}.
PUT /admin/users/{user}
Fields name, username (unique, ignoring this user) and is_admin, all
required. Returns {"user": { … }}. This does not change the password or the
roles: use the next two endpoints.
PUT /admin/users/{user}/reset-password
Fields password and password_confirmation, with the same rules as when
creating a user. Answers 204. Every access token the user held is revoked, so
their scripts must sign in again.
PUT /admin/users/{user}/roles
Body role_ids: a required array of at least one existing role id. It
replaces the user's roles. Answers 204.
DELETE /admin/users/{user}
Answers 204. The user's access tokens are revoked and their name is kept on
their activity entries. You cannot delete your own account: 422 with
You cannot delete your own account.
POST /admin/users/{user}/impersonate
Signs you in as that user, so you see the panel as they do. This works on a
cookie session only (see the cookie sessions section of
Authentication): it changes the session, so
a bearer token cannot use it. Answers 201:
{
"user": { … },
"impersonated_by": {"id": 1, "username": "admin"}
}You cannot impersonate yourself or another administrator (422). The start is
recorded in the activity log. See Impersonation.
Roles and permissions
GET /admin/roles
| Query | Rules |
|---|---|
search | Up to 255 characters. Matches name and description. |
sort | name or created_at; a leading - sorts descending. Default name, ascending. |
per_page | 10, 20, 30, 50 or 100. Default 10. |
page | Page number. |
Returns {"roles": [ … ], "meta": { … }}. A role:
{
"id": 2,
"name": "Developer",
"slug": "developer",
"is_system": false,
"description": "Deploys and manages applications.",
"permissions": [
{
"level": "server",
"name": "firewall",
"title": "Firewall",
"access": "view",
"permissions": {"view": true, "manage": false}
}
],
"created_at": "02-11-2026 09:14:03",
"created_at_human": "3 weeks ago"
}access is none, view or manage.
POST /admin/roles and PUT /admin/roles/{role}
| Field | Rules |
|---|---|
name | Required, up to 255 characters. |
description | Optional, up to 1000 characters. |
permissions | Optional array of grants. Each has level and name (taken from GET /admin/permissions) and either access (none, view or manage) or both view and manage booleans. |
POST answers 201 and PUT answers 200, both with {"role": { … }}. A
system role cannot be changed or deleted (422: This is a system role and
cannot be modified or deleted.).
DELETE /admin/roles/{role}
Answers 204.
GET /admin/permissions
Returns {"permissions": [ … ], "groups": [ … ], "access_levels": [ … ]}: every
permission with level, sub_level, name, title, icon and url, grouped
by level and sub-level, and the access levels you can grant.
POST /admin/permissions/sync
No body. Refreshes the catalogue from the panel's code (useful after an update)
and returns the same answer plus synced, the number of permissions.
Activity log
GET /admin/activity-log
| Query | Rules |
|---|---|
search | Up to 255 characters. |
filter[user_id] | An existing user id. |
filter[type], filter[action] | Up to 255 characters each; values come from the filters endpoint. |
filter[scope] | A scope from the filters endpoint. |
filter[kind] | created, changed, removed or failed. |
filter[security] | Boolean: only security-relevant events. |
per_page | 10, 20, 50 or 100. |
page | Page number. |
Returns {"activity_log": [ … ], "meta": { … }}. Each entry has the shape
described under Server operations.
GET /admin/activity-log/filters returns the values for the filters, scopes
and kinds.
GET /admin/activity-log/retention and PUT …/retention
GET returns:
{
"retention": {
"months": 12,
"choices": [3, 6, 12, 24],
"entries": 2431,
"oldest_at": "02-12-2025 09:14:03"
}
}PUT takes months (required to be present): 3, 6, 12, 24, or null
to keep entries for ever. It returns the same shape. Limit: 10 per minute.
Entries newer than a fixed minimum age are never removed, whatever you choose.
Doctor
GET /admin/doctor
Runs the installation self-check: it asks the system and the panel's own health endpoint whether everything the panel needs is in place. It is slow on purpose, so it is limited to 10 per minute; do not poll it.
{
"doctor": {
"healthy": true,
"passed": 18,
"failed": 0,
"warnings": 1,
"checks": [
{"key": "…", "title": "…", "status": "pass", "detail": "…", "fix": null}
]
}
}status is pass, warn or fail. fix says what to do when a check does not
pass.
Error log
GET /admin/error-logs
| Query | Rules |
|---|---|
lines | Integer 1 to 500. Default 100. |
reference | A UUID: only the entry with that reference. |
Returns {"error_logs": [ … ], "meta": {"truncated": false}}, newest first. Each
entry has occurred_at, status, method, route, exception, message,
file, trace, reference, user_id, feature, feature_label, operation,
operation_label, exit_code, command, duration_ms, attempts and error.
The reference is the value other endpoints give you when they answer 500.
Panel update
GET /admin/panel-update
Add ?refresh=1 to ask the release host again instead of using the cached
answer. Limit: 30 per minute.
{
"panel_update": {
"installed": { … },
"available": { … },
"update_available": true,
"preflight": { … },
"latest_run": null
}
}preflight is the list of checks that must pass before an update can start.
latest_run is the last update, in the shape below, or null.
POST /admin/panel-update
| Field | Rules |
|---|---|
dry_run | Optional boolean: go through the steps without changing the panel. |
Answers 202 with {"panel_update": { … }} and updates in the background; the
panel is briefly unavailable while it rebuilds. Limit: 3 per minute, counted
on this endpoint only.
GET /admin/panel-update/{panelUpdate}
Poll this while an update runs. It returns {"panel_update": { … }}:
{
"id": 5,
"status": "running",
"status_title": "Running",
"current_step": "…",
"current_step_title": "…",
"step_number": 7,
"total_steps": 27,
"dry_run": false,
"from_version": "…",
"to_version": "…",
"from_commit": "…",
"to_commit": "…",
"reason": null,
"reason_title": null,
"rolled_back": false,
"reference": null,
"output": "…",
"output_truncated": false,
"started_at": "25-11-2026 14:30:00",
"started_at_human": "1 minute ago",
"finished_at": null,
"finished_at_human": null
}reason and reason_title explain a failure, and rolled_back says whether the
panel was restored to the previous version.
Common errors
| Status | Message or cause |
|---|---|
401 | No credential, or it is wrong, revoked or expired. |
403 | Not an administrator; or a Central token on a route that changes users or roles. |
404 | Unknown user, role or update. |
422 | Validation ({"message", "errors": {"field": ["…"]}}); deleting yourself; changing a system role; impersonating yourself or an administrator. |
429 | Over a limit; wait for Retry-After. |
500 | {"message", "reference"}: find the reference in the error log. |
Related
- Users, Roles, Activity log, System health, Error log and Panel update: the same features in the panel
- Central connection and add-ons API
Central connection and add-ons API
Turn the Central management connection on or off, read its status, and the add-on routes that only a connected Central panel can call, through the OSS Panel API.
Public and account endpoints
The open endpoints (health, basic info, branding), your own account (profile, password, sign out, permissions, activity log), time zones, and the deploy webhook, through the OSS Panel API.