LogV1

Retrieve activity log for provided lock

get/log/v1/lock/{lock_id}

Request

  • Base URL: https://api.danalock.com
  • URL: https://api.danalock.com/log/v1/lock/{lock_id}
  • Auth: OAuth 2 (authorization code, authorization URL /oauth2/authorize, token URL /oauth2/token)

Path parameters

lock_idstring required

Query parameters

pagenumber

Retrieve this page based on the given page size.

perpagenumber

Number of entries to retrieve per page(default 1000)

Headers

X-Assume-Userstring

Assume the identity of the user in another domain

Response

List of logs

timestampstring
lockstring
locknamestring
userstring
usernamestring
operationstring

Example response

[
  {
    "timestamp": "1987-12-10T13:35:45+00:00",
    "lock": "lock-cf492ac58eb1",
    "lockname": "example lock",
    "user": "user-55e4779e6726",
    "username": "example@testuser.com",
    "operation": "unlocked"
  }
]

Changes

No recorded changes to this operation across all 1 revision of this API.