**Source URL:** https://limited.veevavault.dev/quality/vault-api/api-reference/23.1/documents/document-locks/retrieve-document-lock.md

# Retrieve Document Lock



<Endpoint path="/api/{version}/objects/documents/{doc_id}/lock" method="GET"></Endpoint>

## Headers {#headers}

<FieldTable>
| Name | Description |
| --- | --- |
| `Accept` | `application/json` (default) or `application/xml` |
</FieldTable>

## URI Path Parameters {#uri-path-parameters}

<FieldTable>
| Name | Description |
| --- | --- |
| `{doc_id}` | The document `id` field value. |
</FieldTable>

## Request {#request}

<CodeExample title="">
```
curl -X GET -H "Authorization: {SESSION_ID}" \
https://myvault.veevavault.com/api/v15.0/objects/documents/534/lock

```
</CodeExample>

## Response {#response}

<CodeExample title="">
```
{
    "responseStatus": "SUCCESS",
    "lock": {
        "locked_by__v": 46916,
        "locked_date__v": "2015-03-20T23:47:11.000Z"
    }
}

```
</CodeExample>

## Response Details {#response-details}

If the document is locked (checked out), the response includes the user `id` field value of the person who checked it out and the date and time. If the document is not locked, the lock fields shown above will not be returned.



---

**Previous:** [Create Document Lock](/quality/vault-api/api-reference/23.1/documents/document-locks/create-document-lock)  
**Next:** [Delete Document Lock](/quality/vault-api/api-reference/23.1/documents/document-locks/delete-document-lock)