---
title: "File Locks Endpoint"
method: GET
path: "/api/v1/dashboard/file_locks"
---

# File Locks Endpoint

`GET /api/v1/dashboard/file_locks`

Return active file locks grouped by agent for the dashboard.

Reads the persisted lock state from ``.sdd/runtime/file_locks.json`` and
returns it in a dashboard-friendly format with both a flat list and an
agent-grouped view.

Returns:
    JSON with ``all_locks`` (flat list sorted by path), ``locks_by_agent``
    (dict keyed by agent_id with files list + task info + elapsed_s),
    ``count`` (total lock count), and ``ts`` (generation timestamp).

## Response `200`

Successful Response

- unknown

## Changes

- **2026-07-26** `2a1299ef19fa` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/sipyourdrink-ltd/apis/bernstein-task-server/changes/api/v1/dashboard/file_locks/get.md)

---

[API](https://skmtc.dev/sipyourdrink-ltd/apis/bernstein-task-server.md) · [All operations](https://skmtc.dev/sipyourdrink-ltd/apis/bernstein-task-server/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/sipyourdrink-ltd/bernstein-task-server/revisions/7f4871ff054a/schema)
