26.09 26.06 26.05 25.12
26.09 26.06 26.05 25.12 Russian English

List access point keys

List access point BLE keys

GET  /api/v1/billing/access-points/{access_point}/ble-controllers/{ble_controller}/keys

Returns permanent BLE keys for all intercoms linked to the access point. A current access token (key_data) is generated for each key using master/pid of the specified BLE controller.

Method parameters

string access_point  required , (path) Access point UUID.


string ble_controller  required , (path) UUID of the BLE controller used to generate the token.

200  OK

Successful response – array of keys

JSON
[
    {
        "id": 1,
        "intercom_id": 10,
        "user_id": 42,
        "intercom_flat_id": null,
        "type": "ble",
        "key": null,
        "title": null,
        "key_data": "0102030405060708090a0b0c0d0e0f10",
        "valid_till": "2124-01-01T00:00:00.000000Z",
        "updated_at": "2024-01-01T00:00:00.000000Z",
        "created_at": "2024-01-01T00:00:00.000000Z"
    }
]

404  Not Found

Access point or BLE controller not found

cURL
Bash
curl -k --request GET \
	--url 'https://your-domain/api/v1/billing/access-points/{access_point}/ble-controllers/{ble_controller}/keys' \
	--header 'Content-Type: application/json' \
	--header 'Accept: application/json' \
	--data '{
    "access_point": "string",
    "ble_controller": "string"
}'
PHP
PHP
$data = array (
  'access_point' => 'string',
  'ble_controller' => '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/v1/billing/access-points/{access_point}/ble-controllers/{ble_controller}/keys', false, $context);