# Audit Log endpoints (Admin API)

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

Source: https://featherpanel.com/docs/api/reference/admin/audit-log/

Defined in [`backend/app/routes/admin/audit-log.php`](https://github.com/MythicalLTD/FeatherPanel/blob/15b94e9fc9df233123706b47c42728b81e48cb3d/backend/app/routes/admin/audit-log.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/audit-log`

- Auth: Admin
- Permission: `admin.users.list`
- Route name: `admin-audit-log`
- Controller: [`AuditLogController::index`](https://github.com/MythicalLTD/FeatherPanel/blob/15b94e9fc9df233123706b47c42728b81e48cb3d/backend/app/Controllers/Admin/AuditLogController.php)
- [route source](https://github.com/MythicalLTD/FeatherPanel/blob/15b94e9fc9df233123706b47c42728b81e48cb3d/backend/app/routes/admin/audit-log.php#L31)

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

### GET `/api/admin/audit-log/filters`

- Auth: Admin
- Permission: `admin.users.list`
- Route name: `admin-audit-log-filters`
- Controller: [`AuditLogController::filters`](https://github.com/MythicalLTD/FeatherPanel/blob/15b94e9fc9df233123706b47c42728b81e48cb3d/backend/app/Controllers/Admin/AuditLogController.php)
- [route source](https://github.com/MythicalLTD/FeatherPanel/blob/15b94e9fc9df233123706b47c42728b81e48cb3d/backend/app/routes/admin/audit-log.php#L31)

```bash
curl -X GET "$PANEL_URL/api/admin/audit-log/filters" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"
```

### GET `/api/admin/audit-log/export`

- Auth: Admin
- Permission: `admin.users.list`
- Route name: `admin-audit-log-export`
- Controller: [`AuditLogController::export`](https://github.com/MythicalLTD/FeatherPanel/blob/15b94e9fc9df233123706b47c42728b81e48cb3d/backend/app/Controllers/Admin/AuditLogController.php)
- [route source](https://github.com/MythicalLTD/FeatherPanel/blob/15b94e9fc9df233123706b47c42728b81e48cb3d/backend/app/routes/admin/audit-log.php#L31)

```bash
curl -X GET "$PANEL_URL/api/admin/audit-log/export" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"
```
