> For the complete documentation index, see [llms.txt](https://docs.visualsentinel.com/llms.txt)

# Server Alerts API

Server alert history and configuration. This page lists the one endpoint in the Server Alerts area of the Visual Sentinel REST API.

Base URL: `https://visualsentinel.com`. Unless an endpoint says otherwise it accepts an API key or a session cookie, see [Authentication](https://docs.visualsentinel.com/guides/authentication.md). Most error responses use the [ErrorResponse](https://docs.visualsentinel.com/reference/models/error-response.md) shape, see [Errors](https://docs.visualsentinel.com/guides/errors.md) and [Rate limits](https://docs.visualsentinel.com/guides/rate-limits.md).

## Endpoints

- [Get server alert history](#get-server-alerts): `GET /api/servers/{id}/alerts`

## Get server alert history

`GET /api/servers/{id}/alerts`

Get historical alerts for a specific server (CPU, memory, disk threshold breaches, offline events).

**Parameters**

- `id` (path, string (uuid), required)
- `limit` (query, integer, optional): Default: `50`. Maximum 200.
- `offset` (query, integer, optional): Default: `0`.

**Responses**

- `200`: Server alert history. Body: [ServerAlertListResponse](https://docs.visualsentinel.com/reference/models/server-alert-list-response.md).
- `404`: Server not found.

## Data models

Request and response shapes these endpoints use: [ServerAlertListResponse](https://docs.visualsentinel.com/reference/models/server-alert-list-response.md).

Generated from the OpenAPI 3.1 specification at [https://docs.visualsentinel.com/openapi.json](https://docs.visualsentinel.com/openapi.json), the same file the interactive reference reads.
