Skip to main content
Skip table of contents

Get the list of intercom logs

Get the list of intercom logs

GET /api/admin/v1/intercoms/{intercom}/logs

Parameters

int per_page, Number of elements in one pagination page.


int page, Pagination page number

200 OK

Successful response

JSON
{
    "data": [
        {
            "device_id": "017f4d15-6dd8-48b6-968e-b0f23740c517",
            "date_time": "2022-06-23T07:53:35.29+00:00",
            "context": "intercom",
            "event_code": 0,
            "data": {
                "action": "cam_light",
                "state": "on"
            }
        },
        {
            "device_id": "017f4d15-6dd8-48b6-968e-b0f23740c517",
            "date_time": "2022-06-23T07:53:22.11+00:00",
            "context": "intercom",
            "event_code": 0,
            "data": {
                "action": "cam_light",
                "state": "off"
            }
        },
        {
            "device_id": "017f4d15-6dd8-48b6-968e-b0f23740c517",
            "date_time": "2022-06-23T07:52:46.31+00:00",
            "context": "intercom",
            "event_code": 0,
            "data": {
                "action": "cam_light",
                "state": "on"
            }
        },
        {
            "device_id": "017f4d15-6dd8-48b6-968e-b0f23740c517",
            "date_time": "2022-06-23T07:52:27+00:00",
            "context": "intercom",
            "event_code": 0,
            "data": {
                "action": "cam_light",
                "state": "off"
            }
        },
        {
            "device_id": "017f4d15-6dd8-48b6-968e-b0f23740c517",
            "date_time": "2022-06-23T07:51:54.02+00:00",
            "context": "intercom",
            "event_code": 0,
            "data": {
                "action": "cam_light",
                "state": "on"
            }
        },
        {
            "device_id": "017f4d15-6dd8-48b6-968e-b0f23740c517",
            "date_time": "2022-06-23T07:51:47.42+00:00",
            "context": "intercom",
            "event_code": 0,
            "data": {
                "action": "cam_light",
                "state": "off"
            }
        },
        {
            "device_id": "017f4d15-6dd8-48b6-968e-b0f23740c517",
            "date_time": "2022-06-23T07:49:31.27+00:00",
            "context": "intercom",
            "event_code": 0,
            "data": {
                "action": "cam_light",
                "state": "on"
            }
        },
        {
            "device_id": "017f4d15-6dd8-48b6-968e-b0f23740c517",
            "date_time": "2022-06-23T07:48:55.46+00:00",
            "context": "intercom",
            "event_code": 0,
            "data": {
                "action": "cam_light",
                "state": "off"
            }
        },
        {
            "device_id": "017f4d15-6dd8-48b6-968e-b0f23740c517",
            "date_time": "2022-06-23T07:37:23.92+00:00",
            "context": "intercom",
            "event_code": 0,
            "data": {
                "action": "cam_light",
                "state": "on"
            }
        },
        {
            "device_id": "017f4d15-6dd8-48b6-968e-b0f23740c517",
            "date_time": "2022-06-23T07:37:18.26+00:00",
            "context": "intercom",
            "event_code": 0,
            "data": {
                "action": "cam_light",
                "state": "off"
            }
        },
        {
            "device_id": "017f4d15-6dd8-48b6-968e-b0f23740c517",
            "date_time": "2022-06-23T05:13:02.62+00:00",
            "context": "intercom",
            "event_code": 0,
            "data": {
                "action": "cam_light",
                "state": "on"
            }
        },
        {
            "device_id": "017f4d15-6dd8-48b6-968e-b0f23740c517",
            "date_time": "2022-06-23T05:11:43.22+00:00",
            "context": "intercom",
            "event_code": 0,
            "data": {
                "action": "cam_light",
                "state": "off"
            }
        },
        {
            "device_id": "017f4d15-6dd8-48b6-968e-b0f23740c517",
            "date_time": "2022-06-23T05:11:14.29+00:00",
            "context": "intercom",
            "event_code": 0,
            "data": {
                "action": "cam_light",
                "state": "on"
            }
        },
        {
            "device_id": "017f4d15-6dd8-48b6-968e-b0f23740c517",
            "date_time": "2022-06-23T05:10:26.72+00:00",
            "context": "intercom",
            "event_code": 0,
            "data": {
                "action": "cam_light",
                "state": "off"
            }
        },
        {
            "device_id": "017f4d15-6dd8-48b6-968e-b0f23740c517",
            "date_time": "2022-06-23T05:09:02.87+00:00",
            "context": "intercom",
            "event_code": 0,
            "data": {
                "action": "cam_light",
                "state": "on"
            }
        },
        {
            "device_id": "017f4d15-6dd8-48b6-968e-b0f23740c517",
            "date_time": "2022-06-23T05:07:23.49+00:00",
            "context": "intercom",
            "event_code": 0,
            "data": {
                "action": "cam_light",
                "state": "off"
            }
        },
        {
            "device_id": "017f4d15-6dd8-48b6-968e-b0f23740c517",
            "date_time": "2022-06-23T05:07:12.18+00:00",
            "context": "intercom",
            "event_code": 0,
            "data": {
                "action": "cam_light",
                "state": "on"
            }
        },
        {
            "device_id": "017f4d15-6dd8-48b6-968e-b0f23740c517",
            "date_time": "2022-06-23T04:50:00.23+00:00",
            "context": "intercom",
            "event_code": 0,
            "data": {
                "action": "cam_light",
                "state": "off"
            }
        },
        {
            "device_id": "017f4d15-6dd8-48b6-968e-b0f23740c517",
            "date_time": "2022-06-23T04:49:07.95+00:00",
            "context": "intercom",
            "event_code": 0,
            "data": {
                "action": "cam_light",
                "state": "on"
            }
        },
        {
            "device_id": "017f4d15-6dd8-48b6-968e-b0f23740c517",
            "date_time": "2022-06-23T04:47:13.96+00:00",
            "context": "intercom",
            "event_code": 0,
            "data": {
                "action": "cam_light",
                "state": "off"
            }
        },
        {
            "device_id": "017f4d15-6dd8-48b6-968e-b0f23740c517",
            "date_time": "2022-06-23T04:45:47.76+00:00",
            "context": "intercom",
            "event_code": 0,
            "data": {
                "action": "cam_light",
                "state": "on"
            }
        },
        {
            "device_id": "017f4d15-6dd8-48b6-968e-b0f23740c517",
            "date_time": "2022-06-23T04:45:11.02+00:00",
            "context": "intercom",
            "event_code": 0,
            "data": {
                "action": "cam_light",
                "state": "off"
            }
        },
        {
            "device_id": "017f4d15-6dd8-48b6-968e-b0f23740c517",
            "date_time": "2022-06-23T04:44:59.71+00:00",
            "context": "intercom",
            "event_code": 0,
            "data": {
                "action": "cam_light",
                "state": "on"
            }
        },
        {
            "device_id": "017f4d15-6dd8-48b6-968e-b0f23740c517",
            "date_time": "2022-06-23T04:44:44.17+00:00",
            "context": "intercom",
            "event_code": 0,
            "data": {
                "action": "cam_light",
                "state": "off"
            }
        },
        {
            "device_id": "017f4d15-6dd8-48b6-968e-b0f23740c517",
            "date_time": "2022-06-23T04:44:32.86+00:00",
            "context": "intercom",
            "event_code": 0,
            "data": {
                "action": "cam_light",
                "state": "on"
            }
        }
    ],
    "links": {
        "first": "/?page=1",
        "last": "/?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "links": [
            {
                "url": null,
                "label": "pagination.previous",
                "active": false
            },
            {
                "url": "/?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "pagination.next",
                "active": false
            }
        ],
        "path": "/",
        "per_page": 25,
        "to": 25,
        "total": 25
    }
}

401 Unauthorized

Authorization token not sent or not valid

cURL
BASH
curl -k --request POST \
	--url 'https://your-domain/api/admin/v1/intercoms/{intercom}/logs' \
	--header 'Content-Type: application/json' \
	--header 'Accept: application/json' \
	--data '{
    "per_page": 0,
    "page": 0
}'
PHP
PHP
$data = array (
  'per_page' => 0,
  'page' => 0,
);
$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/intercoms/{intercom}/logs', false, $context);
JavaScript errors detected

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

If this problem persists, please contact our support.