26.09 26.06 26.05 25.12
26.09 26.06 26.05 25.12 Russian English

List controller BLE keys

List controller BLE keys

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

Returns an array of BLE keys linked to the controller. Each item contains association data (pivot).

Method parameters

string ble_controller  required , (path) BLE controller UUID.

200  OK

Successful response – array of keys linked to the controller

JSON
[
    {
        "uuid": "00000000-0000-0000-0000-000000000010",
        "key": "123456789012",
        "created_at": "2024-01-01T00:00:00.000000Z",
        "updated_at": "2024-01-01T00:00:00.000000Z",
        "pivot": {
            "openy_lock_uuid": "00000000-0000-0000-0000-000000000001",
            "openy_ble_key_uuid": "00000000-0000-0000-0000-000000000010"
        }
    }
]

404  Not Found

BLE controller not found

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