Returns paginated resolved alert history scoped to the caller's hierarchy
(no organization_id), a single tenant (organization_id=X), or a sub-tree
(organization_id=X&include=descendants). Mirrors the scope rules of
/alerts/totals and /alerts/trend.
Supports date range (from_date/to_date, RFC3339) and multi-value label
filters (alertname, severity, status). All multi-value filters: OR within
the same filter, AND across filters.
Customer callers are always pinned to their own organization regardless of params.
Query parameters
-
Target organization ID. Optional for all roles except Customer (where it is ignored).
-
Set to
descendantstogether withorganization_idto drill down on a sub-tree.Value is
descendants. -
Page number
Minimum value is
1. Default value is1. -
Items per page
Minimum value is
1, maximum value is200. Default value is20. -
Values are
id,alertname,severity,status,starts_at,ends_at, orcreated_at. Default value iscreated_at. -
Sort direction
Values are
ascordesc. Default value isasc. -
Lower bound on
created_at(inclusive). RFC3339 timestamp. -
Upper bound on
created_at(exclusive). RFC3339 timestamp. Must be afterfrom_date. -
Filter by alertname. Supports multiple values.
-
Filter by severity. Supports multiple values.
Values are
critical,warning, orinfo. -
Filter by status. Supports multiple values.
curl \
--request GET 'https://collect.your-domain.com/api/alerts/history' \
--header "Authorization: Bearer $ACCESS_TOKEN"
{
"code": 200,
"message": "alert history retrieved successfully",
"data": {
"alerts": [
{
"id": 1,
"system_key": "NETH-F5D2-5E69-A174-45A9-B1AB-2BB9-03F5-F1B4",
"alertname": "DiskFull",
"severity": "critical",
"status": "resolved",
"fingerprint": "ac193fc966f036ca",
"starts_at": "2026-04-08T13:28:38Z",
"ends_at": "2026-04-08T13:33:39Z",
"summary": "Disk usage above 90%",
"labels": {
"alertname": "DiskFull",
"severity": "critical",
"system_key": "NETH-F5D2-5E69-A174-45A9-B1AB-2BB9-03F5-F1B4"
},
"annotations": {
"summary": "Disk usage above 90%"
},
"receiver": "severity-critical-receiver",
"created_at": "2026-04-08T13:33:40Z"
}
],
"pagination": {
"page": 1,
"page_size": 20,
"total_count": 156,
"total_pages": 8,
"has_next": true,
"has_prev": false,
"next_page": 2,
"prev_page": 42,
"sort_by": "name",
"sort_direction": "asc"
}
}
}
{
"code": 400,
"message": "validation failed",
"data": {
"type": "validation_error",
"errors": [
{
"key": "username",
"message": "required",
"value": "string"
}
]
}
}
{
"code": 401,
"message": "invalid token",
"data": {}
}
{
"code": 403,
"message": "insufficient permissions",
"data": {}
}