26.09 26.06 26.05 25.12
26.09 26.06 26.05 25.12 Russian English

View intercom (v2)

View an intercom (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 an intercom by the ID specified in the URL. Unlike v1, the intercom is identified in the path, and the response does not include the status.

GET  /api/v2/billing/intercoms/{intercom}

int intercom  required , Intercom ID (in the URL)

200  OK

Successful response

JSON
{
    "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
    }
}

404  Not Found

Intercom not found

cURL
Bash
curl -k --request GET \
	--url 'https://your-domain/api/v2/billing/intercoms/{intercom}' \
	--header 'Content-Type: application/json' \
	--header 'Accept: application/json' \
	--data '{
    "intercom": 0
}'
PHP
PHP
$data = array (
  'intercom' => 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/{intercom}', false, $context);