---
title: "Get active lock session"
method: GET
path: "/lkbx/session/current"
tags: ["Lock Sessions"]
---

# Get active lock session

`GET /lkbx/session/current`

Returns the currently active lock session, including segment history. 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.

## Query parameters

- `targetUserId` integer

## Response `200`

Active lock session or null

- ActiveLockSessionResponse
  - `ok` true, required
  - `data` LockSessionDetail, required
    - `id` integer — Session ID
    - `bubbleId` string — Unique public identifier
    - `publicId` string — Public session ID
    - `ownerId` integer — Owner user ID
    - `name` string — Session name
    - `lockState` 'pending' | 'locked' | 'completed' | 'abandoned' | 'break' — Current lock state
    - `duration` integer — Lock duration in seconds
    - `startDate` string, date-time, nullable — Session start time
    - `endDate` string, date-time, nullable — Session end time
    - `isActive` boolean — Whether session is active
    - `createdAt` string, date-time — Creation timestamp
    - `keyholderIds` integer[] — 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.
    - `LockSegment` LockSegment[]
      - `id` integer
      - `type` string — Segment type (start, locked, break, unlocked)
      - `createdAt` string, date-time
      - `isLocked` boolean — Lock state during segment

## Other responses

- `400` — Invalid targetUserId
- `401` — Authentication required or token invalid
- `403` — Target user not accessible
- `404` — User not found

---

[API](https://skmtc.net/researchanddesire/apis/research-and-desire-api.md) · [All operations](https://skmtc.net/researchanddesire/apis/research-and-desire-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/researchanddesire/research-and-desire-api/versions/9c6dc82bb579/schema)
