View .md

Integrity endpoints (Admin API)

2 FeatherPanel Admin API endpoints from admin/integrity.php: methods, paths, auth, permissions, rate limits, parameters and responses.

Last synced from FeatherPanel 15b94e9 on .

On this page

Defined in backend/app/routes/admin/integrity.php. Authentication used here: Admin. Read Authentication for how to send credentials and Rate limits and errors for the response envelope.

Paths, methods, permissions and rate limits come from the route file. Summaries, parameters and response codes come from the OpenAPI annotations on the controllers; endpoints without annotations show only what the route file declares.

Endpoints

GET/api/admin/integrity/check

Auth: AdminPermission: admin.dashboard.viewRoute name: admin-integrity-checkController: IntegrityController::checkroute source

Scan panel file integrity (SHA-256) Hashes core backend PHP tree, public/index.php, and composer lockfiles. Optionally compares against storage/config/panel_integrity_baseline.json.

curl -X GET "$PANEL_URL/api/admin/integrity/check" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"

Responses: 200 Scan completed · 500 Scan failed

POST/api/admin/integrity/baseline

Auth: AdminPermission: admin.settings.editRoute name: admin-integrity-baselineController: IntegrityController::saveBaselineroute source

Save current scan as integrity baseline Writes storage/config/panel_integrity_baseline.json from the current file hashes.

curl -X POST "$PANEL_URL/api/admin/integrity/baseline" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"

Responses: 200 Baseline saved · 500 Failed to save