Skip to content
Proud to collaborate with Microsoft for Startups

docusign.templates.post-templates ​

Creates one or more template definitions, using a multipart request for each template. Templates help streamline the sending process when you frequently send the same or similar documents, or send different documents to the same group of people. When you create a template, you define placeholder roles. Rather than specifying a person, you specify a role that regularly participates in a transaction that uses the template. Then, when you create or send an envelope based on the template, you assign actual recipients to the template roles. The recipients automatically inherit all of the workflow that is defined for that role in the template, such as the tabs and routing information. ## Template Email Subject Merge Fields Placeholder roles have associated merge fields that personalize the email notification that Docusign sends. For example, the template automatically personalizes the email message by adding placeholders for the recipient's name and email address within the email subject line, based on the recipient's role. When the sender adds the name and email information for the recipient and sends the envelope, the recipient information is automatically merged into the appropriate fields in the email subject line. Both the sender and the recipients will see the information in the email subject line for any emails associated with the template. This provides an easy way for senders to organize their envelope emails without having to open an envelope to find out who the recipient is. Use the following placeholders to insert a recipient's name or email address in the subject line To insert a recipient's name into the subject line, use the [[<roleName>_UserName]] placeholder in the emailSubject property when you create the template: To include a recipient's name or email address in the subject line, use the following placeholders in the emailSubject property: - [[<roleName>_UserName]] - [[<roleName>_Email]] For example, if the role name is Signer 1, you might set emailSubject to one of these strings: - "[[Signer 1_UserName]], Please sign this NDA" - "[[Signer 1_Email]], Please sign this NDA" Note: The maximum length of the subject line is 100 characters, including any merged text. ## Creating multiple templates To create multiple templates, you provide a zip file of JSON files. You can also use the Templates::ListTemplates method with the is_download query parameter to download a zip file containing your existing templates and use that as a guide. The API supports both .zip and .gzip file formats as input. You also need to set the Content-Length, Content-Type, and Content-Disposition headers: Content-Length: 71068 Content-Type: application/zip Content-Disposition: file; filename="DocuSignTemplates_Nov_25_2019_20_40_21.zip"; fileExtension=.zip ### Related topics - How to create a template

Creates one or more templates.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-docusign
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
base_urlstringYes—Docusign API root, e.g. https://<host>/api
api_tokenstringNo—Bearer token; omit to use the workflow's token env var
accountidstringYes—(Required) The external account number (int) or account ID GUID.
accesscontrollistbase64stringNo—Reserved for Docusign.
allowcommentsstringNo—When true, users can add comments to the documents in the envelope. For example, if a signer has a question about the text in the document, they can add a comment to the document.
allowmarkupstringNo—When true, the Document Markup feature is enabled. Note: To use this feature, Document Markup must be enabled at both the account and envelope levels. Only Admin users can change this setting at the account level.
allowreassignstringNo—When true, the recipient can redirect an envelope to a more appropriate recipient.
allowviewhistorystringNo—When true, recipients can view the history of the envelope.
anysignerstringNo—Deprecated. This feature has been replaced by signing groups.
asynchronousstringNo—When true, the envelope is queued for processing and the value of the status property is set to Processing. Additionally, GET status calls return Processing until completed. Note: A transactionId is required for this call to work correctly. When the envelope is created, the status is Processing and an envelopeId is not returned in the response. To get the envelopeId, use a GET envelope query by using the transactionId or by checking the Connect notification.
attachmentsuristringNo—Contains a URL for retrieving the attachments that are associated with the envelope.
authoritativecopystringNo—When true, marks all of the documents in the envelope as authoritative copies. Note: You can override this value for a specific document. For example, you can set the authoritativeCopy property to true at the envelope level, but turn it off for a single document by setting the authoritativeCopy property for the document to false.
authoritativecopydefaultstringNo—The default authoritativeCopy setting for documents in this envelope that do not have authoritativeCopy set. If this property is not set, each document defaults to the envelope's authoritativeCopy.
automatchstringNo—By default, templates that have been used within the last 60 days are included in auto-matching. By explicitly setting autoMatch, you can permanently include or exclude the template in auto matching. When true the template is included in auto-matching regardless of when it was last used. When false the template is never included in auto-matching.
automatchspecifiedbyuserstringNo—When true, the template has been explicitly included in or excluded from auto-matching. The default is false. This is a read-only property.
autonavigationstringNo—When true, autonavigation is set for the recipient.
brandidstringNo—The ID of the brand.
brandlockstringNo—When true, the brandId for the envelope is locked and senders cannot change the brand used for the envelope.
burndefaulttabdatastringNo——
certificateuristringNo—The URI for retrieving certificate information.
completeddatetimestringNo—Specifies the date and time this item was completed.
copyrecipientdatastringNo——
createdstringNo—The UTC DateTime when the workspace user authorization was created.
createddatetimestringNo—The UTC DateTime when the item was created.
customfieldsjsonNo—An accountCustomField is an envelope custom field that you set at the account level. Applying custom fields enables account administrators to group and manage envelopes.
customfieldsuristringNo—The URI for retrieving custom fields.
declineddatetimestringNo—The date and time the recipient declined the document. This property is read-only.
deleteddatetimestringNo—Reserved for Docusign.
delivereddatetimestringNo—The date and time that the envelope was delivered to the recipient. This property is read-only.
descriptionstringNo—A sender-defined description of the line item.
disableresponsivedocumentstringNo—When true, responsive documents are disabled for the envelope.
documentbase64stringNo—The document's bytes. This field can be used to include a base64 version of the document bytes within an envelope definition instead of sending the document using a multi-part HTTP request. The maximum document size is smaller if this field is used due to the overhead of the base64 encoding.
documentslistNo—A complex element that contains details about the documents associated with the envelope.
documentscombineduristringNo—The URI for retrieving all of the documents associated with the envelope as a single PDF file.
documentsuristringNo—The URI for retrieving all of the documents associated with the envelope as separate files.
emailblurbstringNo—This is the same as the email body. If the sender enters an email blurb, it is included in the email body for all envelope recipients.
emailsettingsjsonNo—A complex element that allows the sender to override some envelope email setting information. This can be used to override the Reply To email address and name associated with the envelope and to override the BCC email addresses to which an envelope is sent. When the emailSettings information is used for an envelope, it only applies to that envelope. IMPORTANT: The emailSettings information is not returned in the GET for envelope status. Use GET /email_settings to return information about the emailSettings. EmailSettings consists of: * replyEmailAddressOverride - The Reply To email used for the envelope. Docusign will verify that a correct email format is used, but does not verify that the email is active. Maximum Length: 100 characters. * replyEmailNameOverride - The name associated with the Reply To email address. Maximum Length: 100 characters. * bccEmailAddresses - An array of up to five email addresses to which the envelope is sent to as a BCC email. Only users with canManageAccount setting set to true can use this option. Docusign verifies that the email format is correct, but does not verify that the email is active. Using this overrides the BCC for Email Archive information setting for this envelope. Maximum Length: 100 characters. Example: if your account has BCC for Email Archive set up for the email address 'archive@mycompany.com' and you send an envelope using the BCC Email Override to send a BCC email to 'salesarchive@mycompany.com', then a copy of the envelope is only sent to the 'salesarchive@mycompany.com' email address.
emailsubjectstringNo—The subject line of the email message that is sent to all recipients. For information about adding merge field information to the email subject, see Template Email Subject Merge Fields. Note: The subject line is limited to 100 characters, including any merged fields.It is not truncated. It is an error if the text is longer than 100 characters.
enablewetsignstringNo—When true, the signer is allowed to print the document and sign it on paper.
enforcesignervisibilitystringNo—When true, the option selected in the Document Visibility section in your account [Sending Settings][sendingsettings] will be enforced for the envelope. See [Fields and Properties][fieldsproperties] for details about document visibility options. Setting enforceSignerVisibility to true also enables you to omit documents from the specified recipients' envelopes by using the excludedDocuments array. Recipients that have an administrative role (Agent, Editor, or Intermediaries) or informational role (Certified Deliveries or Carbon Copies) can always see all of the documents in an envelope, unless they are specifically excluded by using the excludedDocuments setting when an envelope is sent. Documents that do not have tabs are always visible to all recipients, unless they are excluded by using the excludedDocuments setting. Note: To use this functionality, [document visibility][docviz] must be enabled for the account. The document visibility feature is available in all developer accounts, but only in certain production account plans. Contact [Docusign Support][support] or your account manager to find out whether document visibility is available for your production account plan. [docviz]: /docs/esign-rest-api/reference/envelopes/envelopedocumentvisibility/ [sendingsettings]: https://admindemo.docusign.com/authenticate?goTo=sending [fieldsproperties]: https://support.docusign.com/s/document-item?rsc_301&bundleId=pik1583277475390&topicId=xgg1583277350154.html [support]: https://support.docusign.com/en/contactSupport#
envelopeattachmentslistNo—An array of attachment objects that provide information about the attachments that are associated with the envelope.
envelopecustommetadatajsonNo——
envelopedocumentslistNo—An array containing information about the documents that are included in the envelope.
envelopeidstringNo—The envelope ID of an envelope that you want to use as the basis for the template. The state of the envelope can be draft, sent, or completed.
envelopeidstampingstringNo—When true, Envelope ID Stamping is enabled. After a document or attachment is stamped with an Envelope ID, the ID is seen by all recipients and becomes a permanent part of the document and cannot be removed.
envelopelocationstringNo—Reserved for Docusign.
envelopemetadatajsonNo——
envelopeuristringNo—The URI for retrieving the envelope or envelopes.
expireafterstringNo—Not used. Use the expirations property in the notification object instead.
expiredatetimestringNo—Not used. Use the expirations property in the notification object instead.
expireenabledstringNo—Not used. Use the expirations property in the notification object instead.
externalenvelopeidstringNo—May contain an external identifier for the envelope.
favoritedbymestringNo——
folderidstringNo—The ID of the folder.
folderidslistNo——
foldernamestringNo——
folderslistNo—A list of folder objects.
hascommentsstringNo—When true, indicates that users have added comments to the envelope.
hasformdatachangedstringNo—When true, indicates that the data collected through form fields on a document has changed.
haswavfilestringNo—When true, indicates that a .wav file used for voice authentication is included in the envelope.
holderstringNo—Reserved for Docusign.
initialsentdatetimestringNo—The date and time the envelope was initially sent.
is21cfrpart11stringNo—When true, indicates compliance with United States Food and Drug Administration (FDA) regulations on electronic records and electronic signatures (ERES).
isacegentemplatestringNo——
isdocgentemplatestringNo——
isdynamicenvelopestringNo—When true, indicates that the envelope is a dynamic envelope.
issignatureproviderenvelopestringNo—When true, indicates that the envelope is a signature-provided envelope.
isticketrelatedenvelopestringNo——
lastmodifiedstringNo—The UTC date and time that the comment was last updated. Note: This can only be done by the creator.
lastmodifiedbyjsonNo——
lastmodifieddatetimestringNo—The date and time that the item was last modified.
lastusedstringNo——
locationstringNo—Reserved for Docusign.
lockinformationjsonNo—Envelope locks let you lock an envelope to prevent any changes while you are updating an envelope.
messagelockstringNo—When true, prevents senders from changing the contents of emailBlurb and emailSubject properties for the envelope. Additionally, this prevents users from making changes to the contents of emailBlurb and emailSubject properties when correcting envelopes. However, if the messageLock node is set to true and the emailSubject property is empty, senders and correctors are able to add a subject to the envelope.
namestringNo——
newpasswordstringNo—The user's new password.
notificationjsonNo—A complex element that specifies the notification settings for the envelope.
notificationuristringNo—The URI for retrieving notifications.
ownerjsonNo——
pagecountstringNo—An integer value specifying the number of document pages in the template.
passwordstringNo—The user's password. This property is used only when adding a new user via a Users: create request. The value must conform to the password rules defined in the account Security Settings. This property is not returned by GET requests and cannot be updated via PUT requests.
passwordprotectedstringNo——
powerformjsonNo—Contains details about a PowerForm.
powerformslistNo—An array of PowerForm objects.
purgecompleteddatestringNo—The date that a purge was completed.
purgerequestdatestringNo—The date that a purge was requested.
purgestatestringNo—Shows the current purge state for the envelope. Valid values: - unpurged: There has been no successful request to purge documents. - documents_queued: The envelope documents have been added to the purge queue, but have not been purged. - documents_dequeued: The envelope documents have been taken out of the purge queue. - documents_purged: The envelope documents have been successfully purged. - documents_and_metadata_queued: The envelope documents and metadata have been added to the purge queue, but have not yet been purged. - documents_and_metadata_purged: The envelope documents and metadata have been successfully purged. - documents_and_metadata_and_redact_queued: The envelope documents and metadata have been added to the purge queue, but have not yet been purged, nor has personal information been redacted. - documents_and_metadata_and_redact_purged: The envelope documents and metadata have been successfully purged, and personal information has been redacted. Related topics - Purging documents (eSingature Concepts) - Purging documents in an envelope (blog post)
recipientsjsonNo—Envelope recipients
recipientslockstringNo—When true, prevents senders from changing, correcting, or deleting the recipient information for the envelope.
recipientsuristringNo—Contains a URI for an endpoint that you can use to retrieve the recipients.
senderjsonNo——
sentdatetimestringNo—The UTC DateTime when the envelope was sent. This property is read-only.
sharedstringNo—When true, indicates the template is shared with the Everyone group, which includes all users on the account. When false, the template is shared only with the groups you specify.
signercansignonmobilestringNo—When true, recipients can sign on a mobile device. Note: Only Admin users can change this setting.
signinglocationstringNo—Specifies the physical location where the signing takes place. It can have two enumeration values; inPerson and online. The default value is online.
statusstringNo—Indicates the envelope status. Valid values are: * completed: The recipients have finished working with the envelope: the documents are signed and all required tabs are filled in. * created: The envelope is created as a draft. It can be modified and sent later. * declined: The envelope has been declined by the recipients. * delivered: The envelope has been delivered to the recipients. * sent: The envelope will be sent to the recipients after the envelope is created. * signed: The envelope has been signed by the recipients. * voided: The envelope is no longer valid and recipients cannot access or sign the envelope.
statuschangeddatetimestringNo—The data and time that the status changed.
templateidstringNo—The unique identifier of the template. If this is not provided, Docusign will generate a value.
templatesuristringNo—The URI for retrieving the templates.
transactionidstringNo—Used to identify an envelope. The ID is a sender-generated value and is valid in the Docusign system for 7 days. It is recommended that a transaction ID is used for offline signing to ensure that an envelope is not sent multiple times. The transactionId property can be used determine an envelope's status (i.e. was it created or not) in cases where the internet c onnection was lost before the envelope status was returned.
uristringNo—A URI containing the user ID.
usedisclosurestringNo—When true, the disclosure is shown to recipients in accordance with the account's Electronic Record and Signature Disclosure frequency setting. When false, the Electronic Record and Signature Disclosure is not shown to any envelope recipients. If the useDisclosure property is not set, then the account's normal disclosure setting is used and the value of the useDisclosure property is not returned in responses when getting envelope information.
usigstatestringNo——
voideddatetimestringNo—The date and time the envelope or template was voided.
voidedreasonstringNo—The reason the envelope or template was voided. Note: The string is truncated to the first 200 characters.
workflowjsonNo—Describes the workflow for an envelope.

Output Schema ​

FieldTypeRequiredDefaultDescription
base_urlstringYes—Docusign API root, e.g. https://<host>/api
api_tokenstringNo—Bearer token; omit to use the workflow's token env var
accountidstringYes—(Required) The external account number (int) or account ID GUID.
accesscontrollistbase64stringNo—Reserved for Docusign.
allowcommentsstringNo—When true, users can add comments to the documents in the envelope. For example, if a signer has a question about the text in the document, they can add a comment to the document.
allowmarkupstringNo—When true, the Document Markup feature is enabled. Note: To use this feature, Document Markup must be enabled at both the account and envelope levels. Only Admin users can change this setting at the account level.
allowreassignstringNo—When true, the recipient can redirect an envelope to a more appropriate recipient.
allowviewhistorystringNo—When true, recipients can view the history of the envelope.
anysignerstringNo—Deprecated. This feature has been replaced by signing groups.
asynchronousstringNo—When true, the envelope is queued for processing and the value of the status property is set to Processing. Additionally, GET status calls return Processing until completed. Note: A transactionId is required for this call to work correctly. When the envelope is created, the status is Processing and an envelopeId is not returned in the response. To get the envelopeId, use a GET envelope query by using the transactionId or by checking the Connect notification.
attachmentsuristringNo—Contains a URL for retrieving the attachments that are associated with the envelope.
authoritativecopystringNo—When true, marks all of the documents in the envelope as authoritative copies. Note: You can override this value for a specific document. For example, you can set the authoritativeCopy property to true at the envelope level, but turn it off for a single document by setting the authoritativeCopy property for the document to false.
authoritativecopydefaultstringNo—The default authoritativeCopy setting for documents in this envelope that do not have authoritativeCopy set. If this property is not set, each document defaults to the envelope's authoritativeCopy.
automatchstringNo—By default, templates that have been used within the last 60 days are included in auto-matching. By explicitly setting autoMatch, you can permanently include or exclude the template in auto matching. When true the template is included in auto-matching regardless of when it was last used. When false the template is never included in auto-matching.
automatchspecifiedbyuserstringNo—When true, the template has been explicitly included in or excluded from auto-matching. The default is false. This is a read-only property.
autonavigationstringNo—When true, autonavigation is set for the recipient.
brandidstringNo—The ID of the brand.
brandlockstringNo—When true, the brandId for the envelope is locked and senders cannot change the brand used for the envelope.
burndefaulttabdatastringNo——
certificateuristringNo—The URI for retrieving certificate information.
completeddatetimestringNo—Specifies the date and time this item was completed.
copyrecipientdatastringNo——
createdstringNo—The UTC DateTime when the workspace user authorization was created.
createddatetimestringNo—The UTC DateTime when the item was created.
customfieldsjsonNo—An accountCustomField is an envelope custom field that you set at the account level. Applying custom fields enables account administrators to group and manage envelopes.
customfieldsuristringNo—The URI for retrieving custom fields.
declineddatetimestringNo—The date and time the recipient declined the document. This property is read-only.
deleteddatetimestringNo—Reserved for Docusign.
delivereddatetimestringNo—The date and time that the envelope was delivered to the recipient. This property is read-only.
descriptionstringNo—A sender-defined description of the line item.
disableresponsivedocumentstringNo—When true, responsive documents are disabled for the envelope.
documentbase64stringNo—The document's bytes. This field can be used to include a base64 version of the document bytes within an envelope definition instead of sending the document using a multi-part HTTP request. The maximum document size is smaller if this field is used due to the overhead of the base64 encoding.
documentslistNo—A complex element that contains details about the documents associated with the envelope.
documentscombineduristringNo—The URI for retrieving all of the documents associated with the envelope as a single PDF file.
documentsuristringNo—The URI for retrieving all of the documents associated with the envelope as separate files.
emailblurbstringNo—This is the same as the email body. If the sender enters an email blurb, it is included in the email body for all envelope recipients.
emailsettingsjsonNo—A complex element that allows the sender to override some envelope email setting information. This can be used to override the Reply To email address and name associated with the envelope and to override the BCC email addresses to which an envelope is sent. When the emailSettings information is used for an envelope, it only applies to that envelope. IMPORTANT: The emailSettings information is not returned in the GET for envelope status. Use GET /email_settings to return information about the emailSettings. EmailSettings consists of: * replyEmailAddressOverride - The Reply To email used for the envelope. Docusign will verify that a correct email format is used, but does not verify that the email is active. Maximum Length: 100 characters. * replyEmailNameOverride - The name associated with the Reply To email address. Maximum Length: 100 characters. * bccEmailAddresses - An array of up to five email addresses to which the envelope is sent to as a BCC email. Only users with canManageAccount setting set to true can use this option. Docusign verifies that the email format is correct, but does not verify that the email is active. Using this overrides the BCC for Email Archive information setting for this envelope. Maximum Length: 100 characters. Example: if your account has BCC for Email Archive set up for the email address 'archive@mycompany.com' and you send an envelope using the BCC Email Override to send a BCC email to 'salesarchive@mycompany.com', then a copy of the envelope is only sent to the 'salesarchive@mycompany.com' email address.
emailsubjectstringNo—The subject line of the email message that is sent to all recipients. For information about adding merge field information to the email subject, see Template Email Subject Merge Fields. Note: The subject line is limited to 100 characters, including any merged fields.It is not truncated. It is an error if the text is longer than 100 characters.
enablewetsignstringNo—When true, the signer is allowed to print the document and sign it on paper.
enforcesignervisibilitystringNo—When true, the option selected in the Document Visibility section in your account [Sending Settings][sendingsettings] will be enforced for the envelope. See [Fields and Properties][fieldsproperties] for details about document visibility options. Setting enforceSignerVisibility to true also enables you to omit documents from the specified recipients' envelopes by using the excludedDocuments array. Recipients that have an administrative role (Agent, Editor, or Intermediaries) or informational role (Certified Deliveries or Carbon Copies) can always see all of the documents in an envelope, unless they are specifically excluded by using the excludedDocuments setting when an envelope is sent. Documents that do not have tabs are always visible to all recipients, unless they are excluded by using the excludedDocuments setting. Note: To use this functionality, [document visibility][docviz] must be enabled for the account. The document visibility feature is available in all developer accounts, but only in certain production account plans. Contact [Docusign Support][support] or your account manager to find out whether document visibility is available for your production account plan. [docviz]: /docs/esign-rest-api/reference/envelopes/envelopedocumentvisibility/ [sendingsettings]: https://admindemo.docusign.com/authenticate?goTo=sending [fieldsproperties]: https://support.docusign.com/s/document-item?rsc_301&bundleId=pik1583277475390&topicId=xgg1583277350154.html [support]: https://support.docusign.com/en/contactSupport#
envelopeattachmentslistNo—An array of attachment objects that provide information about the attachments that are associated with the envelope.
envelopecustommetadatajsonNo——
envelopedocumentslistNo—An array containing information about the documents that are included in the envelope.
envelopeidstringNo—The envelope ID of an envelope that you want to use as the basis for the template. The state of the envelope can be draft, sent, or completed.
envelopeidstampingstringNo—When true, Envelope ID Stamping is enabled. After a document or attachment is stamped with an Envelope ID, the ID is seen by all recipients and becomes a permanent part of the document and cannot be removed.
envelopelocationstringNo—Reserved for Docusign.
envelopemetadatajsonNo——
envelopeuristringNo—The URI for retrieving the envelope or envelopes.
expireafterstringNo—Not used. Use the expirations property in the notification object instead.
expiredatetimestringNo—Not used. Use the expirations property in the notification object instead.
expireenabledstringNo—Not used. Use the expirations property in the notification object instead.
externalenvelopeidstringNo—May contain an external identifier for the envelope.
favoritedbymestringNo——
folderidstringNo—The ID of the folder.
folderidslistNo——
foldernamestringNo——
folderslistNo—A list of folder objects.
hascommentsstringNo—When true, indicates that users have added comments to the envelope.
hasformdatachangedstringNo—When true, indicates that the data collected through form fields on a document has changed.
haswavfilestringNo—When true, indicates that a .wav file used for voice authentication is included in the envelope.
holderstringNo—Reserved for Docusign.
initialsentdatetimestringNo—The date and time the envelope was initially sent.
is21cfrpart11stringNo—When true, indicates compliance with United States Food and Drug Administration (FDA) regulations on electronic records and electronic signatures (ERES).
isacegentemplatestringNo——
isdocgentemplatestringNo——
isdynamicenvelopestringNo—When true, indicates that the envelope is a dynamic envelope.
issignatureproviderenvelopestringNo—When true, indicates that the envelope is a signature-provided envelope.
isticketrelatedenvelopestringNo——
lastmodifiedstringNo—The UTC date and time that the comment was last updated. Note: This can only be done by the creator.
lastmodifiedbyjsonNo——
lastmodifieddatetimestringNo—The date and time that the item was last modified.
lastusedstringNo——
locationstringNo—Reserved for Docusign.
lockinformationjsonNo—Envelope locks let you lock an envelope to prevent any changes while you are updating an envelope.
messagelockstringNo—When true, prevents senders from changing the contents of emailBlurb and emailSubject properties for the envelope. Additionally, this prevents users from making changes to the contents of emailBlurb and emailSubject properties when correcting envelopes. However, if the messageLock node is set to true and the emailSubject property is empty, senders and correctors are able to add a subject to the envelope.
namestringNo——
newpasswordstringNo—The user's new password.
notificationjsonNo—A complex element that specifies the notification settings for the envelope.
notificationuristringNo—The URI for retrieving notifications.
ownerjsonNo——
pagecountstringNo—An integer value specifying the number of document pages in the template.
passwordstringNo—The user's password. This property is used only when adding a new user via a Users: create request. The value must conform to the password rules defined in the account Security Settings. This property is not returned by GET requests and cannot be updated via PUT requests.
passwordprotectedstringNo——
powerformjsonNo—Contains details about a PowerForm.
powerformslistNo—An array of PowerForm objects.
purgecompleteddatestringNo—The date that a purge was completed.
purgerequestdatestringNo—The date that a purge was requested.
purgestatestringNo—Shows the current purge state for the envelope. Valid values: - unpurged: There has been no successful request to purge documents. - documents_queued: The envelope documents have been added to the purge queue, but have not been purged. - documents_dequeued: The envelope documents have been taken out of the purge queue. - documents_purged: The envelope documents have been successfully purged. - documents_and_metadata_queued: The envelope documents and metadata have been added to the purge queue, but have not yet been purged. - documents_and_metadata_purged: The envelope documents and metadata have been successfully purged. - documents_and_metadata_and_redact_queued: The envelope documents and metadata have been added to the purge queue, but have not yet been purged, nor has personal information been redacted. - documents_and_metadata_and_redact_purged: The envelope documents and metadata have been successfully purged, and personal information has been redacted. Related topics - Purging documents (eSingature Concepts) - Purging documents in an envelope (blog post)
recipientsjsonNo—Envelope recipients
recipientslockstringNo—When true, prevents senders from changing, correcting, or deleting the recipient information for the envelope.
recipientsuristringNo—Contains a URI for an endpoint that you can use to retrieve the recipients.
senderjsonNo——
sentdatetimestringNo—The UTC DateTime when the envelope was sent. This property is read-only.
sharedstringNo—When true, indicates the template is shared with the Everyone group, which includes all users on the account. When false, the template is shared only with the groups you specify.
signercansignonmobilestringNo—When true, recipients can sign on a mobile device. Note: Only Admin users can change this setting.
signinglocationstringNo—Specifies the physical location where the signing takes place. It can have two enumeration values; inPerson and online. The default value is online.
statusstringNo—Indicates the envelope status. Valid values are: * completed: The recipients have finished working with the envelope: the documents are signed and all required tabs are filled in. * created: The envelope is created as a draft. It can be modified and sent later. * declined: The envelope has been declined by the recipients. * delivered: The envelope has been delivered to the recipients. * sent: The envelope will be sent to the recipients after the envelope is created. * signed: The envelope has been signed by the recipients. * voided: The envelope is no longer valid and recipients cannot access or sign the envelope.
statuschangeddatetimestringNo—The data and time that the status changed.
templateidstringNo—The unique identifier of the template. If this is not provided, Docusign will generate a value.
templatesuristringNo—The URI for retrieving the templates.
transactionidstringNo—Used to identify an envelope. The ID is a sender-generated value and is valid in the Docusign system for 7 days. It is recommended that a transaction ID is used for offline signing to ensure that an envelope is not sent multiple times. The transactionId property can be used determine an envelope's status (i.e. was it created or not) in cases where the internet c onnection was lost before the envelope status was returned.
uristringNo—A URI containing the user ID.
usedisclosurestringNo—When true, the disclosure is shown to recipients in accordance with the account's Electronic Record and Signature Disclosure frequency setting. When false, the Electronic Record and Signature Disclosure is not shown to any envelope recipients. If the useDisclosure property is not set, then the account's normal disclosure setting is used and the value of the useDisclosure property is not returned in responses when getting envelope information.
usigstatestringNo——
voideddatetimestringNo—The date and time the envelope or template was voided.
voidedreasonstringNo—The reason the envelope or template was voided. Note: The string is truncated to the first 200 characters.
workflowjsonNo—Describes the workflow for an envelope.
status_codeintegerNo—HTTP status code of the completed call
responsejsonNo—Parsed JSON response body
failure_reasonstringNo——
failure_typestringNo——
failed_atstringNo——
failed_stepstringNo——
failed_layerstringNo——
failed_at_statestringNo——
errorstringNo——
error_typestringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—executeWaiting to call POST /v2.1/accounts/{accountId}/templates
completedNoYesYes—HTTP call succeeded
failedNoYesNo—HTTP call failed

State Diagram ​

Transitions ​

FromActionToDescription
pendingexecutecompletedPerform POST /v2.1/accounts/{accountId}/templates
* (any state)failfailedRecord the failure reason

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "docusign.templates.post-templates",
  "initial_data": {
    "base_url": "value",
    "accountid": "value"
  }
}