# Lấy trạng thái khóa của profile trình duyệt

Báo cho biết một profile trình duyệt hiện có đang bị thành viên khác trong nhóm chiếm giữ hay không.
- **Tác động**
: không có. Chỉ đọc. An toàn khi thử lại với thời gian chờ tăng dần có giới hạn.
- **Ngữ nghĩa**
: để có giá trị
`true`
 cần đủ tất cả các điều kiện — nhóm đã bật tính năng khóa bảo mật, khóa đang tồn tại, và người giữ khóa là một người khác chứ không phải bên gọi. Khóa được giữ theo từng thành viên và có thời hạn, nên nó có thể tự hết hiệu lực.

Endpoint: POST /env/lock/query
Version: 2026-09-05
Security: OpenApiBearer

## Security:

  - `OpenApiBearer` (unknown)
    http bearer JWT

## Request fields (application/json):

  - `envId` (string, required)
    Browser profile (environment) ID. Serialized as a decimal string to avoid JavaScript
precision loss on 64-bit integers.
    Example: 1800000000000001

## Response 200:

  - `200` (unknown)
    Thành công

## Response 200 fields (application/json):

  - `code` (integer, required)
    Return result code. `0` means success; other codes indicate exceptions.
    Example: 0

  - `msg` (string | null, required)
    Error message. Usually `null` on success.
    Example: null

  - `requestId` (string)
    Operation request ID. This field may be present when the request passes through the API gateway.
    Example: 1d4f3ea968664593860b94b35d4ebf5e

  - `data` (object, required)

  - `data.envId` (string)
    Browser profile (environment) ID. Serialized as a decimal string to avoid JavaScript
precision loss on 64-bit integers.
    Example: 1800000000000001

  - `data.locked` (boolean)
    Profile có đang bị thành viên khác khóa hay không.
    Example: false

