---
title: "List active GraphQL query locks"
method: GET
path: "/dev-tools/gql-lock/locks"
tags: ["Dev Tools", "GraphQL Locks"]
---

# List active GraphQL query locks

`GET /dev-tools/gql-lock/locks`

## Request

- Base URL: `http://dev.theverge.com:3002/api`
- URL: `http://dev.theverge.com:3002/api/dev-tools/gql-lock/locks`
- Auth: none declared

Retrieves all currently active GraphQL query locks from Redis, including their TTL and lock reason

## Response `200`

Successfully retrieved locks list

- object
  - `data` LocksListResponse, required
    - `items` LockItem[], required
      - `key` string, required
      - `host` string, required
      - `id` string, required
      - `variableHash` string, nullable
      - `scope` 'persisted_query' | 'variable_hash', required
      - `value` object, nullable, required
        - `at` number, required
        - `reason` string, required
        - `trigger` string
      - `ttl` number, required
    - `totalCount` number, required

## Other responses

- `500`: Internal server error

---

[API](https://skmtc.dev/theverge/apis/the-verge-api-documentation.md) - [All operations](https://skmtc.dev/theverge/apis/the-verge-api-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/theverge/apis/the-verge-api-documentation/revisions/f44a9b8ebfc3?raw)
