View .md

Impersonation endpoints (Admin API)

2 FeatherPanel Admin API endpoints from admin/impersonation.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/impersonation.php. Authentication used here: Admin, Signed-in user. 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

POST/api/admin/users/{uuid}/impersonate

Auth: AdminPermission: admin.users.impersonateRoute name: admin-users-impersonateController: ImpersonationController::startroute source
ParameterInTypeRequiredDescription
uuidpath-yes
curl -X POST "$PANEL_URL/api/admin/users/$UUID/impersonate" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"

DELETE/api/user/impersonation

Auth: Signed-in userDefault rate limit: 30 / minute (user-impersonation-stop)Route name: user-impersonation-stopController: ImpersonationController::stoproute source
curl -X DELETE "$PANEL_URL/api/user/impersonation" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"