Every API here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for apis
7 MCP tools reach this
find_apisBrowse and filter every API in the catalog.
get_api_artifactsOne API's artifacts, grouped by type.
get_openapiThe primary OpenAPI for this API.
find_similar_apisAPIs that look like this one.
apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
resolveTurn a domain, URL or GitHub org into the provider it belongs to.
find_cohortsEvery scored population of providers in the catalog.
All 92 tools →
Call it yourself
curl for this page
This API
curl "https://apis.io/api/v1/apis/docusign:docusign-templatelocks-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
version: v2.1
title: Docusign eSignature REST Template Locks API
description: The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign.
termsOfService: https://www.docusign.com/company/terms-and-conditions/web
contact:
name: Docusign Developer Center
url: https://developers.docusign.com/
email: devcenter@docusign.com
servers:
- url: https://www.docusign.net/restapi
tags:
- name: TemplateLocks
description: 'The TemplateLocks resource provides methods that allow you to manage locks on an template.
You can lock the template, and set the time until the lock expires, to prevent users from accessing and changing the template.
Users must have envelope locking capability enabled to use these functions.'
paths:
/v2.1/accounts/{accountId}/templates/{templateId}/lock:
parameters: []
get:
tags:
- TemplateLocks
summary: Gets template lock information
description: '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
for a description of the `X-DocuSign-Edit` header.
### Related topics
- Common API Tasks: Locking and unlocking envelopes'
operationId: Lock_GetTemplateLock
parameters:
- name: accountId
in: path
description: The external account number (int) or account ID GUID.
required: true
schema:
type: string
- name: templateId
in: path
description: The ID of the template.
required: true
schema:
type: string
responses:
'200':
description: Successful response.
content:
application/json:
schema:
$ref: '#/components/schemas/lockInformation'
'400':
description: Error encountered.
content:
application/json:
schema:
$ref: '#/components/schemas/errorDetails'
deprecated: false
x-ds-methodname: getLock
x-ds-method: get
x-ds-service: Templates
x-ds-in-sdk: true
put:
tags:
- TemplateLocks
summary: Updates a template lock
description: 'Updates the lock information for a locked template.
You must include the `X-DocuSign-Edit` header
as described in
TemplateLocks: create.
Use this method to change the duration
of the lock (`lockDurationInSeconds`)
or the `lockedByApp` string.
The request body is a full `lockRequest` object,
but you only need to specify the
properties that you are updating. For example:
```
{
"lockDurationInSeconds": "3600",
"lockedByApp": "My Application"
}
```'
operationId: Lock_PutTemplateLock
parameters:
- name: accountId
in: path
description: The external account number (int) or account ID GUID.
required: true
schema:
type: string
- name: templateId
in: path
description: The ID of the template.
required: true
schema:
type: string
responses:
'200':
description: Successful response.
content:
application/json:
schema:
$ref: '#/components/schemas/lockInformation'
'400':
description: Error encountered.
content:
application/json:
schema:
$ref: '#/components/schemas/errorDetails'
deprecated: false
x-ds-methodname: updateLock
x-ds-method: update
x-ds-service: Templates
x-ds-in-sdk: true
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/lockRequest'
application/xml:
schema:
$ref: '#/components/schemas/lockRequest'
post:
tags:
- TemplateLocks
summary: Locks a template
description: 'This method locks the specified template and sets the time until
the lock expires to prevent other users or recipients from
changing the template.
The response to this request includes a `lockToken` parameter
that you must use in the `X-DocuSign-Edit` header for
every PUT method (typically a method that updates a template)
while the template is locked.
If you do not provide the `lockToken` when accessing
a locked template, you will get the following
error:
```
{
"errorCode": "EDIT_LOCK_NOT_LOCK_OWNER",
"message": "The user is not the owner of the lock. The template is locked by another user or in another application"
}
```
### The X-DocuSign-Edit header
The `X-DocuSign-Edit` header looks like this
and can be specified in either JSON or XML.
**JSON**
```
{
"LockToken": "token-from-response",
"LockDurationInSeconds": "600"
}
```
**XML**
```
token-from-response
600
```
In the actual HTTP header, you would remove the linebreaks:
```
X-DocuSign-Edit: {"LockToken": "token-from-response", "LockDurationInSeconds": "600" }
or
X-DocuSign-Edit:token-from-response600
```
### Related topics
- Common API Tasks: Locking and unlocking envelopes'
operationId: Lock_PostTemplateLock
parameters:
- name: accountId
in: path
description: The external account number (int) or account ID GUID.
required: true
schema:
type: string
- name: templateId
in: path
description: The ID of the template.
required: true
schema:
type: string
responses:
'201':
description: Successful response.
content:
application/json:
schema:
$ref: '#/components/schemas/lockInformation'
'400':
description: Error encountered.
content:
application/json:
schema:
$ref: '#/components/schemas/errorDetails'
deprecated: false
x-ds-methodname: createLock
x-ds-method: create
x-ds-service: Templates
x-ds-in-sdk: true
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/lockRequest'
application/xml:
schema:
$ref: '#/components/schemas/lockRequest'
delete:
tags:
- TemplateLocks
summary: Deletes a template lock
description: 'Deletes the lock from the specified template.
The user deleting the lock must be the same user
who locked the template.
You must include the `X-DocuSign-Edit` header
as described in
TemplateLocks: create.
This method takes an optional query parameter
that lets you specify whether
changes made while the template was locked
are kept or discarded.
| Query Parameter | Description |
| :-------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `save_changes` | When **true** (the default), any changes made while the lock was active are saved. When **false,** any changes made while the template was locked are discarded. |
### Related topics
- Common API Tasks: Locking and unlocking envelopes'
operationId: Lock_DeleteTemplateLock
parameters:
- name: accountId
in: path
description: The external account number (int) or account ID GUID.
required: true
schema:
type: string
- name: templateId
in: path
description: The ID of the template.
required: true
schema:
type: string
responses:
'200':
description: Successful response.
content:
application/json:
schema:
$ref: '#/components/schemas/lockInformation'
'400':
description: Error encountered.
content:
application/json:
schema:
$ref: '#/components/schemas/errorDetails'
deprecated: false
x-ds-methodname: deleteLock
x-ds-method: delete
x-ds-service: Templates
x-ds-in-sdk: true
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/lockRequest'
application/xml:
schema:
$ref: '#/components/schemas/lockRequest'
/v2/accounts/{accountId}/templates/{templateId}/lock:
get:
tags:
- TemplateLocks
summary: Docusign Gets template lock information
description: 'Retrieves general information about the template lock.
If the call is made by the user who has the lock and the request has the same integrator key as original, then the `X-DocuSign-Edit` header field and additional lock information is included in the response. This allows users to recover a lost editing session token and the `X-DocuSign-Edit` header.'
operationId: Lock_GetTemplateLock
parameters:
- name: accountId
in: path
description: The external account number (int) or account id GUID.
required: true
schema:
type: string
- name: templateId
in: path
description: The ID of the template being accessed.
required: true
schema:
type: string
responses:
'200':
description: Successful response.
content:
'*/*':
schema:
$ref: '#/components/schemas/lockInformation'
'400':
description: Error encountered.
content:
'*/*':
schema:
$ref: '#/components/schemas/errorDetails'
deprecated: false
x-ds-methodname: getLock
x-ds-method: get
x-ds-service: Templates
x-ds-in-sdk: true
put:
tags:
- TemplateLocks
summary: Docusign Updates a template lock
description: Updates the lock duration time or update the `lockedByApp` property information for the specified template. The user and integrator key must match the user specified by the `lockByUser` property and integrator key information and the `X-DocuSign-Edit` header must be included or an error will be generated.
operationId: Lock_PutTemplateLock
parameters:
- name: accountId
in: path
description: The external account number (int) or account id GUID.
required: true
schema:
type: string
- name: templateId
in: path
description: The ID of the template being accessed.
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/lockRequest'
application/xml:
schema:
$ref: '#/components/schemas/lockRequest'
required: false
responses:
'200':
description: Successful response.
content:
'*/*':
schema:
$ref: '#/components/schemas/lockInformation'
'400':
description: Error encountered.
content:
'*/*':
schema:
$ref: '#/components/schemas/errorDetails'
deprecated: false
x-ds-methodname: updateLock
x-ds-method: update
x-ds-service: Templates
x-ds-in-sdk: true
x-codegen-request-body-name: lockRequest
post:
tags:
- TemplateLocks
summary: Docusign Lock a template
description: 'Locks the specified template, and sets the time until the lock expires, to prevent other users or recipients from accessing and changing the template.
###### Note: Users must have envelope locking capability enabled to use this function (the userSetting property `canLockEnvelopes` must be set to **true** for the user).'
operationId: Lock_PostTemplateLock
parameters:
- name: accountId
in: path
description: The external account number (int) or account id GUID.
required: true
schema:
type: string
- name: templateId
in: path
description: The ID of the template being accessed.
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/lockRequest'
application/xml:
schema:
$ref: '#/components/schemas/lockRequest'
required: false
responses:
'201':
description: Successful response.
content:
'*/*':
schema:
$ref: '#/components/schemas/lockInformation'
'400':
description: Error encountered.
content:
'*/*':
schema:
$ref: '#/components/schemas/errorDetails'
deprecated: false
x-ds-methodname: createLock
x-ds-method: create
x-ds-service: Templates
x-ds-in-sdk: true
x-codegen-request-body-name: lockRequest
delete:
tags:
- TemplateLocks
summary: Docusign Deletes a template lock
description: Deletes the lock from the specified template. The `X-DocuSign-Edit` header must be included in the request.
operationId: Lock_DeleteTemplateLock
parameters:
- name: accountId
in: path
description: The external account number (int) or account id GUID.
required: true
schema:
type: string
- name: templateId
in: path
description: The ID of the template being accessed.
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/lockRequest'
application/xml:
schema:
$ref: '#/components/schemas/lockRequest'
required: false
responses:
'200':
description: Successful response.
content:
'*/*':
schema:
$ref: '#/components/schemas/lockInformation'
'400':
description: Error encountered.
content:
'*/*':
schema:
$ref: '#/components/schemas/errorDetails'
deprecated: false
x-ds-methodname: deleteLock
x-ds-method: delete
x-ds-service: Templates
x-ds-in-sdk: true
x-codegen-request-body-name: lockRequest
components:
schemas:
lockRequest:
type: object
properties:
lockDurationInSeconds:
description: The number of seconds to lock the envelope for editing. Must be greater than 0 seconds.
type: string
lockedByApp:
description: A friendly name of the application used to lock the envelope. Will be used in error messages to the user when lock conflicts occur.
type: string
lockType:
description: The type of lock. Currently `edit` is the only supported type.
type: string
templatePassword:
description: The [password for the template](https://support.docusign.com/s/document-item?bundleId=xry1643227563338&topicId=xwo1578456395432.html). If you are using a lock for a template that has a password or an envelope that is based on a template that has a password, you must enter the `templatePassword` to save the changes.
type: string
useScratchPad:
description: "When **true,** a scratchpad is used to edit information.\n "
type: string
description: This request object contains information about the lock that you want to create or update.
x-ds-definition-name: lockRequest
x-ms-summary: This request object contains information about the lock that you want to create or update.
errorDetails:
description: This object describes errors that occur. It is only valid for responses and ignored in requests.
type: object
properties:
errorCode:
description: The code associated with the error condition.
type: string
message:
description: A brief message describing the error condition.
type: string
x-ds-definition-name: errorDetails
x-ms-summary: This object describes errors that occur. It is only valid for responses and ignored in requests.
userInfo:
type: object
properties:
accountId:
description: The account ID associated with the envelope.
type: string
accountName:
description: The name on the account.
type: string
activationAccessCode:
description: Access code provided to the user to activate the account.
type: string
email:
description: The user's email address.
type: string
errorDetails:
$ref: '#/components/schemas/errorDetails'
description: This object describes errors that occur. It is only valid for responses and ignored in requests.
ipAddress:
description: ''
type: string
loginStatus:
description: When **true,** indicates that the user is logged in. This is a read-only property.
type: string
membershipId:
description: The user's membership ID.
type: string
sendActivationEmail:
description: This field is no longer supported for most accounts. To create an eSignature user without sending an activation email, use the Admin API by following [these steps](/docs/admin-api/how-to/create-active-user/).
type: string
uri:
description: A URI containing the user ID.
type: string
userId:
description: The ID of the user to access.
type: string
userName:
description: The name of the user.
type: string
userStatus:
description: 'Status of the user''s account. One of:
- `ActivationRequired`
- `ActivationSent`
- `Active`
- `Closed`
- `Disabled`
'
type: string
userType:
description: The type of user, for example `CompanyUser`.
type: string
x-ds-definition-name: userInfo
description: ''
x-ms-summary: ''
lockInformation:
type: object
properties:
errorDetails:
$ref: '#/components/schemas/errorDetails'
description: This object describes errors that occur. It is only valid for responses and ignored in requests.
lockDurationInSeconds:
description: The number of seconds to lock the envelope for editing. This value must be greater than `0` seconds.
type: string
lockedByApp:
description: The human-readable name of the application that is locking the envelope or template. This value displays to the user in error messages when lock conflicts occur.
type: string
lockedByUser:
$ref: '#/components/schemas/userInfo'
description: A complex type containing information about the user that has the envelope or template locked.
lockedUntilDateTime:
description: The date and time that the lock expires.
type: string
lockToken:
description: A unique identifier provided to the owner of the lock. You must use this token with subsequent calls to prove ownership of the lock.
type: string
lockType:
description: The type of lock. Currently `edit` is the only supported type.
type: string
useScratchPad:
description: "When **true,** a scratchpad is used to edit information.\n "
type: string
x-ds-definition-name: lockInformation
description: ''
x-ms-summary: ''
externalDocs:
description: See the Docusign eSignature REST API Guide for more information.
url: https://docs.docusign.com/esign
x-ds-allow-editing: false
x-ds-categories:
- name: Envelopes
summary: This section shows you how to create and send envelopes.
description: 'The eSignature API Envelope category includes the resources and methods for sending and managing envelopes and envelope data.
Envelopes are the key objects in the Docusign platform. As a result, they are complex data structures with few required fields. See the [How-to guides](/docs/esign-rest-api/how-to/) for examples and solutions.
To learn more about envelopes, see [Envelopes](/docs/esign-rest-api/esign101/concepts/envelopes/).
'
- name: Connect
summary: "Docusign Connect is the Docusign platform notification service. The service uses webhooks to proactively notify your application when an event occurs that your application wants to know about. Docusign recommends that all applications use Connect instead of polling the Docusign Signature Service. This section provides information about Connect configuration and logging. \n\n**Note:** To make API calls to any of the Connect endpoints, you must be an account administrator.\n\nFor more information about Connect, see [Docusign Connect](/platform/webhooks/connect/) and [Custom Connect Configuration](https://support.docusign.com/s/document-item?bundleId=pik1583277475390&topicId=khw1583277390582.html)."
description: 'The Connect service enables your application to be called via
HTTPS when an event of interest occurs.
Use the Connect service to "end the polling madness." With
Connect, there is no need for your application to poll Docusign
every 15 minutes to learn the latest about your envelopes.
Instead, you register your interest in one or more types of
envelope or recipient events. Then, when an interesting event
occurs, the Docusign platform will contact your application with
the event''s details and data. You can register interest in
envelopes sent by particular users in your account, or for
envelopes sent by any user.
Connect can empower your organization to manage document actions
as they occur, and allows you to track their changes within your
own systems. Upon completion, envelope information, including
document content, can be stored in your own databases or CMS
systems, and these events can be triggered via webhooks
delivering messages to your application.
**Note:** To make API calls to any of the Connect endpoints, you must be an account administrator.
## Incoming Connect Calls
To use the Connect service, your application needs to provide an
HTTPS URL that can be called from the public Internet. If your
application runs on a server behind your organization''s firewall,
then you will need to create a "pinhole" in the firewall to allow
the incoming Connect calls from Docusign to reach your
application. You can also use other techniques such as proxy
servers and DMZ networking for receiving the incoming calls.
Connect delivers events over HTTP requests in JSON or XML.
See [Docusign Connect overview](/platform/webhooks/connect/).
If your application is not configured to accept post messages,
Docusign will NOT return an additional post error response to
your listener application. If you''ve enabled logging on your
configuration, it will be logged in Admin under the configuration
failure log.
## Per-envelope Connect Configuration
Instead of registering a general Connect configuration and
listener, an individual envelope can have its own Connect
configuration. See the
[`eventNotification`](/docs/esign-rest-api/reference/envelopes/envelopes/create/#schema__envelopedefinition_eventnotification)
property for envelopes.
## Historical Publish Endpoint
To submit existing envelopes to an endpoint, use the [EnvelopePublish](/docs/esign-rest-api/reference/envelopes/envelopepublish/) resource.
'
- name: Templates
summary: Template creation and management
description: 'Use the Templates category to manage your account''s templates.
This section shows you how to perform the following tasks:
* Create, list, get, update, and delete templates.
* Manage the notification and group sharing settings for templates.
* Fetch and rotate pages from a document used by a template.
You can create templates either programmatically or through the Docusign web interface and then used by your application.'
- name: SigningGroups
summary: Send a signing request to a group of potential signers.
description: 'Use the Signing Group category to manage signing groups that allow anyone in the group to sign a document. When you send an envelope to a signing group, anyone in the group can open it and sign it with their own signature.
This category shows account administrators how to create a signing group and manage the users in the group.
**Note:** To create and manage signing groups, you must be an account administrator.
For more information about this topic, see [Signing Groups](https://support.docusign.com/s/document-item?bundleId=gav1643676262430&topicId=zgn1578456447934.html).'
- name: Folders
summary: Folders allow you to organize envelopes and templates.
description: 'Use the Folders category to organize envelopes and templates.
You can list the folder contents and move envelopes and templates between folders.'
- name: CustomTabs
summary: Custom tabs
description: "Custom Tabs enable accounts to have one or more pre-configured (custom) tabs. Custom tabs save time when users are tagging documents since the users don't have to manually set the tabs' parameters.\n\nThis category enables custom tabs to be managed programmatically, including creation, deletion, etc. \n"
- name: CloudStorage
summary: This section shows you how to manage your cloud storage providers and users.
description: 'Use the Cloud Storage category to list the user''s cloud storage document contents.
It is also used to manage the user''s authentication/accounts with cloud storage service providers.'
- name: Users
summary: User management
description: 'Use the Users category to manage the users in your accounts.
You can:
* Set custom user settings.
* Manage a users profile.
* Add delete users.
* Add and delete the initials and signature images for a user.'
- name: UserGroups
summary: Group users for common permissions and branding
description: 'Use the User Groups category to manage your permissions groups.
You can:
* Create and delete groups.
* Add users to, and delete users from, your groups.
* Manage the brand information associated with a group.'
- name: BulkEnvelopes
summary: Bulk envelopes
description: Use the BulkEnvelopes category to manage the sending of envelopes to multiple recipients.
- name: Accounts
summary: Account management
description: 'Use the Account category for various account management tasks including:
* Programmatically creating and deleting accounts.
* Getting information about an account and its capabilities.
* Branding the account with custom colors, message text, and more.
* Account charges.
The Accounts category also includes end points for listing the recipient names associated with an email address that was used by the account. For example, a single email address is often shared by multiple members of a family.
'
- name: Billing
summary: Invoices
description: 'Use the Billing category to manage the following billing related tasks:
* Retrieve and update billing plan information.
* Retrieve invoices.
* Retrieve and update payment information.'
- name: Diagnostics
summary: Diagnostics and request logging
description: 'The Diagnostics category provides miscellaneous end points.
They include:
* Requesting and managing the API call-logging feature. (Perfect for debugging your app!)
* Getting information on the API''s resources and versions.'
- name: PowerForms
summary: The PowerForms category provides methods that enable you to create and manage fillable forms.
description: The PowerForms category enables you to create and manage PowerForms that you can use for self service and email forms.
- name: Workspaces
summary: A Docusign workspace is a collaboration area for sharing files and data.
description: "A workspace is a collaborative space for sharing documents and managing workflows. A workspace has a single owner who must be a Docusign user. The owner can invite others to the workspace as collaborators. Individuals who are not Docusign users must create a Docusign account to join a workspace as a collaborator.\n \nYou can create an envelope directly from a workspace.\n\nWorkspaces store the following information:\n\n- **Files:** Files uploaded to a workspace for storage or reuse.\n- **Documents:** A document is a component of a transaction, template, or workspace. When a file is added to a transaction, template, or workspace, it is copied as a document. Each document in a workspace has a single owner.\n- **Templates:** A set of documents that you can use to create a transaction or a workspace.\n- **Transactions:** A transaction is a series of workflow events related to one or more documents. These events route the documents to one or more individuals for the purposes of doing business. Each transaction has a single owner (the sender).\n\n**Note:** Documents in a template are not individually listed as files."
- name: Payments
summary: Manage Payments
description: This category includes resources for managing payment gateways. Payment information is added to envelopes via methods in the Envelopes category.
- name: EmailArchive
summary: This section shows you how to set and manage the BCC email addresses that you want to use to archive the emails that Docusign sends.
description: 'Email archives enable Docusign partners and other multi-account customers to easily archive emails sent through Docusign. The `EmailArchive` resource provides methods for managing your email archive configuration, which consists of the BCC email address or addresses that you want to use to archive Docusign emails. Each account can use up to five BCC email addresses for archiving purposes.
For more information, see [Email Archive Configuration](https://support.docusign.com/s/document-item?bundleId=pik1583277475390&topicId=xjm1583277371373.html).
**Note:** This feature is only available for certain account plans and must be enabled by Docusign.'
- name: Notary
summary: 'Docusign eNotary makes the notarization process fully digital
for senders, signers, and notaries.
It enables a notary public to act as an in-person witness
to electronic signing of documents.
'
description: 'Docusign eNotary makes the notarization process fully digital
for senders, signers, and notaries.
It enables a notary public to act as an in-person witness
to electronic signing of documents.
'
- name: Envelope
summary: ''
description: ''