# /systems/{id}/alerts/history - Get system alert history **GET /systems/{id}/alerts/history** Get paginated history of resolved and inactive alerts for a specific system. Alerts are stored by the collect service when Alertmanager sends webhook notifications. Requires `read:systems` permission. ## Servers - Backend API server: https://my.nethesis.it/backend/api (Backend API server) ## Authentication methods - Bearer auth ## Parameters ### Path parameters - **id** (string) System ID (logto_id) ### Query parameters - **page** (integer) Page number - **page_size** (integer) Items per page - **sort_by** (string) Field to sort by - **sort_direction** (string) Sort direction. Unlike the shared default of `asc`, this endpoint defaults to `desc` so the natural "most recent first" ordering is applied when the caller omits the param. - **from_date** (string(date-time)) Lower bound on `created_at` (inclusive). RFC3339 timestamp. - **to_date** (string(date-time)) Upper bound on `created_at` (exclusive). RFC3339 timestamp. Must be after `from_date`. - **alertname** (array[string]) Filter by alertname. Supports multiple values (OR within filter). - **search** (string) Free-text search: case-insensitive substring match on the alert type, its summary and description (any language), the `service` label, the system name/key/FQDN and the company name. Combines with the other filters (AND). - **severity** (array[string]) Filter by severity. Supports multiple values. - **status** (array[string]) Filter by status. Supports multiple values. ## Responses ### 200 Alert history retrieved successfully #### Body: application/json (object) - **code** (integer) - **message** (string) - **data** (object) ### 400 Bad request - validation error #### Body: application/json (object) - **code** (integer) HTTP error code - **message** (string) Error message - **data** (object) ### 401 Unauthorized - invalid or missing token #### Body: application/json (object) - **code** (integer) - **message** (string) - **data** (object | null) ### 403 Forbidden - insufficient permissions #### Body: application/json (object) - **code** (integer) - **message** (string) - **data** (object | null) ### 404 Resource not found #### Body: application/json (object) - **code** (integer) HTTP error code - **message** (string) Error message - **data** (object) [Powered by Bump.sh](https://bump.sh)