---
title: "Read a project lock"
method: GET
path: "/locks/{key}"
tags: ["Locks"]
---

# Read a project lock

`GET /locks/{key}`

## Request

- Base URL: `https://api.volcano.dev`
- URL: `https://api.volcano.dev/locks/{key}`
- Auth: HTTP bearer

Reports whether the lock is currently held, when its lease expires, and the
holder's fencing token. `held` follows takeover eligibility rather than raw
expiry, so `held: false` means an acquire would succeed now. No lock token is
required, making this usable for monitoring and recovery.

## Path parameters

- `key` string, required

## Headers

- `X-Volcano-Request-Id` string, uuid, required

## Response `200`

Current lock state

- ProjectLockState
  - `held` boolean, required: Whether the lock is unavailable right now. False means an acquire would succeed. It remains true during the brief grace window after expiry.
  - `expires_at` string, date-time: Advisory lease expiry timestamp in UTC. Present only when held.
  - `fencing_token` integer: Current holder's fencing token. Present only when held.

## Other responses

- `400`: Invalid lock key
- `401`: Missing or invalid credentials
- `403`: A non-service credential was supplied or the service key lacks `locks.manage`
- `429`: Project lock request limit exceeded
- `503`: Lock service unavailable

## Changes

- **2026-09-19** `3a6f365f3f35`: 5 breaking, 10 info
  - the response's body type changed from no type to `object` for status `400`
  - the response's body type changed from no type to `object` for status `401`
  - the response's body type changed from no type to `object` for status `403`
  - the response's body type changed from no type to `object` for status `429`
  - …11 more
- **2026-08-27** `bb44e98aba2e`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/kong/apis/volcano-api/changes/locks/:key/get.md)

---

[API](https://skmtc.dev/kong/apis/volcano-api.md) - [All operations](https://skmtc.dev/kong/apis/volcano-api/llms.txt) - [OpenAPI document](https://skmtc.dev/kong/apis/volcano-api/revisions/84c4488f91e9?raw)
