Lock Sessions

Get active lock session

Report an API docs issue

Returns the newest active lock session, including segment history. If multiple active rows exist, reads select the latest createdAt, breaking ties by highest ID; no session is modified or ended. Returns null in the data field if no session is active. By default reads your own session; pass targetUserId to read the active session of a user you have access to — e.g. a keyholder checking the lockee's lock.

GET
/
lkbx
/
session
/
current

Query Parameters

targetUserIdintegerquery

Read another user's active session instead of your own. The target must be a user you have access to; otherwise the request fails with 403.

Response

200application/json

Active lock session or null

400application/json

Invalid targetUserId

401
403application/json

Target user not accessible

404application/json

User not found