---
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

---

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