Get a list of events
Getting a list of events
Getting a list of events.
The permission for this route is events-index
Event groups:
user_logs - User actions
admin_logs - Actions of administrators
bolid_events - Events from security system devices
camera_events - Events from cameras
system_user_events - User system events
system_common_events - Common system events
system_server_events - System events of video stream servers
intercom_events - Intercom system events
intercom_logs - System user actions over the intercom
bridge_logs - User system actions on the device
GET /api/admin/v1/events |
The parameters
int
per_page, Number of elements in one pagination page.
int
page, Pagination page number
string
sort, Sorting parameter.
string
group REQUIRED, Event group.
date
from, Start date.
date
to, End date.
array
types, Event types
array
users, List of user ids.
array
cameras, List of camera ids.
array
intercoms, List of intercom id.
200 |
Successful response
JSON
|
401 |
Authorization token not sent or not valid |
cURL
curl -k --request POST \
--url 'https://your-domain/api/admin/v1/events' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '{
"per_page": 0,
"page": 0,
"sort": "string",
"group": "string",
"from": "date",
"to": "date",
"types": [],
"users": [],
"cameras": [],
"intercoms": []
}'
PHP
$data = array (
'per_page' => 0,
'page' => 0,
'sort' => 'string',
'group' => 'string',
'from' => 'date',
'to' => 'date',
'types' =>
array (
),
'users' =>
array (
),
'cameras' =>
array (
),
'intercoms' =>
array (
),
);
$context = stream_context_create([
'ssl'=>['verify_peer' => false],
'http' => [
'method' => 'GET',
'header' => "Content-Type: application/json\r
Accept: application/json",
'content'=>json_encode($data)
]
]);
$result = file_get_contents('https://your-domain/api/admin/v1/events', false, $context);