---
title: "Get state lock information"
method: GET
path: "/workspaces/{workspace_id}/state-lock"
tags: ["Terraform Remote Backend"]
---

# Get state lock information

`GET /workspaces/{workspace_id}/state-lock`

Returns the current lock information for a workspace, or null if no lock exists.

## Path parameters

- `workspace_id` string, required

## Response `200`

Lock information or null if no lock exists

- LockResponse, nullable
  - `lockId` string — Lock identifier in the format accountId/workspaceName
  - `workspaceId` string
  - `owner` string — Base64-encoded memberId of the lock owner
  - `createdAt` string, date-time

## Other responses

- `401` — Unauthorized
- `500` — Internal server error

---

[API](https://skmtc.net/firefly/apis/api-gateway.md) · [All operations](https://skmtc.net/firefly/apis/api-gateway/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/firefly/api-gateway/revisions/eea119b4113f/schema)
