---
title: "Gets template lock information."
method: GET
path: "/v2.1/accounts/{accountId}/templates/{templateId}/lock"
tags: ["TemplateLocks"]
---

# Gets template lock information.

`GET /v2.1/accounts/{accountId}/templates/{templateId}/lock`

Retrieves general information about a template lock.

The user requesting the information must be the same user
who locked the template.

You can use this method to recover the lock information,
including the `lockToken`,
for a locked template.
The `X-DocuSign-Edit` header is included in the response.

See
[TemplateLocks: create](/docs/esign-rest-api/reference/templates/templatelocks/create/)
for a description of the `X-DocuSign-Edit` header.

### Related topics

- [Common API Tasks: Locking and unlocking envelopes](https://www.docusign.com/blog/dsdev-common-api-tasks-locking-and-unlocking-envelopes)

## Path parameters

- `accountId` string, required
- `templateId` string, required

## Response `200`

Successful response.

## Other responses

- `400` — Error encountered.

---

[API](https://skmtc.net/docusign/apis/docusign-esignature-rest-api.md) · [All operations](https://skmtc.net/docusign/apis/docusign-esignature-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/docusign/docusign-esignature-rest-api/revisions/77f1998c313d/schema)
