# Node Alerts endpoints (Admin API)

> 7 FeatherPanel Admin API endpoints from admin/node-alerts.php: methods, paths, auth, permissions, rate limits, parameters and responses.

Source: https://featherpanel.com/docs/api/reference/admin/node-alerts/

Defined in [`backend/app/routes/admin/node-alerts.php`](https://github.com/MythicalLTD/FeatherPanel/blob/3faf369c3b4b626654434921a2ee2655ff85da45/backend/app/routes/admin/node-alerts.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/node-alerts/overview`

- Auth: Admin
- Permission: `admin.nodes.view`
- Route name: `admin-node-alerts-overview`
- Controller: [`NodeAlertsController::overview`](https://github.com/MythicalLTD/FeatherPanel/blob/3faf369c3b4b626654434921a2ee2655ff85da45/backend/app/Controllers/Admin/NodeAlertsController.php)
- [route source](https://github.com/MythicalLTD/FeatherPanel/blob/3faf369c3b4b626654434921a2ee2655ff85da45/backend/app/routes/admin/node-alerts.php#L27)

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

### GET `/api/admin/node-alerts/history`

- Auth: Admin
- Permission: `admin.nodes.view`
- Route name: `admin-node-alerts-history`
- Controller: [`NodeAlertsController::history`](https://github.com/MythicalLTD/FeatherPanel/blob/3faf369c3b4b626654434921a2ee2655ff85da45/backend/app/Controllers/Admin/NodeAlertsController.php)
- [route source](https://github.com/MythicalLTD/FeatherPanel/blob/3faf369c3b4b626654434921a2ee2655ff85da45/backend/app/routes/admin/node-alerts.php#L28)

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

### GET `/api/admin/node-alerts/settings`

- Auth: Admin
- Permission: `admin.nodes.view`
- Route name: `admin-node-alerts-settings`
- Controller: [`NodeAlertsController::settings`](https://github.com/MythicalLTD/FeatherPanel/blob/3faf369c3b4b626654434921a2ee2655ff85da45/backend/app/Controllers/Admin/NodeAlertsController.php)
- [route source](https://github.com/MythicalLTD/FeatherPanel/blob/3faf369c3b4b626654434921a2ee2655ff85da45/backend/app/routes/admin/node-alerts.php#L29)

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

### PUT `/api/admin/node-alerts/settings`

- Auth: Admin
- Permission: `admin.settings.edit`
- Route name: `admin-node-alerts-settings-update`
- Controller: [`NodeAlertsController::updateSettings`](https://github.com/MythicalLTD/FeatherPanel/blob/3faf369c3b4b626654434921a2ee2655ff85da45/backend/app/Controllers/Admin/NodeAlertsController.php)
- [route source](https://github.com/MythicalLTD/FeatherPanel/blob/3faf369c3b4b626654434921a2ee2655ff85da45/backend/app/routes/admin/node-alerts.php#L30)

```bash
curl -X PUT "$PANEL_URL/api/admin/node-alerts/settings" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"
```

### POST `/api/admin/node-alerts/test`

- Auth: Admin
- Permission: `admin.settings.edit`
- Route name: `admin-node-alerts-test`
- Controller: [`NodeAlertsController::test`](https://github.com/MythicalLTD/FeatherPanel/blob/3faf369c3b4b626654434921a2ee2655ff85da45/backend/app/Controllers/Admin/NodeAlertsController.php)
- [route source](https://github.com/MythicalLTD/FeatherPanel/blob/3faf369c3b4b626654434921a2ee2655ff85da45/backend/app/routes/admin/node-alerts.php#L31)

```bash
curl -X POST "$PANEL_URL/api/admin/node-alerts/test" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"
```

### POST `/api/admin/node-alerts/evaluate`

- Auth: Admin
- Permission: `admin.nodes.edit`
- Route name: `admin-node-alerts-evaluate`
- Controller: [`NodeAlertsController::evaluate`](https://github.com/MythicalLTD/FeatherPanel/blob/3faf369c3b4b626654434921a2ee2655ff85da45/backend/app/Controllers/Admin/NodeAlertsController.php)
- [route source](https://github.com/MythicalLTD/FeatherPanel/blob/3faf369c3b4b626654434921a2ee2655ff85da45/backend/app/routes/admin/node-alerts.php#L32)

```bash
curl -X POST "$PANEL_URL/api/admin/node-alerts/evaluate" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"
```

### POST `/api/admin/node-alerts/{id}/resolve`

- Auth: Admin
- Permission: `admin.nodes.edit`
- Route name: `admin-node-alerts-resolve`
- Controller: [`NodeAlertsController::resolve`](https://github.com/MythicalLTD/FeatherPanel/blob/3faf369c3b4b626654434921a2ee2655ff85da45/backend/app/Controllers/Admin/NodeAlertsController.php)
- [route source](https://github.com/MythicalLTD/FeatherPanel/blob/3faf369c3b4b626654434921a2ee2655ff85da45/backend/app/routes/admin/node-alerts.php#L33)

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | \- | yes |  |

```bash
curl -X POST "$PANEL_URL/api/admin/node-alerts/$ID/resolve" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"
```
