Skip to content

System events

Endpoints for working with system events.

/api/SystemEvents

Returns a list of system events.

Example: http://localhost:5288/api/SystemEvents?FromID=1&MaxID=1000

Response:

{
"maxID": 1,
"events": [
{
"record_ID": 1000,
"created": "2025-09-11T08:50:17.255929Z",
"event_Category_Name": "Suprema controller",
"device_Name": "Controller-1825",
"custom_Text": "Offline",
"origin_Name": null,
"additional_Info": null,
"cardnumber": null,
"facility_Code": null
},
{
"record_ID": 999,
"created": "2025-09-11T08:50:17.255173Z",
"event_Category_Name": "Suprema controller",
"device_Name": "Controller-9503",
"custom_Text": "Offline",
"origin_Name": null,
"additional_Info": null,
"cardnumber": null,
"facility_Code": null
}
}

/api/SystemEvents/{id}

Example: http://localhost:5288/api/SystemEvents/999

{
"record_ID": 999,
"created": "2025-09-11T08:50:17.255173Z",
"event_Category_Name": "Suprema controller",
"device_Name": "Controller-9503",
"custom_Text": "Offline",
"origin_Name": null,
"additional_Info": null,
"cardnumber": null,
"facility_Code": null
}

/api/SystemEvents/maxid

Get maxId for events:

{
"maxId": 4793
}

POST /api/SystemEvents/search

{
"from": "2025-08-01T10:37:05.446Z",
"to": "2025-08-29T10:37:05.446Z",
"tenants": [
0
],
"searchstring": "CardHolder",
"DeviceIds": [ 1 ],
"DeviceType": 5,
"isAlarm": false
}

POST /api/SystemEvents/searchbycodes

Search events by event types, categories, codes.

Required: date range, tenants.

Example request search by event category id == 11:

{
"from": "2025-01-01T09:24:40.376Z",
"to": "2026-02-17T09:24:40.376Z",
"deviceType": 0,
"tenants": [
0
],
"eventCategoryIDs": [
11
]
}

Example all params:

{
"from": "2025-08-01T10:37:05.446Z",
"to": "2025-08-29T10:37:05.446Z",
"deviceType": 0,
"tenants": [
0
],
"deviceIds": [
5
],
"isAlarm": true,
"eventCategoryIDs": [
0
],
"eventTypeIDs": [
0
],
"subcodeCategoryIDs": [
0
],
"subcodeIDs": [
0
]
}