Skip to main content

Get Lock Audit Trail (v2)

This endpoint retrieves all log events associated with a particular lock, it includes additional details over v1.

HTTP Request

GET https://api.doordeck.com/device/LOCK_ID/log?start=0000&end=0000

Request Headers

HeaderRequiredDescription
Accepttrueapplication/vnd.doordeck.api-v2+json

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?start=0000&end=0000' \
-H "Accept: application/vnd.doordeck.api-v2+json" \
-H "Authorization: Bearer TOKEN"
Remember
  • Replace TOKEN with your access token.
  • Replace 00000000-0000-0000-0000-000000000000 with the lock's ID.
  • Replace start=0000 & end=0000 with Epoch date range, e.g. start=1593558000&end=1610495999