Aggregated endpoint for the alerts views' filter dropdowns.
systems, severities and organizations are data-driven: only
values that actually appear in alert history within the caller's scope
are returned. alerts is a static catalog of every alert a NethServer
(NS8) or NethSecurity system can raise — it is NOT scoped to the
caller's data, so the dropdown can filter on alerts not yet received.
Auth is checked once, then the data-driven datasets are fetched in parallel.
Scope follows the same rules as the other alerts endpoints:
organization_id omitted = caller's full hierarchy; one or more
organization_id = those tenants (validated, Owner exempt);
Customer is always pinned to its own organization.
GET
/filters/alerts
curl \
--request GET 'https://api.your-domain.com/api/filters/alerts' \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"code": 200,
"message": "alert filters retrieved successfully",
"data": {
"systems": [
{
"id": "sys_abc123",
"name": "Milan Office Server",
"type": "ns8",
"key": "ABCD1234"
}
],
"alerts": [
{
"name": "DiskSpaceLow",
"severity": "warning",
"service": "storage"
},
{
"name": "ServiceDown",
"severity": "critical"
}
],
"severities": [
"critical",
"warning"
],
"organizations": [
{
"logto_id": "org_abc123",
"name": "ACME Corp",
"type": "customer"
}
]
}
}
Response examples (401)
{
"code": 401,
"message": "invalid token",
"data": {}
}
Response examples (403)
{
"code": 403,
"message": "insufficient permissions",
"data": {}
}