Skip to main content
Skip table of contents

List of user actions

Get a list of user actions

Returns a list of user actions

GET /api/admin/v1/log-entries

Method parameters

array type, array of user action types


string from, starting date for filtering


string to, ending date for filtering


int user_id, administrator identifier


int per_page, number of items per pagination page. Default is 25


int page, pagination page number


string search, minimum of 3 octets required for searching by IP address

200 OK

Successful response

JSON
{
    "data": [
        {
            "id": 13190478,
            "type": "admin.camera.store",
            "display_type": "Creating a camera",
            "data": {
                "id": 324855,
                "name": "testqwe",
                "path": [
                    1,
                    4,
                    5
                ],
                "type": "without_server",
                "order": 0,
                "source": "manual",
                "status": "empty",
                "azimuth": null,
                "pack_id": null,
                "group_id": 5,
                "location": null,
                "services": [],
                "is_public": false,
                "group_type": "public",
                "created_at": "2022-11-24T13:26:46.000000Z",
                "updated_at": "2022-11-24T13:26:46.000000Z",
                "count_issues": 0,
                "is_sensitive": 1,
                "top_group_id": 1,
                "services_list": {
                    "ptz": false,
                    "motion_detect": false
                },
                "is_need_replace": false,
                "is_user_owner": false,
                "is_sound_enabled": false,
                "folder_id": null,
                "archive_storage_days": 30,
                "is_archive_recording": true,
                "archive_recording_type": "fulltime",
                "is_auto_create_streams": false,
                "is_increased_reconnect": true,
                "default_config_templates_count": 0
            },
            "created_at": "2022-11-24 16:26:46",
            "user": {
                "id": 21,
                "name": "admin",
                "login": "admin@mail.com",
                "created_at": "2019-09-13 19:26:16",
                "updated_at": "2022-11-02 15:26:08",
                "expired_at": null,
                "is_licence_limit_reached": true,
                "ptz_priority": 10,
                "access_token_id": null
            },
            "camera": {
                "id": 324855,
                "group_id": 5,
                "status": "empty",
                "type": "without_server",
                "start_at": "",
                "created_at": "2022-11-24 16:26:46",
                "name": "testqwe",
                "can_edit": true,
                "origin": null,
                "group_type": "public",
                "shared_from": null,
                "ip": null,
                "lat": null,
                "lng": null,
                "azimuth": null,
                "is_sensitive": 1,
                "is_public": 0,
                "is_ip_reserved": false,
                "count_issues": 0,
                "source": "manual",
                "archive_storage_days": 30,
                "is_archive_recording": true,
                "archive_recording_type": "fulltime",
                "is_increased_reconnect": 1,
                "is_sound_enabled": false,
                "is_bridge": false,
                "can_change_archive_timetable": true,
                "is_auto_create_streams": false,
                "is_provisioning_enable": false,
                "is_can_manage_archive_storage_days": true,
                "is_editable": true
            }
        }
    ],
    "links": {
        "first": "http://127.0.0.1:8080/api/admin/v1/log-entries?page=1",
        "last": "http://127.0.0.1:8080/api/admin/v1/log-entries?page=4483527",
        "prev": null,
        "next": "http://127.0.0.1:8080/api/admin/v1/log-entries?page=2"
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 4483527,
        "links": [
            {
                "url": null,
                "label": "pagination.previous",
                "active": false
            }
        ],
        "path": "http://127.0.0.1:8080/api/admin/v1/log-entries",
        "per_page": 1,
        "to": 1,
        "total": 4483527
    }
}

401 Unauthorized

Authorization token is not provided or is invalid. Obtaining a token

cURL
BASH
curl -k --request POST \
	--url 'https://your-domain/api/admin/v1/log-entries' \
	--header 'Content-Type: application/json' \
	--header 'Accept: application/json' \
	--data '{
    "type": [],
    "from": "string",
    "to": "string",
    "user_id": 0,
    "per_page": 0,
    "page": 0,
    "search": "string"
}'
PHP
PHP
$data = array (
  'type' => 
  array (
  ),
  'from' => 'string',
  'to' => 'string',
  'user_id' => 0,
  'per_page' => 0,
  'page' => 0,
  'search' => 'string',
);
$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/log-entries', false, $context);
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.