Get latest lock session
Returns the most recent lock session with all segment history. Returns null if no sessions exist.
Authorizations
AuthorizationstringheaderrequiredAPI tokens can be created in the Dashboard settings. Requires an Ultra subscription.
Response
200application/jsonLatest session or null
Latest session or null
okbooleanrequireddatavalueShow child attributes
idintegerSession ID
bubbleIdstringUnique public identifier
publicIdstringPublic session ID
ownerIdintegerOwner user ID
namestringSession name
lockStateenumCurrent lock state
Allowed values: pendinglockedcompletedabandonedbreak
durationintegerLock duration in seconds
startDatestring<date-time> | nullSession start time
endDatestring<date-time> | nullSession end time
isActivebooleanWhether session is active
createdAtstring<date-time>Creation timestamp
keyholderIdsinteger[]IDs of the users assigned as keyholders for this session. An empty array means a self-lock (no keyholder). Resolve IDs to usernames via the Users endpoints.
LockSegmentobject[]Show child attributes
idintegertypestringSegment type (start, locked, break, unlocked)
createdAtstring<date-time>isLockedbooleanLock state during segment
messagestringMessage when no sessions found
401application/jsonAuthentication required or token invalid
Authentication required or token invalid
okbooleanrequirederrorstringrequired500application/jsonInternal server error
Internal server error
okbooleanrequirederrorstringrequired