26.09 26.06 26.05 25.12
26.09 26.06 26.05 25.12 Russian English

List intercoms (v2)

List intercoms (v2)

With the release of request version v2, version v1 is being moved to legacy.
For new integrations, use the current v2.
Version v1 remains available to support existing integrations.

Returns intercoms in pages, sorted by ascending id. Filters are optional and can be combined. Intercoms use the same representation as in v1, but without the status.

GET  /api/v2/billing/intercoms

Method parameters

string mac, Intercom MAC address


string external_id, External intercom identifier


int flat, Apartment number: only intercoms connected to this apartment


int per_page, Number of records per page; default: 25


int page, Page number

200  OK

Successful response

JSON
{
    "data": [
        {
            "id": 123,
            "uuid": "0b8f5a52-6f0e-4a8e-9a3e-2f1d5c7b9e10",
            "external_id": "EXT_123",
            "department": "main",
            "title": "Entrance 1",
            "mac": "22:22:22:22:22:22",
            "model": "DKS20211",
            "serial_number": "SN123456",
            "flat_from": 1,
            "flat_to": 100,
            "source": "auto",
            "camera": {
                "id": 456,
                "external_id": null,
                "name": "Entrance 1",
                "is_user_owner": false,
                "is_need_replace": false,
                "latitude": null,
                "longitude": null,
                "is_visible_on_map": true,
                "is_intercom": true
            },
            "group": {
                "id": 10,
                "name": "Lenin St., 1",
                "external_id": "GRP_10",
                "has_items": true,
                "has_child": false
            }
        }
    ],
    "links": {
        "first": "https://your-domain/api/v2/billing/intercoms?page=1",
        "last": "https://your-domain/api/v2/billing/intercoms?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "path": "https://your-domain/api/v2/billing/intercoms",
        "per_page": 25,
        "to": 1,
        "total": 1
    }
}
cURL
Bash
curl -k --request GET \
	--url 'https://your-domain/api/v2/billing/intercoms' \
	--header 'Content-Type: application/json' \
	--header 'Accept: application/json' \
	--data '{
    "mac": "string",
    "external_id": "string",
    "flat": 0,
    "per_page": 0,
    "page": 0
}'
PHP
PHP
$data = array (
  'mac' => 'string',
  'external_id' => 'string',
  'flat' => 0,
  '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/v2/billing/intercoms', false, $context);