Get history of alerts
Allows you to retrieve a list of alerts filtered by the given pagination parameters.
GET /api/alerts
curl \
-X GET http://localhost:4000/api/alerts
Response examples (200)
{
"data": [
{
"id": "9520347b-b633-45c9-8b28-99f1d2989301",
"type": "FlameGuardAlarm_count",
"active": true,
"type_id": "039c347b-b633-45c9-8b28-99f1d2983fb5",
"booth_id": "57df5898-0c40-4176-9dd4-e0c96c6c810e",
"booth_name": "Test Booth",
"facility_id": "7e3c347b-b633-45c9-8b28-99f1d2983fb4",
"triggered_at": "2023-09-06T00:00:00Z",
"facility_name": "Test Facility"
}
],
"limit": 42.0,
"page": 42.0,
"pages": 42.0,
"total": 42.0
}
Response examples (401)
{
"error": "Error Reason"
}
Response examples (401)
{
"error": "Error Reason"
}