Locking and Unlocking
Learn how to lock and unlock a smart lock, and confirm the action's success.
Overview
Before You Begin: Confirm Capabilities
seam.devices.get(device_id="11111111-1111-1111-1111-444444444444")Device(
device_id='11111111-1111-1111-1111-444444444444',
can_remotely_lock=True, // You can use seam.locks.lock_door() on this device.
can_remotely_unlock=True, // You can use seam.locks.unlock_door() on this device.
...
)# Use GET or POST.
curl -X 'GET' \
'https://connect.getseam.com/devices/get' \
-H 'accept: application/json' \
-H "Authorization: Bearer ${API_KEY}" \
-H 'Content-Type: application/json' \
-d '{
"device_id": "11111111-1111-1111-1111-444444444444"
}'{
"lock": {
"device_id": "11111111-1111-1111-1111-444444444444",
"can_remotely_lock": true, // You can use /locks/lock_door on this device.
"can_remotely_unlock": true, // You can use /locks/unlock_door on this device.
...
},
"ok": true
}Locking a Door
Unlocking a Door
Verifying the Success of a Lock or Unlock Action
1. Execute a Lock request (or other action)
2. Poll the Action Attempt to Verify the Success of the Action
Checking the Locked Status of a Lock
Lock and Unlock Events
Last updated
Was this helpful?

