Skip to main content
Skip table of contents

Get the list of intercoms in a group

Get the list of intercoms in a group

GET /api/admin/v1/intercoms/groups/{group}

Parameters

int group, Unique group identifier


int per_page, Number of elements in one pagination page.


int page, Pagination page number


string vendor, Filtering by model.


string status, Filtering by status.


date from, Start of time interval


date to, End of time interval


string department_type, Filter by input type.


string search, Search by uuid, title, address, mac


string sort, Field by which to sort reactions


string dir, In which direction to sort.

200 OK

Successful response

JSON
[
    {
        "id": 364,
        "title": "intercom 0",
        "is_online": true,
        "group_id": 145,
        "camera_id": 831,
        "flat_from": 1,
        "flat_to": 50,
        "department": 1,
        "uuid": "e7a06b0d-512b-4d10-8866-11d277fa7f0a",
        "created_at": "2022-05-27T11:26:59.000000Z",
        "updated_at": "2022-06-21T11:18:44.000000Z"
    },
    {
        "id": 366,
        "title": "intercom 1 (Case)",
        "is_online": true,
        "group_id": 145,
        "camera_id": 832,
        "flat_from": 1,
        "flat_to": 50,
        "department": 3,
        "uuid": "701cb632-e0c6-463d-9599-b0ba8945492d",
        "created_at": "2022-05-27T11:26:59.000000Z",
        "updated_at": "2022-06-23T09:50:37.000000Z"
    },
    {
        "id": 370,
        "title": "intercom 2 (panel)",
        "is_online": true,
        "group_id": 145,
        "camera_id": 833,
        "flat_from": 1,
        "flat_to": 50,
        "department": 2,
        "uuid": "e276308c-eed3-4376-98e6-6702debc19ec",
        "created_at": "2022-05-27T11:26:59.000000Z",
        "updated_at": "2022-06-23T10:11:24.000000Z"
    },
    {
        "id": 369,
        "title": "intercom 6",
        "is_online": false,
        "group_id": 145,
        "camera_id": 836,
        "flat_from": 1,
        "flat_to": 50,
        "department": 6,
        "uuid": "7b23d697-04db-4d00-ab88-fae8846bf9af",
        "created_at": "2022-05-27T11:26:59.000000Z",
        "updated_at": "2022-06-22T15:00:13.000000Z"
    },
    {
        "id": 368,
        "title": "intercom 7",
        "is_online": true,
        "group_id": 145,
        "camera_id": 837,
        "flat_from": 1,
        "flat_to": 50,
        "department": 7,
        "uuid": "2d68b836-6f27-4650-8dae-9e80ff9bd26f",
        "created_at": "2022-05-27T11:26:59.000000Z",
        "updated_at": "2022-06-22T15:01:06.000000Z"
    },
    {
        "id": 365,
        "title": "Intercom",
        "is_online": false,
        "group_id": 145,
        "camera_id": 835,
        "flat_from": 1,
        "flat_to": 50,
        "department": 4,
        "uuid": "272cc71e-6b7f-44b6-93b2-2d5ce551e482",
        "created_at": "2022-05-27T11:26:59.000000Z",
        "updated_at": "2022-06-22T13:13:39.000000Z"
    }
]

401 Unauthorized

Authorization token not sent or not valid

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

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

If this problem persists, please contact our support.