Alerts API¶
Query and manage alerts generated by your monitoring rules. For an explanation of alert lifecycle and severity, see Concepts > Alerts.
List Alerts¶
Authentication: X-API-Key header or session cookie
Query Parameters¶
| Parameter | Type | Default | Description |
|---|---|---|---|
rule_id |
UUID | — | Filter by rule |
severity |
string | — | critical, warning, or info |
resolved |
boolean | — | Filter by resolution status |
skip |
integer | 0 |
Pagination offset |
limit |
integer | 100 |
Page size |
Response¶
[
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"rule_id": "660e8400-e29b-41d4-a716-446655440000",
"severity": "critical",
"message": "Threshold exceeded: 15 > 10 in 15 min window",
"is_resolved": false,
"is_acknowledged": false,
"created_at": "2026-02-11T14:30:00Z"
}
]
Examples¶
List Grouped Alerts¶
Returns alerts grouped by the rule that generated them, with occurrence counts and sparkline data. This is the same view used on the Adwize dashboard.
Authentication: X-API-Key header or session cookie
Query Parameters¶
| Parameter | Type | Default | Description |
|---|---|---|---|
status |
string | — | Filter by status |
severity |
string | — | Filter by severity |
rule_type |
string | — | Filter by rule type |
source |
string | — | Filter by source |
tag |
string | — | Filter by tag |
category |
string | — | Filter by category |
limit |
integer | 100 |
Max groups to return |
Alert Activity¶
Returns time-series data for alert volume charts.
Authentication: X-API-Key header or session cookie
Query Parameters¶
| Parameter | Type | Default | Description |
|---|---|---|---|
time_range |
string | 7d |
1h, 24h, 7d, or 30d |
Response¶
[
{ "timestamp": "2026-02-11T00:00:00Z", "count": 3 },
{ "timestamp": "2026-02-11T01:00:00Z", "count": 1 },
{ "timestamp": "2026-02-11T02:00:00Z", "count": 0 }
]
Get Alert¶
Returns a single alert by ID.
Authentication: X-API-Key header or session cookie
Resolve Alert¶
Marks an alert as resolved. Optionally include a note describing what was fixed.
Authentication: X-API-Key header or session cookie
Request Body (Optional)¶
Response: 200 OK with the updated alert.
Examples¶
Acknowledge Alert¶
Marks an alert as acknowledged, indicating someone is investigating.
Authentication: X-API-Key header or session cookie
Request Body (Optional)¶
Response: 200 OK with the updated alert.
Delete Alert¶
Permanently removes an alert.
Authentication: X-API-Key header or session cookie
Response: 204 No Content