26.09 26.06 26.05 25.12
26.09 26.06 26.05 25.12 Russian English

List BLE controller virtual keys

List BLE controller virtual keys

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

Returns paginated BLE controller virtual (user) keys in ascending order of id.

A virtual key grants a specific user access to the controller through the mobile application, unlike physical BLE keys (see List controller BLE keys). A user can have at most one virtual key per controller. The key format is described in Get a virtual key by ID.

Method parameters

string ble_controller  required , BLE controller UUID (in URL)


string type, Filter by key type: `permanent` or `temporary`


string login, Filter by key owner's login (exact match)


int user_id, Filter by key owner ID


int per_page, Number of items per page (default: 25; range: 1–100)


int page, Page number (starting at 1)

200  OK

Successful response

JSON
{
    "data": [
        {
            "id": 15,
            "ble_device_id": "00000000-0000-0000-0000-000000000001",
            "user": {
                "id": 42,
                "login": "170300101",
                "name": "Ivan Petrov"
            },
            "type": "temporary",
            "valid_from": "2026-01-15T10:00:00.000000Z",
            "valid_till": "2026-02-15T10:00:00.000000Z",
            "is_active": true,
            "is_valid_now": true,
            "created_by": {
                "id": 2,
                "login": "billing"
            },
            "created_at": "2026-01-15T10:00:00.000000Z",
            "updated_at": "2026-01-15T10:00:00.000000Z"
        }
    ],
    "links": {
        "first": "...",
        "last": "...",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "path": "...",
        "per_page": 25,
        "to": 1,
        "total": 1
    }
}

404  Not Found

BLE controller not found

JSON
{
    "error": "resource not found"
}

422  Unprocessable Entity

Returns a JSON error object. For more information, see General information > Validation.

JSON
{
    "message": "No informative message is provided here",
    "errors": {
        "any_key": [
            "The reason for the error is described here"
        ]
    }
}
cURL
Bash
curl -k --request GET \
	--url 'https://your-domain/api/v1/billing/ble-controllers/{ble_controller}/virtual-keys' \
	--header 'Content-Type: application/json' \
	--header 'Accept: application/json' \
	--data '{
    "ble_controller": "string",
    "type": "string",
    "login": "string",
    "user_id": 0,
    "per_page": 0,
    "page": 0
}'
PHP
PHP
$data = array (
  'ble_controller' => 'string',
  'type' => 'string',
  'login' => 'string',
  'user_id' => 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/v1/billing/ble-controllers/{ble_controller}/virtual-keys', false, $context);