26.09 26.06 26.05 25.12
26.09 26.06 26.05 25.12 Russian English

Get access point information

Get access point information

GET  /api/v1/billing/access-points/{access_point}

Returns the access point with its linked intercoms (intercoms) and BLE controllers (openy_controllers).

string access_point  required , (path) Access point UUID.

200  OK

Successful response

JSON
{
    "uuid": "00000000-0000-0000-0000-000000000001",
    "name": "Access Point | ab3Xz",
    "type": "universal_zone",
    "created_at": "2024-01-01T00:00:00.000000Z",
    "updated_at": "2024-01-01T00:00:00.000000Z",
    "intercoms": [
        {
            "id": 10,
            "uuid": "00000000-0000-0000-0000-000000000002",
            "name": "Main entrance intercom",
            "pivot": {
                "access_point_uuid": "00000000-0000-0000-0000-000000000001",
                "access_pointable_id": "00000000-0000-0000-0000-000000000002",
                "created_at": "2024-01-01T00:00:00.000000Z",
                "updated_at": "2024-01-01T00:00:00.000000Z"
            }
        }
    ],
    "openy_controllers": [
        {
            "uuid": "00000000-0000-0000-0000-000000000003",
            "title": "OPENYLOCK v.3 | k7Qz2",
            "model": "OPENYLOCK v.3",
            "sid": "EFGH5678",
            "pid": "ABCD1234",
            "master": "AABBCCDDEEFF00",
            "online_status": "online",
            "deleted_by": null,
            "deleted_at": null,
            "created_at": "2024-01-01T00:00:00.000000Z",
            "updated_at": "2024-01-01T00:00:00.000000Z",
            "pivot": {
                "access_point_uuid": "00000000-0000-0000-0000-000000000001",
                "access_pointable_id": "00000000-0000-0000-0000-000000000003",
                "created_at": "2024-01-01T00:00:00.000000Z",
                "updated_at": "2024-01-01T00:00:00.000000Z"
            }
        }
    ]
}

404  Not Found

Access point not found

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