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-envelopetemplates-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:
title: DocuSign REST Envelope Templates API
description: The DocuSign 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
version: v2
servers:
- url: https://www.docusign.net/restapi
tags:
- name: EnvelopeTemplates
description: The EnvelopeTemplates resource provides methods that allow you to add and delete templates on envelopes and documents.
paths:
/v2/accounts/{accountId}/envelopes/{envelopeId}/documents/{documentId}/templates:
get:
tags:
- EnvelopeTemplates
summary: Docusign Gets the templates associated with a document in an existing envelope
description: Retrieves the templates associated with a document in the specified envelope.
operationId: Templates_GetDocumentTemplates
parameters:
- name: accountId
in: path
description: The external account number (int) or account id GUID.
required: true
schema:
type: string
- name: documentId
in: path
description: The ID of the document being accessed.
required: true
schema:
type: string
- name: envelopeId
in: path
description: 'The envelope''s GUID. Eg 93be49ab-afa0-4adf-933c-f752070d71ec '
required: true
schema:
type: string
- name: include
in: query
description: 'A comma-separated list
that limits the results.
Valid values:
* applied
* matched
'
schema:
type: string
responses:
'200':
description: Successful response.
content:
'*/*':
schema:
$ref: '#/components/schemas/templateInformation'
'400':
description: Error encountered.
content:
'*/*':
schema:
$ref: '#/components/schemas/errorDetails'
deprecated: false
x-ds-methodname: listTemplatesForDocument
x-ds-method: listByDocument
x-ds-service: Envelopes
x-ds-in-sdk: true
post:
tags:
- EnvelopeTemplates
summary: Docusign Adds templates to a document in an envelope
description: Adds templates to a document in the specified envelope.
operationId: Templates_PostDocumentTemplates
parameters:
- name: accountId
in: path
description: The external account number (int) or account id GUID.
required: true
schema:
type: string
- name: documentId
in: path
description: The ID of the document being accessed.
required: true
schema:
type: string
- name: envelopeId
in: path
description: 'The envelope''s GUID. Eg 93be49ab-afa0-4adf-933c-f752070d71ec '
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/documentTemplateList'
application/xml:
schema:
$ref: '#/components/schemas/documentTemplateList'
required: false
responses:
'201':
description: Successful response.
content:
'*/*':
schema:
$ref: '#/components/schemas/documentTemplateList'
'400':
description: Error encountered.
content:
'*/*':
schema:
$ref: '#/components/schemas/errorDetails'
deprecated: false
x-ds-methodname: applyTemplateToDocument
x-ds-method: applyToDocument
x-ds-service: Envelopes
x-ds-in-sdk: true
x-codegen-request-body-name: documentTemplateList
/v2/accounts/{accountId}/envelopes/{envelopeId}/documents/{documentId}/templates/{templateId}:
delete:
tags:
- EnvelopeTemplates
summary: Docusign Deletes a template from a document in an existing envelope
description: Deletes the specified template from a document in an existing envelope.
operationId: Templates_DeleteDocumentTemplates
parameters:
- name: accountId
in: path
description: The external account number (int) or account id GUID.
required: true
schema:
type: string
- name: documentId
in: path
description: The ID of the document being accessed.
required: true
schema:
type: string
- name: envelopeId
in: path
description: 'The envelope''s GUID. Eg 93be49ab-afa0-4adf-933c-f752070d71ec '
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: {}
'400':
description: Error encountered.
content:
'*/*':
schema:
$ref: '#/components/schemas/errorDetails'
deprecated: false
x-ds-methodname: deleteTemplatesFromDocument
x-ds-method: delete
x-ds-service: Envelopes
x-ds-in-sdk: true
/v2/accounts/{accountId}/envelopes/{envelopeId}/templates:
get:
tags:
- EnvelopeTemplates
summary: Docusign Get List of Templates used in an Envelope
description: This returns a list of the server-side templates, their name and ID, used in an envelope.
operationId: Templates_GetEnvelopeTemplates
parameters:
- name: accountId
in: path
description: The external account number (int) or account id GUID.
required: true
schema:
type: string
- name: envelopeId
in: path
description: 'The envelope''s GUID. Eg 93be49ab-afa0-4adf-933c-f752070d71ec '
required: true
schema:
type: string
- name: include
in: query
description: 'The possible values are: matching_applied - This returns template matching information for the template.'
schema:
type: string
responses:
'200':
description: Successful response.
content:
'*/*':
schema:
$ref: '#/components/schemas/templateInformation'
'400':
description: Error encountered.
content:
'*/*':
schema:
$ref: '#/components/schemas/errorDetails'
deprecated: false
x-ds-methodname: listTemplates
x-ds-method: list
x-ds-service: Envelopes
x-ds-in-sdk: true
post:
tags:
- EnvelopeTemplates
summary: Docusign Adds templates to an envelope
description: Adds templates to the specified envelope.
operationId: Templates_PostEnvelopeTemplates
parameters:
- name: accountId
in: path
description: The external account number (int) or account id GUID.
required: true
schema:
type: string
- name: envelopeId
in: path
description: 'The envelope''s GUID. Eg 93be49ab-afa0-4adf-933c-f752070d71ec '
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/documentTemplateList'
application/xml:
schema:
$ref: '#/components/schemas/documentTemplateList'
required: false
responses:
'201':
description: Successful response.
content:
'*/*':
schema:
$ref: '#/components/schemas/documentTemplateList'
'400':
description: Error encountered.
content:
'*/*':
schema:
$ref: '#/components/schemas/errorDetails'
deprecated: false
x-ds-methodname: applyTemplate
x-ds-method: apply
x-ds-service: Envelopes
x-ds-in-sdk: true
x-codegen-request-body-name: documentTemplateList
/v2.1/accounts/{accountId}/envelopes/{envelopeId}/documents/{documentId}/templates:
parameters: []
get:
tags:
- EnvelopeTemplates
summary: Gets the templates associated with a document in an existing envelope
description: Retrieves the templates associated with a document in the specified envelope.
operationId: Templates_GetDocumentTemplates
parameters:
- name: accountId
in: path
description: The external account number (int) or account ID GUID.
required: true
schema:
type: string
- name: documentId
in: path
description: 'The unique ID of the document within the envelope.
Unlike other IDs in the eSignature API,
you specify the `documentId` yourself.
Typically the first document has the ID
`1`, the second document `2`, and so on,
but you can use any numbering scheme
that fits within a 32-bit signed integer
(1 through 2147483647).
Tab objects have a `documentId` property
that specifies the document on which to place
the tab.
'
required: true
schema:
type: string
- name: envelopeId
in: path
description: "The envelope's GUID. \n\nExample: `93be49ab-xxxx-xxxx-xxxx-f752070d71ec`\n"
required: true
schema:
type: string
- name: include
in: query
required: false
description: 'A comma-separated list that limits the results.
Valid values are:
* `applied`
* `matched`
'
schema:
type: string
responses:
'200':
description: Successful response.
content:
application/json:
schema:
$ref: '#/components/schemas/templateInformation'
'400':
description: Error encountered.
content:
application/json:
schema:
$ref: '#/components/schemas/errorDetails'
deprecated: false
x-ds-methodname: listTemplatesForDocument
x-ds-method: listByDocument
x-ds-service: Envelopes
x-ds-in-sdk: true
post:
tags:
- EnvelopeTemplates
summary: Adds templates to a document in an envelope
description: Adds templates to a document in the specified envelope.
operationId: Templates_PostDocumentTemplates
parameters:
- name: accountId
in: path
description: The external account number (int) or account ID GUID.
required: true
schema:
type: string
- name: documentId
in: path
description: 'The unique ID of the document within the envelope.
Unlike other IDs in the eSignature API,
you specify the `documentId` yourself.
Typically the first document has the ID
`1`, the second document `2`, and so on,
but you can use any numbering scheme
that fits within a 32-bit signed integer
(1 through 2147483647).
Tab objects have a `documentId` property
that specifies the document on which to place
the tab.
'
required: true
schema:
type: string
- name: envelopeId
in: path
description: "The envelope's GUID. \n\nExample: `93be49ab-xxxx-xxxx-xxxx-f752070d71ec`\n"
required: true
schema:
type: string
- name: preserve_template_recipient
in: query
required: false
description: "If omitted or set to false (the default),\nenvelope recipients _will be removed_\nif the template being applied\nincludes only tabs positioned via anchor text for the recipient,\nand none of the documents include the anchor text. \n\nWhen **true,** the recipients _will be preserved_ after the template is applied.\n\n"
schema:
type: string
responses:
'201':
description: Successful response.
content:
application/json:
schema:
$ref: '#/components/schemas/documentTemplateList'
'400':
description: Error encountered.
content:
application/json:
schema:
$ref: '#/components/schemas/errorDetails'
deprecated: false
x-ds-methodname: applyTemplateToDocument
x-ds-method: applyToDocument
x-ds-service: Envelopes
x-ds-in-sdk: true
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/documentTemplateList'
application/xml:
schema:
$ref: '#/components/schemas/documentTemplateList'
/v2.1/accounts/{accountId}/envelopes/{envelopeId}/documents/{documentId}/templates/{templateId}:
parameters: []
delete:
tags:
- EnvelopeTemplates
summary: Deletes a template from a document in an existing envelope
description: Deletes the specified template from a document in an existing envelope.
operationId: Templates_DeleteDocumentTemplates
parameters:
- name: accountId
in: path
description: The external account number (int) or account ID GUID.
required: true
schema:
type: string
- name: documentId
in: path
description: 'The unique ID of the document within the envelope.
Unlike other IDs in the eSignature API,
you specify the `documentId` yourself.
Typically the first document has the ID
`1`, the second document `2`, and so on,
but you can use any numbering scheme
that fits within a 32-bit signed integer
(1 through 2147483647).
Tab objects have a `documentId` property
that specifies the document on which to place
the tab.
'
required: true
schema:
type: string
- name: envelopeId
in: path
description: "The envelope's GUID. \n\nExample: `93be49ab-xxxx-xxxx-xxxx-f752070d71ec`\n"
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.
'400':
description: Error encountered.
content:
application/json:
schema:
$ref: '#/components/schemas/errorDetails'
deprecated: false
x-ds-methodname: deleteTemplatesFromDocument
x-ds-method: delete
x-ds-service: Envelopes
x-ds-in-sdk: true
/v2.1/accounts/{accountId}/envelopes/{envelopeId}/templates:
parameters: []
get:
tags:
- EnvelopeTemplates
summary: Gets templates used in an envelope
description: This returns a list of the server-side templates, their name and ID, used in an envelope.
operationId: Templates_GetEnvelopeTemplates
parameters:
- name: accountId
in: path
description: The external account number (int) or account ID GUID.
required: true
schema:
type: string
- name: envelopeId
in: path
description: "The envelope's GUID. \n\nExample: `93be49ab-xxxx-xxxx-xxxx-f752070d71ec`\n"
required: true
schema:
type: string
- name: include
in: query
description: 'Filters the results by template type. Valid values:
* `applied`: Returns the templates applied to an envelope.
* `matching`: Returns the [matching templates](https://support.docusign.com/s/document-item?language=en_US&bundleId=jux1643235969954&topicId=far1578456612069.html&_LANG=enus) for an envelope.
The default value is `applied`.'
required: false
schema:
type: string
responses:
'200':
description: Successful response.
content:
application/json:
schema:
$ref: '#/components/schemas/templateInformation'
'400':
description: Error encountered.
content:
application/json:
schema:
$ref: '#/components/schemas/errorDetails'
deprecated: false
x-ds-methodname: listTemplates
x-ds-method: list
x-ds-service: Envelopes
x-ds-in-sdk: true
post:
tags:
- EnvelopeTemplates
summary: Adds templates to an envelope
description: Adds templates to the specified envelope.
operationId: Templates_PostEnvelopeTemplates
parameters:
- name: accountId
in: path
description: The external account number (int) or account ID GUID.
required: true
schema:
type: string
- name: envelopeId
in: path
description: "The envelope's GUID. \n\nExample: `93be49ab-xxxx-xxxx-xxxx-f752070d71ec`\n"
required: true
schema:
type: string
- name: preserve_template_recipient
in: query
required: false
description: "If omitted or set to false (the default),\nenvelope recipients _will be removed_\nif the template being applied\nincludes only tabs positioned via anchor text for the recipient,\nand none of the documents include the anchor text. \n\nWhen **true,** the recipients _will be preserved_ after the template is applied.\n\n"
schema:
type: string
responses:
'201':
description: Successful response.
content:
application/json:
schema:
$ref: '#/components/schemas/documentTemplateList'
'400':
description: Error encountered.
content:
application/json:
schema:
$ref: '#/components/schemas/errorDetails'
deprecated: false
x-ds-methodname: applyTemplate
x-ds-method: apply
x-ds-service: Envelopes
x-ds-in-sdk: true
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/documentTemplateList'
application/xml:
schema:
$ref: '#/components/schemas/documentTemplateList'
components:
schemas:
templateSummary:
type: object
properties:
applied:
type: string
description: 'Reserved: TBD'
documentId:
type: string
description: Specifies the document ID number that the tab is placed on. This must refer to an existing Document's ID attribute.
documentName:
type: string
description: ''
name:
type: string
description: ''
templateId:
type: string
description: 'The unique identifier of the template. If this is not provided, DocuSign will generate a value. '
templateMatch:
$ref: '#/components/schemas/templateMatch'
uri:
type: string
description: ''
description: ''
x-ds-definition-name: templateSummary
x-ms-summary: ''
errorDetails:
type: object
properties:
errorCode:
type: string
description: An error code associated with the error.
message:
type: string
description: A short error message.
description: This object describes errors that occur. It is only valid for responses, and ignored in requests.
x-ds-definition-name: errorDetails
x-ms-summary: This object describes errors that occur. It is only valid for responses, and ignored in requests.
documentTemplateList:
type: object
properties:
documentTemplates:
type: array
description: ''
items:
$ref: '#/components/schemas/documentTemplate'
description: ''
x-ds-definition-name: documentTemplateList
x-ms-summary: ''
templateInformation:
type: object
properties:
templates:
type: array
description: ''
items:
$ref: '#/components/schemas/templateSummary'
description: ''
x-ds-definition-name: templateInformation
x-ms-summary: ''
templateMatch:
type: object
properties:
documentEndPage:
type: string
description: ''
documentStartPage:
type: string
description: ''
matchPercentage:
type: string
description: ''
description: ''
x-ds-definition-name: templateMatch
x-ms-summary: ''
documentTemplate:
type: object
properties:
documentEndPage:
type: string
description: ''
documentId:
type: string
description: Specifies the document ID number that the tab is placed on. This must refer to an existing Document's ID attribute.
documentStartPage:
type: string
description: ''
errorDetails:
$ref: '#/components/schemas/errorDetails'
templateId:
type: string
description: The unique identifier of the template. If this is not provided, DocuSign generates an error and the call fails.
description: ''
x-ds-definition-name: documentTemplate
x-ms-summary: ''
externalDocs:
description: See the DocuSign REST API Guide for more information.
url: https://docs.docusign.com/esign
x-ds-allow-editing: false
x-ds-categories:
- name: Authentication
summary: Logging in and authentication
description: 'Use the Authentication category to manage various account login tasks including:
* Getting login information for a user.
* Managing linked social accounts.
* Getting and revoking OAuth tokens.'
- name: Envelopes
summary: Creating and sending envelopes
description: 'The DocuSign API Envelope category includes the resources and methods for sending and managing envelopes and envelope data.
Envelopes are the key objects within the DocuSign eSignature system. As a result, they are complex data structures with few required fields. See the [API Recipes](https://www.docusign.com/developer-center/recipes) for use case examples and their solutions.
To create and send envelopes, see the [Envelopes resource](Envelopes).
'
- name: Connect
summary: Connect configuration and logging
description: "The Connect category enables your application to be called via HTTPS when an event of interest occurs.\n\nUse 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.\n\nInstead, 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.\n\n## Incoming Connect Calls\nTo 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. Other techniques for receiving the incoming calls including proxy servers and DMZ networking can also be used. \n\n## Per-envelope Connect Configuration\nInstead of registering a general Connect configuration and listener, an individual envelope can have its own Connect configuration. See the `eventNotification` field for envelopes.\n\n## Categories\nUse the Connect category for:\n\n* Programmatically creating Connect configurations. Connect configurations can be created manually by using the DocuSign web service, or programmatically via the API. Configurations created via the API can be seen and updated from the web service.\n* Retrieving and managing the event log for your Connect configurations. \n* Requesting that an event be re-published to the listener."
- name: Templates
summary: Template creation and management
description: 'Use the Templates category to manage your account''s templates.
You can:
* Create, list, get, update, and delete templates.
* Manage templates'' notification and group sharing settings.
* Fetch and rotate pages from a document used by a template.
Templates can be created programmatically or can be created via 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 SigningGroup category to manage signing groups that allow you anyone in the group to sign a document.
The category allows you create the signing group and manage the users in the group.'
- name: Folders
summary: Folders for completed envelopes
description: "Use the Folders category to manage envelopes in your folders. \n\nYou can list the folder contents and move envelopes 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: Cloud storage providers and user management
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 intials 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: Accounts
summary: Account management
description: "Use the Account category for various account management tasks including:\n\n* Programmatically creating and deleting accounts.\n* Getting information about an account and its capabilities.\n* Branding the account with custom colors, message text, and more.\n* Account charges.\n\nThe Account category also includes end points for \n* 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 mulitple members of a family.\n\n\n"
- 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: PowerForm creation and management
description: The PowerForms category enables PowerForms to be created and managed.
- name: Workspaces
summary: Workspace creation and management
description: 'Workspaces creation and management.
'
- 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: Signature
summary: ''
description: ''
x-original-swagger-version: '2.0'