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
Query Parameters
targetUserIdintegerqueryRead 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/jsonActive lock session or null
200application/json
Active lock session or null
400application/jsonInvalid targetUserId
400application/json
Invalid targetUserId
401
401
403application/jsonTarget user not accessible
403application/json
Target user not accessible
404application/jsonUser not found
404application/json
User not found