# System endpoints (Admin API)

> 3 FeatherPanel Admin API endpoints from admin/kpi/system.php: methods, paths, auth, permissions, rate limits, parameters and responses.

Source: https://featherpanel.com/docs/api/reference/admin/kpi/system/

Defined in [`backend/app/routes/admin/kpi/system.php`](https://github.com/MythicalLTD/FeatherPanel/blob/15b94e9fc9df233123706b47c42728b81e48cb3d/backend/app/routes/admin/kpi/system.php). Authentication used here: **Admin**. Read [Authentication](https://featherpanel.com/docs/api/authentication/) for how to send credentials and [Rate limits and errors](https://featherpanel.com/docs/api/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/analytics/mail-queue/stats`

- Auth: Admin
- Permission: `admin.dashboard.view`
- Route name: `admin-analytics-mail-queue-stats`
- Controller: [`SystemController::getMailQueueStats`](https://github.com/MythicalLTD/FeatherPanel/blob/15b94e9fc9df233123706b47c42728b81e48cb3d/backend/app/Controllers/Admin/KPI/SystemController.php)
- [route source](https://github.com/MythicalLTD/FeatherPanel/blob/15b94e9fc9df233123706b47c42728b81e48cb3d/backend/app/routes/admin/kpi/system.php#L26)

**Get mail queue statistics** Retrieve statistics about mail queue.

```bash
curl -X GET "$PANEL_URL/api/admin/analytics/mail-queue/stats" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"
```

Responses: `200` Mail queue stats retrieved successfully · `401` Unauthorized · `403` Forbidden - Insufficient permissions

### GET `/api/admin/analytics/system/feature-adoption`

- Auth: Admin
- Permission: `admin.dashboard.view`
- Route name: `admin-analytics-system-feature-adoption`
- Controller: [`SystemController::getFeatureAdoptionStats`](https://github.com/MythicalLTD/FeatherPanel/blob/15b94e9fc9df233123706b47c42728b81e48cb3d/backend/app/Controllers/Admin/KPI/SystemController.php)
- [route source](https://github.com/MythicalLTD/FeatherPanel/blob/15b94e9fc9df233123706b47c42728b81e48cb3d/backend/app/routes/admin/kpi/system.php#L37)

**Get feature adoption statistics** Retrieve adoption metrics for chatbot, API clients, OAuth2, and OIDC features.

```bash
curl -X GET "$PANEL_URL/api/admin/analytics/system/feature-adoption" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"
```

Responses: `200` Feature adoption stats retrieved successfully · `401` Unauthorized · `403` Forbidden - Insufficient permissions

### GET `/api/admin/analytics/system/dashboard`

- Auth: Admin
- Permission: `admin.dashboard.view`
- Route name: `admin-analytics-system-dashboard`
- Controller: [`SystemController::getDashboard`](https://github.com/MythicalLTD/FeatherPanel/blob/15b94e9fc9df233123706b47c42728b81e48cb3d/backend/app/Controllers/Admin/KPI/SystemController.php)
- [route source](https://github.com/MythicalLTD/FeatherPanel/blob/15b94e9fc9df233123706b47c42728b81e48cb3d/backend/app/routes/admin/kpi/system.php#L48)

**Get comprehensive system analytics dashboard** Retrieve all system analytics data.

```bash
curl -X GET "$PANEL_URL/api/admin/analytics/system/dashboard" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"
```

Responses: `200` System dashboard retrieved successfully · `401` Unauthorized · `403` Forbidden - Insufficient permissions
