Get Lock Audit Trail (v1)
This endpoint retrieves all log events associated with a particular lock.
HTTP Request
GET https://api.doordeck.com/device/LOCK_ID/log
Event Types
The call returns an enum of event types:
| Type | Description |
|---|---|
| DOOR_OPEN | The lock's monitor shows the door is open |
| DOOR_CLOSE | The lock's monitor shows the door is closed |
| DOOR_UNLOCK | The lock has changed to the unlock stated |
| DOOR_LOCK | The lock has changed to the locked state |
| OWNER_ASSIGNED | The lock's owner has been updated |
| DEVICE_CONNECTED | Lock has connected to Sentry Interactive platform |
| DEVICE_DISCONNECTED | Lock has disconnected from Sentry Interactive platform |
| LOCK_SHARED | The lock's access has been shared to a new user |
| LOCK_REVOKED | Access to the lock has been revoked for the specified user |
| USER_PROMOTED | A user was promoted to an administrator |
| USER_DEMOTED | An administrator was demoted to a user |
| SETTING_CHANGED | A lock setting has been changed |
| TILE_ASSOCIATED | A tile has been associated with a device |
| TILE_DISASSOCIATED | A tile has been dissociated from a device |
| DEVICE_DECOMMISSIONED | A device has been decommissioned |
Example
- Request
- Response
CURL
curl 'https://api.doordeck.com/device/00000000-0000-0000-0000-000000000000/log' \
-H "Authorization: Bearer TOKEN"
Remember
- Replace
TOKENwith your access token. - Replace
00000000-0000-0000-0000-000000000000with the lock's ID.
JSON
[
{
"timestamp":1473061669.000000000,
"type":"DOOR_LOCK",
"user":null,
"message":"Door locked"
},
{
"timestamp":1473061664.000000000,
"type":"DOOR_UNLOCK",
"user":null,
"message":"Door unlocked"
}
]