BizKitHub
DocsAPI ReferenceIo T/bff/iot-lock/lock-add
postIo TAdmin BFF

/bff/iot-lock/lock-add

Registers a new TTLock smart lock for the authenticated organisation. The lock ID must be obtained from the TTLock API or mobile app. After adding, the lock status is fetched from the TTLock API to populate initial metadata.

IoTpostBffIot-lockLock-add

Parameters

JSON body

Request body

application/json
lockIdstringRequired

TTLock lock ID to add (from the TTLock API/app).

Example12345

Response schema

1 status code documented

200Success
successbooleanRequired

Always true on successful registration.

lockIdnumberRequired

The TTLock lock ID that was registered.

Response example

application/json
{
  "success": false,
  "lockId": 0
}

Request example

POST /bff/iot-lock/lock-add

post
curl -X POST "https://api.bizkithub.com/bff/iot-lock/lock-add" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
  "lockId": "12345"
}'

Need an API key?

All BizKitHub public API endpoints require authentication via API key.

Get API Key