Skip to main content

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:

TypeDescription
DOOR_OPENThe lock's monitor shows the door is open
DOOR_CLOSEThe lock's monitor shows the door is closed
DOOR_UNLOCKThe lock has changed to the unlock stated
DOOR_LOCKThe lock has changed to the locked state
OWNER_ASSIGNEDThe lock's owner has been updated
DEVICE_CONNECTEDLock has connected to Sentry Interactive platform
DEVICE_DISCONNECTEDLock has disconnected from Sentry Interactive platform
LOCK_SHAREDThe lock's access has been shared to a new user
LOCK_REVOKEDAccess to the lock has been revoked for the specified user
USER_PROMOTEDA user was promoted to an administrator
USER_DEMOTEDAn administrator was demoted to a user
SETTING_CHANGEDA lock setting has been changed
TILE_ASSOCIATEDA tile has been associated with a device
TILE_DISASSOCIATEDA tile has been dissociated from a device
DEVICE_DECOMMISSIONEDA device has been decommissioned

Example

CURL
curl 'https://api.doordeck.com/device/00000000-0000-0000-0000-000000000000/log' \
-H "Authorization: Bearer TOKEN"
Remember
  • Replace TOKEN with your access token.
  • Replace 00000000-0000-0000-0000-000000000000 with the lock's ID.