ServerAvatarDocs
API Reference

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

MethodPathLimit per minutePurpose
GET/admin/dashboardsharedCounts of users, roles and activity.
GET/admin/userssharedList users.
POST/admin/userssharedCreate a user.
PUT/admin/users/{user}sharedChange a user's name, username or administrator flag.
DELETE/admin/users/{user}sharedDelete a user.
PUT/admin/users/{user}/reset-passwordsharedSet a new password.
PUT/admin/users/{user}/rolessharedReplace a user's roles.
POST/admin/users/{user}/impersonatesharedSign in as a user (cookie session).
GET/admin/rolessharedList roles.
POST/admin/rolessharedCreate a role.
PUT/admin/roles/{role}sharedChange a role.
DELETE/admin/roles/{role}sharedDelete a role.
GET/admin/permissionssharedThe permission catalogue.
POST/admin/permissions/syncsharedRefresh the catalogue from the panel's code.
GET/admin/activity-logsharedThe panel-wide activity log.
GET/admin/activity-log/filterssharedValues for the log's filters.
GET/admin/activity-log/retentionsharedHow long entries are kept.
PUT/admin/activity-log/retention10Change how long entries are kept.
GET/admin/doctor10Installation self-check.
GET/admin/error-logssharedThe panel's API error log.
GET/admin/panel-update30Installed version, latest release, preflight.
POST/admin/panel-update3Start a panel update.
GET/admin/panel-update/{panelUpdate}pollingFollow 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

QueryRules
searchUp to 255 characters. Matches name and username.
filter[is_admin]true or false.
per_page10, 20, 50 or 100. Default 15.
pagePage 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]}'
FieldRules
nameRequired, up to 255 characters.
usernameRequired, up to 255 characters: ASCII letters, digits, - and _. Unique.
passwordRequired. At least 10 characters, with upper and lower case letters and a number.
password_confirmationRequired: must match password.
is_adminRequired boolean.
role_idsRequired 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

QueryRules
searchUp to 255 characters. Matches name and description.
sortname or created_at; a leading - sorts descending. Default name, ascending.
per_page10, 20, 30, 50 or 100. Default 10.
pagePage 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}

FieldRules
nameRequired, up to 255 characters.
descriptionOptional, up to 1000 characters.
permissionsOptional 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

QueryRules
searchUp 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_page10, 20, 50 or 100.
pagePage 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

QueryRules
linesInteger 1 to 500. Default 100.
referenceA 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

FieldRules
dry_runOptional 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

StatusMessage or cause
401No credential, or it is wrong, revoked or expired.
403Not an administrator; or a Central token on a route that changes users or roles.
404Unknown user, role or update.
422Validation ({"message", "errors": {"field": ["…"]}}); deleting yourself; changing a system role; impersonating yourself or an administrator.
429Over a limit; wait for Retry-After.
500{"message", "reference"}: find the reference in the error log.

On this page