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

# File Locks Endpoint

`GET /dashboard/file_locks`

## Request

- Base URL: `http://127.0.0.1:8052`
- URL: `http://127.0.0.1:8052/dashboard/file_locks`
- Auth: none declared

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

---

[API](https://skmtc.dev/bernstein/apis/bernstein-task-server.md) · [All operations](https://skmtc.dev/bernstein/apis/bernstein-task-server/llms.txt) · [OpenAPI document](https://skmtc.dev/bernstein/apis/bernstein-task-server/revisions/2a20a34ad2eb?raw)
