> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dfns.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Vault Lock

> Retrieves a vault lock by its ID.

#### Authentication

✅ Tenant User (`TenantUser`)\
✅ Organization User (`CustomerEmployee`)\
❌ End User (`EndUser`)\
✅ Service Account

#### Required Permissions

`Vaults:Read`: Always required.


## OpenAPI

````yaml /openapi.yaml get /vaults/{vaultId}/locks/{lockId}
openapi: 3.1.0
info:
  version: 2.0.449
  title: Dfns
servers:
  - url: https://api.dfns.io
    description: Default - Europe
  - url: https://api.uae.dfns.io
    description: UAE
  - url: https://api.dfns.ninja
    description: <Deprecated> Staging
security: []
paths:
  /vaults/{vaultId}/locks/{lockId}:
    get:
      tags:
        - Vaults
      summary: Get Vault Lock
      description: Retrieves a vault lock by its ID.
      operationId: getVaultLock
      parameters:
        - schema:
            type: string
            minLength: 1
            maxLength: 64
            pattern: ^vlt-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{14,16}$
            description: Vault id.
          required: true
          description: Vault id.
          name: vaultId
          in: path
        - schema:
            type: string
            minLength: 1
            maxLength: 64
            pattern: ^vlt-lck-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{14,16}$
            description: The lock to retrieve.
          required: true
          description: The lock to retrieve.
          name: lockId
          in: path
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VaultLock'
      security:
        - authenticationToken: []
components:
  schemas:
    VaultLock:
      type: object
      properties:
        id:
          type: string
          minLength: 1
          maxLength: 64
          pattern: ^vlt-lck-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{14,16}$
          description: Vault lock id.
          example: vlt-lck-0lf1e-8a8ag-2ak7vrvusrj3so0j
        vaultId:
          type: string
        network:
          type: string
        tid:
          type: string
        amount:
          type: string
        owner:
          type: string
          description: >-
            The user that created the lock. Only this user can update or delete
            it.
        externalId:
          type: string
        reason:
          type: string
          description: The reason or note the lock was created with.
        beneficiary:
          type: string
          description: >-
            The address the locked funds are sent to on transfer. Set at
            creation and inherited on update.
        transferId:
          type: string
          description: >-
            Set when the owner transferred the lock: the outgoing transfer
            sending `transferAmount` of the locked funds to the beneficiary. The
            funds stay locked until that transfer is confirmed, which deletes
            the lock. Cleared if the transfer fails, so the lock can be
            transferred again.
        transferAmount:
          type: string
          description: >-
            Set with `transferId`: the amount being sent to the beneficiary, in
            minimum denomination. The remainder of the locked amount returns to
            the available balance when the lock is deleted.
        replacesLockId:
          type: string
          minLength: 1
          maxLength: 64
          pattern: ^vlt-lck-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{14,16}$
          description: 'Set when this lock was created by an update: the lock it replaces.'
          example: vlt-lck-0lf1e-8a8ag-2ak7vrvusrj3so0j
        replacedByLockId:
          type: string
          minLength: 1
          maxLength: 64
          pattern: ^vlt-lck-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{14,16}$
          description: >-
            Set when this lock was released by an update: the lock that replaced
            it.
          example: vlt-lck-0lf1e-8a8ag-2ak7vrvusrj3so0j
        dateCreated:
          type: string
          format: date-time
        dateDeleted:
          type: string
          format: date-time
      required:
        - id
        - vaultId
        - network
        - tid
        - amount
        - owner
        - dateCreated
      additionalProperties: false
      description: >-
        Vault lock object: funds manually locked for off-chain settlement or
        escrow. The owner can release them back to the vault or transfer them to
        the beneficiary.
  securitySchemes:
    authenticationToken:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        **Bearer Token:** Used to authenticate API requests.

        More details how to generate the token: [Authentication
        flows](https://docs.dfns.co/api-reference/auth/login-flows)

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.