Returns detailed information about a specific lock session, including all segment history. Returns 404 if the session does not exist or belongs to a user you do not have access to.
Autorisations
AuthorizationstringheaderrequiredAPI tokens can be created in the Dashboard settings. Requires an Ultra subscription.
Paramètres de chemin
idintegerpathrequiredThe lock session ID
Required range: x ≥ 1
Example: 7
Réponse
200application/jsonLock session with segments
Lock session with segments
okbooleanrequireddatavaluerequiredShow child attributes
idintegerSession ID
bubbleIdstringUnique public identifier
publicIdstringPublic session ID
ownerIdintegerOwner user ID
namestringSession name
lockStateenumCurrent lock state
Allowed values: pendinglockedcompletedabandonedbreak
durationinteger | nullLock duration in seconds. `null` when the keyholder hid the timer and the caller is not a keyholder of this session.
startDatestring<date-time> | nullSession start time
endDatestring<date-time> | nullSession end time. `null` when the keyholder hid the timer and the caller is not a keyholder of this session.
isActivebooleanWhether session is active
isFrozenbooleanWhether the session clock is frozen, e.g. by Chaster. A frozen session's end date is stale.
isTimeDisplayedbooleanWhether the lockee may see the remaining time. When false, `endDate` and `duration` are `null` for callers who are not keyholders.
revealTimeBeforeUnlockinteger | nullSeconds before unlock at which a hidden timer becomes visible to the lockee on an active, unfrozen session. `null` when never revealed early.
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
400application/jsonInvalid request parameters
Invalid request parameters
okbooleanrequirederrorstringrequired401application/jsonAuthentication required or token invalid
Authentication required or token invalid
okbooleanrequirederrorstringrequired404application/jsonLock session not found, or the caller has no user record
Lock session not found, or the caller has no user record
okbooleanrequirederrorstringrequired