Skip to main content
Skip table of contents

Get a list of Bridge events

Getting a list of bridge events

Getting a list of bridge events.

Permission for this route - events-index

GET /api/admin/v1/bridges/{bridge}/events

int intercom, Unique identifier of the intercom


int per_page, Number of elements in one pagination page.


int page, Pagination page number


string group REQUIRED, Device event group.


string sort, Sorting parameter.


string dir, In which direction to sort.


date from, Start date.


date to, End date.


array types, Event types


array users, List of user ids.

200 OK

Successful response

JSON
{
    "data": [
        {
            "type": "user.bridge.activated",
            "type_pretty": "Bridge activated.",
            "data": null,
            "count": null,
            "user": {
                "id": 57,
                "name": "170500",
                "login": "170500",
                "created_by": null,
                "created_at": "2023-08-30T15:25:07.000000Z",
                "updated_at": "2023-09-04T08:45:12.000000Z",
                "expired_at": null,
                "user_type": "admin",
                "parent_id": null,
                "is_system": 0,
                "cameras_count": null,
                "is_licence_limit_reached": true,
                "ptz_priority": 10,
                "access_token_id": null
            },
            "created_at": "2024-01-29T10:58:55.000000Z",
            "updated_at": "2024-01-29T10:58:55.000000Z",
            "bridge": {
                "id": 7,
                "serial_number": "sn_7",
                "mac": "mac_7",
                "name": "bbb",
                "version": null,
                "created_at": "2023-09-21T11:46:57.000000Z",
                "last_updated_at": null,
                "is_online": true
            }
        },
        {
            "type": "user.bridge.deactivated",
            "type_pretty": "Bridge disabled",
            "data": {
                "id": 6,
                "mac": "mac_6",
                "name": "aaa",
                "uuid": "00000000-0000-0000-0000-000000000006",
                "status": "activated",
                "user_id": 57,
                "version": null,
                "is_online": false,
                "created_at": "2023-09-19T14:48:10.000000Z",
                "updated_at": "2023-09-19T14:48:10.000000Z",
                "serial_number": "sn_6",
                "last_updated_at": null
            },
            "count": null,
            "user": {
                "id": 57,
                "name": "170500",
                "login": "170500",
                "created_by": null,
                "created_at": "2023-08-30T15:25:07.000000Z",
                "updated_at": "2023-09-04T08:45:12.000000Z",
                "expired_at": null,
                "user_type": "admin",
                "parent_id": null,
                "is_system": 0,
                "cameras_count": null,
                "is_licence_limit_reached": true,
                "ptz_priority": 10,
                "access_token_id": null
            },
            "created_at": "2024-01-29T09:40:44.000000Z",
            "updated_at": "2024-01-29T09:40:44.000000Z"
        },
        {
            "type": "user.bridge.activated",
            "type_pretty": "Bridge activated.",
            "data": {
                "id": 6,
                "mac": "mac_6",
                "name": "aaa",
                "uuid": "00000000-0000-0000-0000-000000000006",
                "status": "activated",
                "user_id": 57,
                "version": null,
                "is_online": false,
                "created_at": "2023-09-19T14:48:10.000000Z",
                "updated_at": "2023-09-19T14:48:10.000000Z",
                "serial_number": "sn_6",
                "last_updated_at": null
            },
            "count": null,
            "user": {
                "id": 57,
                "name": "170500",
                "login": "170500",
                "created_by": null,
                "created_at": "2023-08-30T15:25:07.000000Z",
                "updated_at": "2023-09-04T08:45:12.000000Z",
                "expired_at": null,
                "user_type": "admin",
                "parent_id": null,
                "is_system": 0,
                "cameras_count": null,
                "is_licence_limit_reached": true,
                "ptz_priority": 10,
                "access_token_id": null
            },
            "created_at": "2024-01-29T09:38:48.000000Z",
            "updated_at": "2024-01-29T09:38:48.000000Z"
        }
    ],
    "links": {
        "first": "https://vms.local:8000/api/admin/v1/events?group=bridge_logs&page=1",
        "last": "https://vms.local:8000/api/admin/v1/events?group=bridge_logs&page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "links": [
            {
                "url": null,
                "label": "« Previous",
                "active": false
            },
            {
                "url": "https://vms.local:8000/api/admin/v1/events?group=bridge_logs&page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "Next »",
                "active": false
            }
        ],
        "path": "https://vms.local:8000/api/admin/v1/events",
        "per_page": 25,
        "to": 3,
        "total": 3
    }
}

401 Unauthorized

Authorization token not sent or not valid

cURL
BASH
curl -k --request POST \
	--url 'https://your-domain/api/admin/v1/bridges/{bridge}/events' \
	--header 'Content-Type: application/json' \
	--header 'Accept: application/json' \
	--data '{
    "intercom": 0,
    "per_page": 0,
    "page": 0,
    "group": "string",
    "sort": "string",
    "dir": "string",
    "from": "date",
    "to": "date",
    "types": [],
    "users": []
}'
PHP
PHP
$data = array (
  'intercom' => 0,
  'per_page' => 0,
  'page' => 0,
  'group' => 'string',
  'sort' => 'string',
  'dir' => 'string',
  'from' => 'date',
  'to' => 'date',
  'types' => 
  array (
  ),
  'users' => 
  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/bridges/{bridge}/events', false, $context);
JavaScript errors detected

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

If this problem persists, please contact our support.