BizKitHub
getIo TVerejné API v1

/api/v1/lock/list

Returns a simple list of all non-deleted TTLock smart locks for the organisation. Designed for mobile app usage — returns only essential fields needed for lock selection and status display.

IoTgetApiV1LockList

Parametre

1 v query

Parametre v query

· 1
apiKeystringPovinné

Your BizKitHub API key (passed as GET parameter).

Key format: A 32-character string matching: ^(PROD|DEV_|ROOT)[A-Za-z0-9]{28}$
Prefixes: PROD (production key), DEV_ (individual developer), ROOT (system key with no limits). Learn more

PríkladPRODPGrFxpGEtrOZfuWhnoJohUYBXuOE

Schéma odpovede

1 zdokumentovaný stavový kód

200Úspech
itemsobject[]Povinné
Každá položka poľa:
lockIdstringPovinné

TTLock lock ID (external identifier).

aliasstringPovinné

Display name of the lock.

electricQuantitynumberVoliteľné

Battery level percentage (0–100).

hasGatewaybooleanPovinné

Whether the lock is connected to a Wi-Fi gateway.

activebooleanPovinné

Whether the lock is active in the system.

Ukážka odpovede

application/json
{
  "items": [
    {
      "lockId": "example_lockId",
      "alias": "example_alias",
      "electricQuantity": 0,
      "hasGateway": false,
      "active": false
    }
  ]
}

Ukážka požiadavky

GET /api/v1/lock/list

get
curl -X GET "https://api.bizkithub.com/api/v1/lock/list?apiKey=PRODPGrFxpGEtrOZfuWhnoJohUYBXuOE" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY"

Potrebujete API kľúč?

Všetky verejné endpointy BizKitHub API sa overujú API kľúčom.

Získať API kľúč