26.09 26.06 26.05 25.12
26.09 26.06 26.05 25.12 Russian English

Intercom capabilities (v2)

Intercom capabilities (v2)

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

Intercom control capabilities: the manufacturer's declaration for the panel model, without contacting the device. The response can be used to display only supported actions in an external system.

  • features is an object in the form {capability: true|false}, for example device_control (pulse door opening), door_hold_open and door_close (indefinite opening and closing), door_open_with_duration (timed opening), door_open_time, collecting_keys, sip_durations, dtmf (intercom settings fields), keys, temp_codes, flat_settings (apartment settings), panel_flat_settings (general apartment settings), reboot.

  • transports specifies which channels can be used to control the panel; transport specifies the currently used channel.

  • dtmf_relay_count specifies how many relays can be opened using a DTMF code.

  • max_flats is the maximum number of apartments for the panel model; null means the model has no limit.

  • flat_settings_spec specifies the settings fields accepted when updating an apartment: type, limits (min, max, step), group (group: access, sounds, resistances) and control (control: toggle, range, radio).

  • flat_attributes specifies the call line and number fields accepted when updating an apartment on this panel.

  • batch_settings_spec is the same as flat_settings_spec for general apartment settings; an empty object if the panel has none.

  • matrix_spec specifies the switch matrix parameters; null if the manufacturer does not provide one.

Method parameters

int intercom  required , Intercom ID (in the URL)

200  OK

Successful response

JSON
{
    "features": {
        "device_control": true,
        "door_hold_open": true,
        "door_close": true,
        "door_open_with_duration": true,
        "door_open_time": true,
        "collecting_keys": true,
        "keys": true,
        "temp_codes": true,
        "flat_settings": true,
        "panel_flat_settings": false,
        "sip_durations": true,
        "dtmf": true,
        "reboot": true
    },
    "transports": {
        "http": true,
        "mqtt": true
    },
    "transport": "http",
    "dtmf_relay_count": 1,
    "max_flats": null,
    "flat_settings_spec": {
        "keys_access_enabled": {
            "type": "boolean",
            "group": "access",
            "control": "toggle"
        },
        "codes_access_enabled": {
            "type": "boolean",
            "group": "access",
            "control": "toggle"
        }
    },
    "flat_attributes": [
        "is_smartphone_sip_line_available",
        "number"
    ],
    "batch_settings_spec": [],
    "matrix_spec": null
}

404  Not Found

Intercom not found

cURL
Bash
curl -k --request GET\
	--url 'https://your-domain/api/v2/billing/intercoms/{intercom}/capabilities' \
	--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}/capabilities', false, $context);