{
"swagger": "2.0",
"info": {
"version": "v2.1",
"title": "DocuSign REST 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"
}
},
"host": "www.docusign.net",
"basePath": "/restapi",
"schemes": [
"https"
],
"consumes": [
"application/json",
"application/xml"
],
"produces": [
"application/json"
],
"externalDocs": {
"description": "See the DocuSign REST API Guide for more information.",
"url": "https://docs.docusign.com/esign"
},
"paths": {
"/service_information": {
"get": {
"tags": [
"Services"
],
"summary": "Retrieves the available REST API versions.",
"description": "Retrieves the available REST API versions.\n\nDocuSign Production system: https://www.docusign.net/restapi/service_information\nDocuSign Demo system: https://demo.docusign.net/restapi/service_information\n\nYou do not need an integration key to view the REST API versions and resources.",
"operationId": "ServiceInformation_GetServiceInformation",
"consumes": [],
"produces": [],
"parameters": [],
"responses": {
"200": {
"description": "Successful response.",
"schema": {
"$ref": "#/definitions/serviceInformation"
}
},
"400": {
"description": "Error encountered.",
"schema": {
"$ref": "#/definitions/errorDetails"
}
}
},
"deprecated": false,
"x-ds-methodname": "getService",
"x-ds-method": "get",
"x-ds-service": "Diagnostics",
"x-ds-in-sdk": true
},
"parameters": []
},
"/v2.1": {
"get": {
"tags": [
"Resources"
],
"summary": "Lists resources for REST version specified",
"description": "Retrieves the base resources available for the eSignature REST API.\n\nYou do not need an integrator key to view the REST API versions and resources.\n\nExample: `https://demo.docusign.net/restapi/v2`\nlists all of the base resources available in version 2\nof the eSignature API on the DocuSign Demo system.\n\nTo view descriptions and samples of the service operations for all versions\nremove the version number and add /help to the URL.\n\nExample: `https://demo.docusign.net/restapi/help` lists the\neSignature API operations on the DocuSign Demo system\nwith XML and JSON request and response samples.",
"operationId": "ServiceInformation_GetResourceInformation",
"consumes": [],
"produces": [],
"parameters": [],
"responses": {
"200": {
"description": "Successful response.",
"schema": {
"$ref": "#/definitions/resourceInformation"
}
},
"400": {
"description": "Error encountered.",
"schema": {
"$ref": "#/definitions/errorDetails"
}
}
},
"deprecated": false,
"x-ds-methodname": "getResources",
"x-ds-method": "get",
"x-ds-service": "Diagnostics",
"x-ds-in-sdk": true
},
"parameters": []
},
"/v2.1/accounts": {
"post": {
"tags": [
"Accounts"
],
"summary": "Creates new accounts.",
"description": "Creates new DocuSign accounts.\nYou can use this method to create\na single account\nor up to 100 accounts at a time.\n\n**Note**: This method is restricted to partner integrations.\nYou must work with DocuSign Professional Services\nor DocuSign Business Development,\nwho will provide you with the Distributor Code\nand Distributor Password\nthat you need to include in the request body.\n\n\nWhen creating a single account,\nthe body of the request is a\n[`newAccountRequest`][newAccountRequest]\nobject.\n\nExample:\n\n```\n{\n \"newAccountRequest\": [\n {\n \"accountName\":\"Test Account\",\n \"distributorCode\":\"MY_DIST_CODE\",\n \"distributorPassword\":\"MY_DIST_PWD\",\n \"initialUser\":{\n \"email\":\"user@emaildomain.com\",\n \"firstName\":\"John\",\n \"middleName\": \"Harry\",\n \"lastName\":\"Doe\",\n \"suffixName\": \"\",\n \"userName\": \"John Doe\",\n \"jobTitle\": \"Engineer\",\n \"company\": \"Test Company\"\n },\n \"addressInformation\":{\n \"address1\": \"1234 Main Street\",\n \"address2\": \"Suite 100\",\n \"city\": \"Seattle\",\n \"state\": \"WA\",\n \"postalCode\": \"98101\",\n \"country\": \"US\",\n \"phone\": \"1234567890\",\n \"fax\": \"1234567891\"\n },\n \"planInformation\":{\n \"planId\":\"37085696-xxxx-xxxx-xxxx-7ea067752959\"\n },\n \"referralInformation\":{\n \"includedSeats\": \"1\",\n \"referralCode\": \"code\",\n \"referrerName\": \"name\"\n }\n }\n ]\n}\n\n```\nIf the request succeeds,\nit returns a\n201 (Created) HTTP response code.\nThe response returns the new account ID, password, and the default user\ninformation for each newly created account.\n\n\nWhen creating multiple accounts,\nthe body of the request is a\n`newAccountRequests`\nobject,\nwhich contains one or more\n[`newAccountDefinition`][newAccountDefinition]\nobjects.\nYou can create up to 100 new accounts\nat a time this way.\n\nThe body for a multi-account\ncreation request\nlooks like this in JSON:\n\n```\n{\n \"newAccountRequests\": [\n {\n \"accountName\": \"accountone\",\n . . .\n },\n {\n \"accountName\": \"accounttwo\",\n . . .\n }\n ]\n}\n```\n\nA multi-account request\nlooks like this in XML:\n\n```\n
(`from_to_status`) | Effective Status Qualifier | Valid Current Statuses |\n| :------------------------------------- | :------------------------- | :-------------------------------------------------------------------------- |\n| any (changed) | StatusChanged | any, created, sent, delivered, signed, completed, declined, voided, deleted |\n| created | Created | any, created, sent, delivered, signed, completed, declined, voided, deleted |\n| sent | Sent | any, sent, delivered, signed, completed, declined, voided, deleted |\n| delivered | StatusChanged | any, delivered, signed, completed, declined, voided, deleted |\n| signed | StatusChanged | any, signed, completed, declined, voided, deleted |\n| completed | Completed | any, completed, declined, voided, deleted |\n| declined | StatusChanged | any, declined, voided, deleted |\n| timedout
always return zero results | StatusChanged | any, voided, deleted |\n| voided | Voided | any, voided, deleted |\n| deleted | StatusChanged | any, deleted |\n\n## Extraneous results\n\nIn some cases, a request for a specific envelope status will\ninclude envelopes with additional statuses. For example, in\na request with a `from_date` of 2017-01-01, a `to_date` of\n2017-01-07 and the status qualifier (`from_to_status`) set\nto `delivered`, the response set might contain envelopes\nthat were created during that time period, but not delivered\nduring the time period. As a workaround, check the envelope\nstatus values in the result set as needed.\n\n\n### Related topics\n\n- [How to list envelope status changes](https://developers.docusign.com/docs/esign-rest-api/how-to/list-envelope-status-changes/)\n",
"operationId": "Envelopes_GetEnvelopes",
"consumes": [],
"produces": [],
"parameters": [
{
"name": "accountId",
"in": "path",
"description": "The external account number (int) or account ID GUID.",
"required": true,
"type": "string"
},
{
"name": "ac_status",
"in": "query",
"description": "Specifies the Authoritative Copy Status for the envelopes. The possible values are: Unknown, Original, Transferred, AuthoritativeCopy, AuthoritativeCopyExportPending, AuthoritativeCopyExported, DepositPending, Deposited, DepositedEO, or DepositFailed.",
"required": false,
"type": "string"
},
{
"name": "block",
"in": "query",
"required": false,
"type": "string",
"description": "Reserved for DocuSign.\n"
},
{
"name": "cdse_mode",
"in": "query",
"required": false,
"type": "string",
"description": "Reserved for DocuSign.\n"
},
{
"name": "continuation_token",
"in": "query",
"required": false,
"type": "string",
"description": "A token returned in the response to a previous API call that is used to resume a search query from a specific point."
},
{
"name": "count",
"in": "query",
"required": false,
"type": "string",
"description": "Optional. Number of items to return. Currently there is no implicit maximum limit of the number of items that can be returned.\n"
},
{
"name": "custom_field",
"in": "query",
"description": "Optional. Specifies a envelope custom field name and value searched for in the envelopes. Format: `custom_envelope_field_name=desired_value`\n\nExample: If you have an envelope custom field named \"Region\" and you want to search for all envelopes where the value is \"West\" you would use set this parameter to `Region=West`. \n \n",
"required": false,
"type": "string"
},
{
"name": "email",
"in": "query",
"required": false,
"type": "string",
"description": "Limit results to envelopes\nsent by the account user\nwith this email address.\n\n`user_name` must be given as well,\nand both `email` and `user_name`\nmust refer to an existing account user.\n"
},
{
"name": "envelope_ids",
"in": "query",
"required": false,
"type": "string",
"description": "Comma separated list of `envelopeId` values."
},
{
"name": "exclude",
"in": "query",
"required": false,
"type": "string",
"description": "Excludes information from the response. Enter as a comma-separated list (e.g., `folders,powerforms`). Valid values are:\n\n- `recipients`\n- `powerforms`\n- `folders`"
},
{
"name": "folder_ids",
"in": "query",
"required": false,
"type": "string",
"description": "Returns the envelopes from specific folders. Enter as a comma-separated list of either valid folder Guids or the following values: \n\n- `awaiting_my_signature`\n- `completed`\n- `draft`\n- `drafts`\n- `expiring_soon`\n- `inbox`\n- `out_for_signature`\n- `recyclebin`\n- `sentitems`\n- `waiting_for_others`"
},
{
"name": "folder_types",
"in": "query",
"required": false,
"type": "string",
"description": "A comma-separated list of folder types you want to retrieve envelopes from. Valid values are: \n\n- `normal`\n- `inbox`\n- `sentitems`\n- `draft`\n- `templates`"
},
{
"name": "from_date",
"in": "query",
"description": "Specifies the date and time\nto start looking for status changes.\nThis parameter is required\nunless `envelopeIds` or `transactionIds`\nare set.\n\n\nAlthough you can use any date format\nsupported by the .NET system library's\n[`DateTime.Parse()`][msoft] function,\nDocuSign recommends\nusing [ISO 8601][] format dates\nwith an explicit time zone offset\nIf you do not provide\na time zone offset,\nthe method uses the server's time zone.\n\nFor example, the following dates and times refer to the same instant:\n\n* `2017-05-02T01:44Z`\n* `2017-05-01T21:44-04:00`\n* `2017-05-01T18:44-07:00`\n\n\n[msoft]: https://docs.microsoft.com/en-us/dotnet/api/system.datetime.parse?redirectedfrom=MSDN&view=net-5.0#overloads\n[ISO 8601]: https://en.wikipedia.org/wiki/ISO_8601",
"required": false,
"type": "string"
},
{
"name": "from_to_status",
"in": "query",
"description": "This is the status type checked for in the `from_date`/`to_date` period. If `changed` is specified, then envelopes that changed status during the period are found. If for example, `created` is specified, then envelopes created during the period are found. Default is `changed`. \n\nPossible values are: Voided, Changed, Created, Deleted, Sent, Delivered, Signed, Completed, Declined, TimedOut and Processing.",
"required": false,
"type": "string"
},
{
"name": "include",
"in": "query",
"required": false,
"type": "string",
"description": "Specifies additional information to return about the envelopes.\nUse a comma-separated list, such as `folders, recipients` to specify information.\nValid values are:\n\n- `custom_fields`: The custom fields associated with the envelope.\n- `documents`: The documents associated with the envelope.\n- `attachments`: The attachments associated with the envelope.\n- `extensions`: Information about the email settings associated with the envelope.\n- `folders`: The folders where the envelope exists.\n- `recipients`: The recipients associated with the envelope.\n- `powerform`: The PowerForms associated with the envelope.\n- `payment_tabs`: The payment tabs associated with the envelope.\n"
},
{
"name": "include_purge_information",
"in": "query",
"required": false,
"type": "string",
"description": "When set to **true**, information about envelopes that have been deleted is included in the response."
},
{
"name": "intersecting_folder_ids",
"in": "query",
"required": false,
"type": "string",
"description": "A comma-separated list of folders that you want want to get envelopes from. Valid values are: \n\n- `normal`\n- `inbox`\n- `sentitems`\n- `draft`\n- `templates`"
},
{
"name": "last_queried_date",
"in": "query",
"required": false,
"type": "string",
"description": "Returns envelopes that were modified prior to the specified date and time. \n\nExample: `2020-05-09T21:56:12.2500000Z`"
},
{
"name": "order",
"in": "query",
"required": false,
"type": "string",
"description": "Returns envelopes in either ascending (`asc`) or descending (`desc`) order."
},
{
"name": "order_by",
"in": "query",
"required": false,
"type": "string",
"description": "Sorts results according to a specific property. Valid values are:\n\n- `last_modified`\n- `action_required`\n- `created`\n- `completed`\n- `envelope_name`\n- `expire`\n- `sent`\n- `signer_list`\n- `status`\n- `subject`\n- `user_name`\n- `status_changed`\n- `last_modified`"
},
{
"name": "powerformids",
"in": "query",
"required": false,
"type": "string",
"description": "A comma-separated list of `PowerFormId` values."
},
{
"name": "query_budget",
"in": "query",
"required": false,
"type": "string",
"description": "The time in seconds that the query should run before returning data."
},
{
"name": "requester_date_format",
"in": "query",
"required": false,
"type": "string",
"description": ""
},
{
"name": "search_text",
"in": "query",
"required": false,
"type": "string",
"description": "Free text search criteria that you can use to filter the list of envelopes that is returned."
},
{
"name": "start_position",
"in": "query",
"required": false,
"type": "string",
"description": "This value is supported and currently has no implicit maximum items.\n"
},
{
"name": "status",
"in": "query",
"description": "A comma-separated list of current envelope statuses to included in the response. Possible values are:\n\n* `completed`\n* `created`\n* `declined`\n* `deleted`\n* `delivered`\n* `processing`\n* `sent`\n* `signed`\n* `timedout`\n* `voided`\n\nThe `any` value is equivalent to any status.\n",
"required": false,
"type": "string"
},
{
"name": "to_date",
"in": "query",
"description": "Specifies the date and time\nto stop looking for status changes.\nThe default is the current date and time.\n\nAlthough you can use any date format\nsupported by the .NET system library's\n[`DateTime.Parse()`][msoft] function,\nDocuSign recommends\nusing [ISO 8601][] format dates\nwith an explicit time zone offset\nIf you do not provide\na time zone offset,\nthe method uses the server's time zone.\n\nFor example, the following dates and times refer to the same instant:\n\n* `2017-05-02T01:44Z`\n* `2017-05-01T21:44-04:00`\n* `2017-05-01T18:44-07:00`\n\n\n[msoft]: https://docs.microsoft.com/en-us/dotnet/api/system.datetime.parse?redirectedfrom=MSDN&view=net-5.0#overloads\n[ISO 8601]: https://en.wikipedia.org/wiki/ISO_8601\n",
"required": false,
"type": "string"
},
{
"name": "transaction_ids",
"in": "query",
"description": "If included in the query string, this is a comma separated list of envelope `transactionId`s. \n\nIf included in the `request_body`, this is a list of envelope `transactionId`s. \n\n###### Note: `transactionId`s are only valid in the DocuSign system for seven days.\n",
"required": false,
"type": "string"
},
{
"name": "user_filter",
"in": "query",
"required": false,
"type": "string",
"description": "Returns envelopes where the current user is the recipient, the sender, or the recipient only. (For example, `user_filter=sender`.) Valid values are:\n\n- `sender`\n- `recipient`\n- `recipient_only`"
},
{
"name": "user_id",
"in": "query",
"required": false,
"type": "string",
"description": "The ID of the user who created the envelopes to be retrieved. Note that an account can have multiple users, and any user with account access can retrieve envelopes by user_id from the account."
},
{
"name": "user_name",
"in": "query",
"required": false,
"type": "string",
"description": "Limit results to envelopes\nsent by the account user\nwith this user name.\n\n`email` must be given as well,\nand both `email` and `user_name`\nmust refer to an existing account user.\n"
}
],
"responses": {
"200": {
"description": "Successful response.",
"schema": {
"$ref": "#/definitions/envelopesInformation"
}
},
"400": {
"description": "Error encountered.",
"schema": {
"$ref": "#/definitions/errorDetails"
}
}
},
"deprecated": false,
"x-ds-methodname": "listStatusChanges",
"x-ds-method": "listStatusChanges",
"x-ds-service": "Envelopes",
"x-ds-in-sdk": true,
"x-ds-examples": [
{
"description": "This example shows a how to get information about\nenvelopes created since January 1, 2016 and before October 6, 2016.\nYou can leave off the `to_date` parameter to get envelopes created from the `from_date` to today.\n\nThe request for this endpoint has no payload.\n\n### Request\n```\nGET /restapi/v2.1/accounts/1703061/envelopes?from_date=2016-01-01&to_date=2016-10-06\n```\n",
"direction": "response",
"format": "json",
"response": {
"endPosition": "1",
"envelopes": [
{
"certificateUri": "/envelopes/379497bb-xxxx-xxxx-xxxx-a8e397f538d0/documents/certificate",
"customFieldsUri": "/envelopes/379497bb-xxxx-xxxx-xxxx-a8e397f538d0/custom_fields",
"documentsCombinedUri": "/envelopes/379497bb-xxxx-xxxx-xxxx-a8e397f538d0/documents/combined",
"documentsUri": "/envelopes/379497bb-xxxx-xxxx-xxxx-a8e397f538d0/documents",
"envelopeId": "379497bb-xxxx-xxxx-xxxx-a8e397f538d0",
"envelopeUri": "/envelopes/379497bb-xxxx-xxxx-xxxx-a8e397f538d0",
"notificationUri": "/envelopes/379497bb-xxxx-xxxx-xxxx-a8e397f538d0/notification",
"recipientsUri": "/envelopes/379497bb-xxxx-xxxx-xxxx-a8e397f538d0/recipients",
"status": "completed",
"statusChangedDateTime": "2016-10-04T15:26:28.2830000Z",
"templatesUri": "/envelopes/379497bb-xxxx-xxxx-xxxx-a8e397f538d0/templates"
},
{
"certificateUri": "/envelopes/4b728be4-xxxx-xxxx-xxxx-d63e23f822b6/documents/certificate",
"customFieldsUri": "/envelopes/4b728be4-xxxx-xxxx-xxxx-d63e23f822b6/custom_fields",
"documentsCombinedUri": "/envelopes/4b728be4-xxxx-xxxx-xxxx-d63e23f822b6/documents/combined",
"documentsUri": "/envelopes/4b728be4-xxxx-xxxx-xxxx-d63e23f822b6/documents",
"envelopeId": "4b728be4-xxxx-xxxx-xxxx-d63e23f822b6",
"envelopeUri": "/envelopes/4b728be4-xxxx-xxxx-xxxx-d63e23f822b6",
"notificationUri": "/envelopes/4b728be4-xxxx-xxxx-xxxx-d63e23f822b6/notification",
"recipientsUri": "/envelopes/4b728be4-xxxx-xxxx-xxxx-d63e23f822b6/recipients",
"status": "sent",
"statusChangedDateTime": "2016-10-05T01:04:58.7770000Z",
"templatesUri": "/envelopes/4b728be4-xxxx-xxxx-xxxx-d63e23f822b6/templates"
}
],
"nextUri": "",
"previousUri": "",
"resultSetSize": "2",
"startPosition": "0",
"totalSetSize": "2"
},
"request": null,
"style": "custom",
"title": "Get Status About Envelopes Since a Specified Date"
}
]
},
"post": {
"tags": [
"Envelopes"
],
"summary": "Creates an envelope.",
"description": "Creates and sends an envelope or creates a draft envelope.\nEnvelopes are fundamental resources in the DocuSign platform.\n\nWith this method you can:\n\n* Create and send an envelope\n with [documents][], [recipients][], and [tabs][].\n* [Create and send an envelope from a template](https://developers.docusign.com/docs/esign-rest-api/esign101/concepts/templates/).\n* [Create and send an envelope from\n a combination of documents and templates](https://developers.docusign.com/docs/esign-rest-api/esign101/concepts/templates/composite/).\n* Create a draft envelope.\n\n\nWhen you use this method\nto create and send an envelope\nin a single request,\nthe following parameters in the request body (an [`envelopeDefinition`][envelopeDefinition] object) are required:\n\n| Parameter | Description |\n| :-------- | :---------- |\n| `status` | Set to `sent` to send the envelope to recipients.
Set to `created` (or don't set at all) to save the envelope as a draft. |\n| `emailSubject` | The subject of the email used to send the envelope. |\n| `documents` | The [documents][] to be signed. |\n| `recipients` | The email addresses of the envelope [recipients][]. |\n\n\nWhen you create an envelope by using a\n[composite template](https://developers.docusign.com/docs/esign-rest-api/esign101/concepts/templates/composite/),\nyou should specify the envelope custom fields in the inline template.\nAny custom fields that you specify at the root level are ignored.\n\nIf the envelope has a workflow definition\nand the `workflowStatus` is `paused`,\nthe envelope will not be sent immediately,\neven if the envelope's `status` is `sent`.\n\n\n### Related topics\n\n\nThere are many ways to use envelopes.\nYou can create and send an envelope\nwith a single API request,\nor you can use several API requests\nto create, populate, and send envelopes.\n\n\n| See: | To learn about: |\n| :----------------------- | :--------------------------------------------------------------------------------------------------------------------------------- |\n| [Envelopes][envelopes] | Envelopes, [adding documents][addingdocs], [tracking][], [locking][], [deleting][], [templates][] |\n| [Documents][documents] | Documents, [attachments][], [supplemental documents][supdocs], [authoritative copies][authcopies], [purging][] |\n| [Recipients][recipients] | Recipients, [recipient types][reciptypes], [recipient status][recipstatus] |\n| [Tabs][tabs] | Tabs, [anchoring tabs][tabanchor], [custom tabs][tabcustom], [payments][] |\n\n\n\nThe following how-to articles show how to\nconfigure this method's\n[`envelopeDefinition`][envelopeDefinition] request body\nto perform common tasks.\n\nRequesting signatures\n\n- [How to request a signature by email](https://developers.docusign.com/docs/esign-rest-api/how-to/request-signature-email-remote/)\n- [How to request a signature by email using a template](https://developers.docusign.com/docs/esign-rest-api/how-to/request-signature-template-remote/)\n- [How to request a signature by SMS delivery](https://developers.docusign.com/docs/esign-rest-api/how-to/request-signature-sms/)\n- [How to request a signature using a composite template](https://developers.docusign.com/docs/esign-rest-api/how-to/request-signature-composite-template-embedded/)\n\nRequiring authentication\n\n- [How to require access code authentication for a recipient](https://developers.docusign.com/docs/esign-rest-api/how-to/require-access-code-recipient/)\n- [How to require SMS authentication for a recipient](https://developers.docusign.com/docs/esign-rest-api/how-to/sms-auth/)\n- [How to require phone authentication for a recipient](https://developers.docusign.com/docs/esign-rest-api/how-to/phone-auth/)\n- [How to require knowledge-based authentication (KBA) for a recipient](https://developers.docusign.com/docs/esign-rest-api/how-to/knowledge-based-authentication/)\n- [How to require ID verification (IDV) for a recipient](https://developers.docusign.com/docs/esign-rest-api/how-to/id-verification/)\n\nSending envelopes\n\n- [How to send an envelope via your app](https://developers.docusign.com/docs/esign-rest-api/how-to/embedded-sending/)\n- [How to bulk-send envelopes](https://developers.docusign.com/docs/esign-rest-api/how-to/bulk-send-envelopes/)\n- [How to send a request for payment](https://developers.docusign.com/docs/esign-rest-api/how-to/request-a-payment/)\n\nSetting tab values\n\n- [How to set envelope tab values](https://developers.docusign.com/docs/esign-rest-api/how-to/set-envelope-tab-values/)\n- [How to set tab values in a template](https://developers.docusign.com/docs/esign-rest-api/how-to/set-template-tab-values/)\n\nApplying brands\n\n- [How to apply a brand to an envelope](https://developers.docusign.com/docs/esign-rest-api/how-to/apply-brand-to-envelope/)\n- [How to apply a brand and template to an envelope](https://developers.docusign.com/docs/esign-rest-api/how-to/apply-brand-and-template-to-envelope/)\n\nDocuments, conditional recipients, pausing a workflow\n\n- [How to attach documents via binary transfer](https://developers.docusign.com/docs/esign-rest-api/how-to/send-binary/)\n- [How to use conditional recipients](https://developers.docusign.com/docs/esign-rest-api/how-to/use-conditional-recipients/)\n- [How to pause a signature workflow](https://developers.docusign.com/docs/esign-rest-api/how-to/pause-workflow/)\n\n\n\n\n\n[addingdocs]: https://developers.docusign.com/docs/esign-rest-api/esign101/concepts/envelopes/\n[attachments]: https://developers.docusign.com/docs/esign-rest-api/esign101/concepts/documents/\n[authcopies]: https://developers.docusign.com/docs/esign-rest-api/esign101/concepts/documents/\n[conoverview]: https://developers.docusign.com/docs/esign-rest-api/esign101/concepts/overview/\n[deleting]: https://developers.docusign.com/docs/esign-rest-api/esign101/concepts/envelopes/\n[documents]: https://developers.docusign.com/docs/esign-rest-api/esign101/concepts/documents/\n[envelopeDefinition]: https://developers.docusign.com/docs/esign-rest-api/reference/envelopes/envelopes/create/#definition__envelopedefinition\n[envelopes]: https://developers.docusign.com/docs/esign-rest-api/esign101/concepts/envelopes/\n[locking]: https://developers.docusign.com/docs/esign-rest-api/esign101/concepts/envelopes/\n[payments]: https://developers.docusign.com/docs/esign-rest-api/esign101/concepts/tabs/payment/\n[purging]: https://developers.docusign.com/docs/esign-rest-api/esign101/concepts/documents/\n[recipients]: https://developers.docusign.com/docs/esign-rest-api/esign101/concepts/recipients/\n[recipstatus]: https://developers.docusign.com/docs/esign-rest-api/esign101/concepts/recipients/\n[reciptypes]: https://developers.docusign.com/docs/esign-rest-api/esign101/concepts/recipients/\n[supdocs]: https://developers.docusign.com/docs/esign-rest-api/esign101/concepts/documents/\n[tabanchor]: https://developers.docusign.com/docs/esign-rest-api/esign101/concepts/tabs/auto-place/\n[tabcustom]: https://developers.docusign.com/docs/esign-rest-api/esign101/concepts/tabs/custom-tabs/\n[tabs]: https://developers.docusign.com/docs/esign-rest-api/esign101/concepts/tabs/\n[tabtypes]: https://developers.docusign.com/docs/esign-rest-api/esign101/concepts/tabs/\n[templates]: https://developers.docusign.com/docs/esign-rest-api/esign101/concepts/envelopes/\n[tracking]: https://developers.docusign.com/docs/esign-rest-api/esign101/concepts/envelopes/\n\n",
"operationId": "Envelopes_PostEnvelopes",
"consumes": [],
"produces": [],
"parameters": [
{
"name": "accountId",
"in": "path",
"description": "The external account number (int) or account ID GUID.",
"required": true,
"type": "string"
},
{
"name": "cdse_mode",
"in": "query",
"required": false,
"type": "string",
"description": "Reserved for DocuSign.\n"
},
{
"name": "change_routing_order",
"in": "query",
"required": false,
"type": "string",
"description": "When true, users can define the routing order of recipients while sending documents for signature."
},
{
"name": "completed_documents_only",
"in": "query",
"description": "Reserved for DocuSign.\n",
"required": false,
"type": "string"
},
{
"name": "merge_roles_on_draft",
"in": "query",
"description": "When set to **true**, template roles will be merged, and empty recipients will be removed. This parameter applies when you create a draft envelope with multiple templates. (To create a draft envelope, the `status` field is set to `created`.)\n\n**Note**: DocuSign recommends that this parameter should be set to **true** whenever you create a draft envelope with multiple templates.",
"required": false,
"type": "string"
},
{
"name": "envelopeDefinition",
"in": "body",
"required": false,
"schema": {
"$ref": "#/definitions/envelopeDefinition"
},
"description": ""
}
],
"responses": {
"201": {
"description": "Successful response.",
"schema": {
"$ref": "#/definitions/envelopeSummary"
}
},
"400": {
"description": "Error encountered.",
"schema": {
"$ref": "#/definitions/errorDetails"
}
}
},
"deprecated": false,
"x-ds-methodname": "createEnvelope",
"x-ds-method": "create",
"x-ds-service": "Envelopes",
"x-ds-in-sdk": true,
"x-ds-examples": [
{
"description": "This example shows a request/response that includes:\n\n* A single PDF document to be signed\n* One tab positioned using anchor text\n* One recipient\n",
"direction": "both",
"format": "json",
"response": {
"envelopeId": "63e05468-xxxx-xxxx-xxxx-8b48f7dbeb80",
"status": "sent",
"statusDateTime": "2016-05-29T17:11:56.1800000Z",
"uri": "/envelopes/63e05468-xxxx-xxxx-xxxx-8b48f7dbeb80"
},
"request": {
"documents": [
{
"documentBase64": "[Document content (PDF File)]",
"documentId": "1",
"fileExtension": "pdf",
"name": "NDA.pdf"
}
],
"emailSubject": "Please sign the NDA",
"recipients": {
"signers": [
{
"email": "the_nda_signer@example.com",
"name": "Darlene Petersen",
"recipientId": "1",
"routingOrder": "1",
"tabs": {
"dateSignedTabs": [
{
"anchorString": "signer1date",
"anchorYOffset": "-6",
"fontSize": "Size12",
"name": "Date Signed",
"recipientId": "1",
"tabLabel": "date_signed"
}
],
"fullNameTabs": [
{
"anchorString": "signer1name",
"anchorYOffset": "-6",
"fontSize": "Size12",
"name": "Full Name",
"recipientId": "1",
"tabLabel": "Full Name"
}
],
"signHereTabs": [
{
"anchorString": "signer1sig",
"anchorUnits": "mms",
"anchorXOffset": "0",
"anchorYOffset": "0",
"name": "Please sign here",
"optional": "false",
"recipientId": "1",
"scaleValue": 1,
"tabLabel": "signer1sig"
}
]
}
}
]
},
"status": "sent"
},
"style": "custom",
"title": "Request Signature on Single Document by Email"
},
{
"description": "This example shows a request/response that includes:\n\n* Multiple documents, both pdf and Word docx files.\n* Multiple tabs including signing, fullName, dateSigned, and text tabs.\n* Tabs positioned using anchor text.\n* Two recipients, a signer and a cc recipient.\n",
"direction": "both",
"format": "json",
"response": {
"envelopeId": "63e05468-xxxx-xxxx-xxxx-8b48f7dbeb80",
"status": "sent",
"statusDateTime": "2016-05-29T17:11:56.1800000Z",
"uri": "/envelopes/63e05468-xxxx-xxxx-xxxx-8b48f7dbeb80"
},
"request": {
"documents": [
{
"documentBase64": "[Document 1 content (PDF File)]",
"documentId": "1",
"fileExtension": "pdf",
"name": "NDA.pdf"
},
{
"documentBase64": "[Document 2 content (PDF File)]",
"documentId": "2",
"fileExtension": "pdf",
"name": "House.pdf"
},
{
"documentBase64": "[Document 3 content (Word file)]",
"documentId": "3",
"fileExtension": "docx",
"name": "contractor_agreement.docx"
}
],
"emailSubject": "Please sign the house documentation package",
"recipients": {
"carbonCopies": [
{
"email": "cody_vigil@worldwidecorp.example.com",
"name": "Cody Vigil",
"recipientId": "2",
"routingOrder": "2"
}
],
"signers": [
{
"email": "darlene_petersen@newco.example.com",
"name": "Darlene Petersen",
"recipientId": "1",
"routingOrder": "1",
"tabs": {
"dateSignedTabs": [
{
"anchorString": "signer1date",
"anchorYOffset": "-6",
"fontSize": "Size12",
"name": "Date Signed",
"recipientId": "1",
"tabLabel": "date_signed"
},
{
"documentId": "2",
"fontSize": "Size12",
"name": "Date Signed",
"pageNumber": "1",
"recipientId": "1",
"tabLabel": "doc3_date_signed",
"xPosition": "89",
"yPosition": "100"
}
],
"fullNameTabs": [
{
"anchorString": "signer1name",
"anchorYOffset": "-6",
"fontSize": "Size12",
"name": "Full Name",
"recipientId": "1",
"tabLabel": "Full Name"
}
],
"signHereTabs": [
{
"anchorString": "signer1sig",
"anchorUnits": "mms",
"anchorXOffset": "0",
"anchorYOffset": "0",
"name": "Please sign here",
"optional": "false",
"recipientId": "1",
"scaleValue": 1,
"tabLabel": "signer1sig"
},
{
"documentId": "2",
"name": "Please sign here",
"optional": "false",
"pageNumber": "1",
"recipientId": "2",
"scaleValue": 1,
"tabLabel": "signer1_doc2",
"xPosition": "89",
"yPosition": "40"
},
{
"anchorString": "Client Signature",
"anchorUnits": "mms",
"anchorXOffset": "0",
"anchorYOffset": "-4",
"name": "Please sign here",
"optional": "false",
"recipientId": "1",
"scaleValue": 1,
"tabLabel": "doc3_client_sig"
}
],
"textTabs": [
{
"anchorString": "signer1company",
"anchorYOffset": "-8",
"fontSize": "Size12",
"name": "Company",
"recipientId": "1",
"required": "true",
"tabLabel": "Company"
},
{
"anchorString": "Client Name",
"anchorYOffset": "-38",
"fontSize": "Size12",
"name": "Company",
"recipientId": "1",
"required": "true",
"tabLabel": "Company"
},
{
"documentId": "3",
"fontSize": "Size10",
"name": "Company",
"pageNumber": "1",
"recipientId": "1",
"required": "true",
"tabLabel": "Company",
"xPosition": "145",
"yPosition": "195"
}
]
}
}
]
},
"status": "sent"
},
"style": "custom",
"title": "Multiple Documents and Tabs, Signer and CC Recipients"
},
{
"description": "For some documents, one or more signatures must be witnessed by an appointed [notary public](https://en.wikipedia.org/wiki/Notary_public).\n\nDocuSign supports eNotary services for many jurisdictions. This example demonstrates how to send an envelope to be signed by Susan Signer with her signature witnessed by Nancy Notary. You must know the name and email address of the signer and the notary public for a signature to be notarized.\n\nNote that the full legal name of the signer must be used. It will be checked against the signer's government-issued proof of identity by the notary public.\n\nPlease see the [DocuSign eNotary resource page](https://support.docusign.com/en/guides/ndse-user-guide-enotary-resources) for further information. It lists the jurisdictions participating in the DocuSign eNotary program and additional reference information.\n\nNote that eNotary services are not included with all account types and are **not** included by default with demo/developer sandbox accounts. To enable eNotary service for your sandbox account, contact your DocuSign technical support person or DocuSign customer service.\n\nThe example includes event notification via the Connect service.",
"direction": "both",
"format": "json",
"response": {
"envelopeId": "aaaaaaaa-xxxx-xxxx-xxxx-52a86fb94be8",
"uri": "/envelopes/aaaaaaaa-xxxx-xxxx-xxxx-52a86fb94be8",
"statusDateTime": "2017-06-15T11:02:39.3996430Z",
"status": "sent"
},
"request": {
"emailSubject": "Important agreement for notarized signature",
"status": "sent",
"recipients": {
"inPersonSigners": [
{
"recipientId": 1,
"email": "susan_signer@gmail.com",
"name": "Susan Anne Signer",
"routingOrder": 1,
"inPersonSigningType": "notary",
"notaryHost": {
"name": "Nancy Notary",
"email": "nancy@notary-svc.com",
"recipientId": 2
},
"tabs": {
"signHereTabs": [
{
"documentId": "1",
"optional": "false",
"recipientId": "1",
"xPosition": "100",
"yPosition": "100",
"pageNumber": "1",
"name": "Please sign here",
"tabLabel": "signer1sig"
}
]
}
}
]
},
"documents": [
{
"documentId": "1",
"name": "important document.docx",
"fileExtension": "docx",
"documentBase64": "[Contents elided]"
}
],
"eventNotification": {
"includeDocumentFields": "false",
"envelopeEvents": [
{
"envelopeEventStatusCode": "Completed"
},
{
"envelopeEventStatusCode": "Declined"
},
{
"envelopeEventStatusCode": "Voided"
}
],
"url": "https://listener.example.com/docusign_notifications",
"requireAcknowledgment": "true",
"includeSenderAccountAsCustomField": "true",
"loggingEnabled": "true",
"includeDocuments": "false",
"signMessageWithX509Cert": "true"
}
},
"style": "custom",
"title": "Create a Notarized Signing Recipient"
},
{
"description": "DocuSign enables document signers to use\nelectronic or\ndigital signatures.\n\nDocuSign has tightly integrated standard digital signatures into the DocuSign Signature platform. This enables a single envelope to include:\n\n* electronic signatures,\n* AES digital signatures using certificates from DocuSign or from your organization,\n* QES digital signatures from government certified Trust Service Providers (TSPs).\n\nThis example enables the signer to create an eIDAS compliant AES signature with embedded signing. InPerson signers can also use SBS digital signatures.\n\n[More information on creating SBS digital signature requests.](https://developers.docusign.com/docs/esign-rest-api/esign101/concepts/standards-based-signatures/)\n\nThe `clientId` in the example tells DocuSign that the Signing Ceremony will be embedded.\nThe example also includes an `eventNotification` object for receiving envelope status updates from DocuSign.\n\n## Embedding the signing ceremony\n1. Send the `Envelopes: create` call as shown below in the Request/Response section.\n2. The response will include the `envelopeId`\n3. Use the [EnvelopeViews: createRecipient](https://developers.docusign.com/docs/esign-rest-api/reference/envelopes/envelopeviews/createrecipient/) request to obtain the redirectURL as follows:\n\n`POST /v2.1/accounts/{accountId}/envelopes/{envelopeId}/views/recipient`\n\n````\n{\n \"clientUserId\": \"1000\",\n \"email\": \"Sam@spade.com\",\n \"userName\": \"Sam Spade\",\n \"returnUrl\": \"https://your_app.example.com\",\n \"AuthenticationMethod\": \"Password\"\n}\n````\nThe response will include the `url`. Redirect the user's browser to the url to start the signing ceremony.\n\n**Note**: You must **immediately** redirect the user to the url you receive from DocuSign. The url is only valid for 5 minutes. Don't request a recipient view url until you are ready to redirect the user's browser.\n",
"direction": "both",
"format": "json",
"response": {
"envelopeId": "caaaaaaa-xxxx-xxxx-xxxx-c171528e99c8",
"uri": "/envelopes/caaaaaaa-xxxx-xxxx-xxxx-c171528e99c8",
"statusDateTime": "2017-06-22T06:44:49.1642220Z",
"status": "sent"
},
"request": {
"documents": [
{
"documentId": "1",
"name": " Agreement",
"fileExtension": "html",
"documentBase64": "[Contents elided]"
}
],
"emailSubject": "NewCo agreement for signature",
"status": "sent",
"recipients": {
"signers": [
{
"recipientId": "1",
"clientUserId": "1000",
"email": "Sam@spade.com",
"name": "Sam Spade",
"recipientSignatureProviders": [
{
"signatureProviderName": "UniversalSignaturePen_OpenTrust_Hash_TSP",
"signatureProviderOptions": {
"SMS": "+33134567899"
}
}
],
"routingOrder": "1",
"tabs": {
"signHereTabs": [
{
"documentId": "1",
"optional": "false",
"recipientId": "1",
"name": "Please sign here",
"tabLabel": "signer1sig",
"anchorString": "signer1sig"
}
]
}
}
]
},
"eventNotification": {
"includeDocumentFields": "false",
"envelopeEvents": [
{
"envelopeEventStatusCode": "Completed"
},
{
"envelopeEventStatusCode": "Declined"
},
{
"envelopeEventStatusCode": "Voided"
}
],
"url": "https://your_app.example.com/listener",
"requireAcknowledgment": "true",
"includeSenderAccountAsCustomField": "true",
"loggingEnabled": "true",
"includeDocuments": "false",
"signMessageWithX509Cert": "true"
}
},
"style": "custom",
"title": "Request an SBS digital signature, with an embedded signing ceremony"
}
]
},
"parameters": []
},
"/v2.1/accounts/{accountId}/envelopes/{envelopeId}": {
"get": {
"tags": [
"Envelopes"
],
"summary": "Gets the status of a single envelope.",
"description": "Retrieves the overall status for the specified envelope.\nTo get the status of a list of envelopes, use\n[Envelope: listStatusChanges ](https://developers.docusign.com/docs/esign-rest-api/reference/envelopes/envelopes/liststatuschanges/).\n\n### Related topics\n\n- [How to get envelope information](https://developers.docusign.com/docs/esign-rest-api/how-to/get-envelope-information/)\n",
"operationId": "Envelopes_GetEnvelope",
"consumes": [],
"produces": [],
"parameters": [
{
"name": "accountId",
"in": "path",
"description": "The external account number (int) or account ID GUID.",
"required": true,
"type": "string"
},
{
"name": "envelopeId",
"in": "path",
"description": "The envelope's GUID. \n\nExample: `93be49ab-xxxx-xxxx-xxxx-f752070d71ec`\n",
"required": true,
"type": "string"
},
{
"name": "advanced_update",
"in": "query",
"description": "When **true**, envelope information can be added or modified.",
"required": false,
"type": "string"
},
{
"name": "include",
"in": "query",
"required": false,
"type": "string",
"description": "Specifies additional information about the envelope to return. Enter a comma-separated list, such as `tabs,recipients`. Valid values are:\n\n- `custom_fields`: The custom fields associated with the envelope.\n- `documents`: The documents associated with the envelope.\n- `attachments`: The attachments associated with the envelope.\n- `extensions`: Information about the email settings associated with the envelope.\n- `folders`: The folder where the envelope exists.\n- `recipients`: The recipients associated with the envelope.\n- `powerform`: The PowerForms associated with the envelope.\n- `tabs`: The tabs associated with the envelope.\n- `payment_tabs`: The payment tabs associated with the envelope.\n"
}
],
"responses": {
"200": {
"description": "Successful response.",
"schema": {
"$ref": "#/definitions/envelope"
}
},
"400": {
"description": "Error encountered.",
"schema": {
"$ref": "#/definitions/errorDetails"
}
}
},
"deprecated": false,
"x-ds-methodname": "getEnvelope",
"x-ds-method": "get",
"x-ds-service": "Envelopes",
"x-ds-in-sdk": true,
"x-ds-examples": [
{
"description": "This example shows a how to get information about\nan envelope with a given envelope id.\n\nThe request for this endpoint has no payload.\n\n### Request\n```\nGET /restapi/v2.1/accounts/1703061/envelopes/4b728be4-xxxx-xxxx-xxxx-d63e23f822b6\n```\n",
"direction": "response",
"format": "json",
"response": {
"allowMarkup": "false",
"autoNavigation": "true",
"brandId": "56502fe1-xxxx-xxxx-xxxx-97cb5c43176a",
"certificateUri": "/envelopes/4b728be4-xxxx-xxxx-xxxx-d63e23f822b6/documents/certificate",
"createdDateTime": "2016-10-05T01:04:58.1830000Z",
"customFieldsUri": "/envelopes/4b728be4-xxxx-xxxx-xxxx-d63e23f822b6/custom_fields",
"documentsCombinedUri": "/envelopes/4b728be4-xxxx-xxxx-xxxx-d63e23f822b6/documents/combined",
"documentsUri": "/envelopes/4b728be4-xxxx-xxxx-xxxx-d63e23f822b6/documents",
"emailSubject": "Please sign the NDA",
"enableWetSign": "true",
"envelopeId": "4b728be4-xxxx-xxxx-xxxx-d63e23f822b6",
"envelopeIdStamping": "true",
"envelopeUri": "/envelopes/4b728be4-xxxx-xxxx-xxxx-d63e23f822b6",
"initialSentDateTime": "2016-10-05T01:04:58.7770000Z",
"is21CFRPart11": "false",
"isSignatureProviderEnvelope": "false",
"lastModifiedDateTime": "2016-10-05T01:04:58.1830000Z",
"notificationUri": "/envelopes/4b728be4-xxxx-xxxx-xxxx-d63e23f822b6/notification",
"purgeState": "unpurged",
"recipientsUri": "/envelopes/4b728be4-xxxx-xxxx-xxxx-d63e23f822b6/recipients",
"sentDateTime": "2016-10-05T01:04:58.7770000Z",
"status": "sent",
"statusChangedDateTime": "2016-10-05T01:04:58.7770000Z",
"templatesUri": "/envelopes/4b728be4-xxxx-xxxx-xxxx-d63e23f822b6/templates"
},
"request": null,
"style": "custom",
"title": "Get Status About a Specific Envelope"
},
{
"description": "This example shows a how to get information about\nenvelopes created since January 1, 2016 and before October 6, 2016.\nYou can leave off the `to_date` parameter to get envelopes created from the `from_date` to today.\n\nThe request for this endpoint has no payload.\n\n### Request\n```\nGET /restapi/v2.1/accounts/1703061/envelopes?from_date=2016-01-01&to_date=2016-10-06\n```\n",
"direction": "response",
"format": "json",
"response": {
"endPosition": "1",
"envelopes": [
{
"certificateUri": "/envelopes/379497bb-xxxx-xxxx-xxxx-a8e397f538d0/documents/certificate",
"customFieldsUri": "/envelopes/379497bb-xxxx-xxxx-xxxx-a8e397f538d0/custom_fields",
"documentsCombinedUri": "/envelopes/379497bb-xxxx-xxxx-xxxx-a8e397f538d0/documents/combined",
"documentsUri": "/envelopes/379497bb-xxxx-xxxx-xxxx-a8e397f538d0/documents",
"envelopeId": "379497bb-xxxx-xxxx-xxxx-a8e397f538d0",
"envelopeUri": "/envelopes/379497bb-xxxx-xxxx-xxxx-a8e397f538d0",
"notificationUri": "/envelopes/379497bb-xxxx-xxxx-xxxx-a8e397f538d0/notification",
"recipientsUri": "/envelopes/379497bb-xxxx-xxxx-xxxx-a8e397f538d0/recipients",
"status": "completed",
"statusChangedDateTime": "2016-10-04T15:26:28.2830000Z",
"templatesUri": "/envelopes/379497bb-xxxx-xxxx-xxxx-a8e397f538d0/templates"
},
{
"certificateUri": "/envelopes/4b728be4-xxxx-xxxx-xxxx-d63e23f822b6/documents/certificate",
"customFieldsUri": "/envelopes/4b728be4-xxxx-xxxx-xxxx-d63e23f822b6/custom_fields",
"documentsCombinedUri": "/envelopes/4b728be4-xxxx-xxxx-xxxx-d63e23f822b6/documents/combined",
"documentsUri": "/envelopes/4b728be4-xxxx-xxxx-xxxx-d63e23f822b6/documents",
"envelopeId": "4b728be4-xxxx-xxxx-xxxx-d63e23f822b6",
"envelopeUri": "/envelopes/4b728be4-xxxx-xxxx-xxxx-d63e23f822b6",
"notificationUri": "/envelopes/4b728be4-xxxx-xxxx-xxxx-d63e23f822b6/notification",
"recipientsUri": "/envelopes/4b728be4-xxxx-xxxx-xxxx-d63e23f822b6/recipients",
"status": "sent",
"statusChangedDateTime": "2016-10-05T01:04:58.7770000Z",
"templatesUri": "/envelopes/4b728be4-xxxx-xxxx-xxxx-d63e23f822b6/templates"
}
],
"nextUri": "",
"previousUri": "",
"resultSetSize": "2",
"startPosition": "0",
"totalSetSize": "2"
},
"request": null,
"style": "custom",
"title": "Get Status About Envelopes Since a Specified Date"
}
]
},
"put": {
"tags": [
"Envelopes"
],
"summary": "Send, void, or modify a draft envelope. Purge documents from a completed envelope.",
"description": "This method enables you to make changes to an envelope.\nYou can use it to:\n\n* [Send a draft envelope](#sending-a-draft-envelope)\n* [Void an in-process envelope](#voiding-an-in-process-envelope)\n* [Modify a draft envelope](#modifying-envelope-email-information)\n* [Purge documents and envelope metadata from the DocuSign platform](#purging-documents-from-docusign)\n\nAlthough the request body for this method\nis a complete envelope definition,\nyou only need to provide\nthe properties that\nyou're updating.\n\n## Sending a draft envelope\n\nTo send a draft envelope, include the following code in the request body:\n\n```json\n{\n \"status\": \"sent\"\n}\n```\n\nYou can attach a workflow before sending the envelope:\n\n```json\n{\n \"status\": \"sent\",\n \"workflow\": {\n \"workflowSteps\": [\n {\n \"action\": \"pause_before\",\n \"description\": \"pause_before routing order 2\",\n \"itemId\": 2,\n \"triggerOnItem\": \"routing_order\"\n }\n ]\n }\n}\n```\n\n## Working with workflows\n\nTo unpause a workflow, the request body should include this:\n\n```json\n{\n \"workflow\": {\n \"workflowStatus\": \"in_progress\"\n }\n}\n```\n\n## Voiding an in-process envelope\n\nTo void an in-process envelope, include the following code in the request body:\n\n```json\n{\n \"status\": \"voided\",\n \"voidedReason\": \"The reason for voiding the envelope\"\n}\n```\n\n## Modifying envelope email information\n\nTo change the email subject and message of a draft envelope,\ninclude the following code in the request body:\n\n```json\n{\n \"emailSubject\": \"new email subject\",\n \"emailBlurb\": \"new email message\"\n}\n```\n\n## Purging documents from docusign\n\nTo place only the documents\nin the purge queue,\nleaving any\ncorresponding attachments\nand tabs in the DocuSign platform,\nset the `purgeState` property\nto `documents_queued`.\n\n```json\n{\n \"envelopeId\": \"222e6847-xxxx-xxxx-xxxx-72a3c9c16fca\",\n \"purgeState\": \"documents_queued\"\n}\n```\n\nTo place documents,\nattachments,\nand tabs\nin the purge queue,\nset the `purgeState` property\nto `documents_and_metadata_queued`.\n\n```json\n{\n \"envelopeId\": \"222e6847-xxxx-xxxx-xxxx-72a3c9c16fca\",\n \"purgeState\": \"documents_and_metadata_queued\"\n}\n```\n\nTo place documents,\nattachments,\nand tabs\nin the purge queue\nand to redact personal information,\nset the `purgeState` property\nto `documents_and_metadata_and_redact_queued`.\n\n```json\n{\n \"envelopeId\": \"222e6847-xxxx-xxxx-xxxx-72a3c9c16fca\",\n \"purgeState\": \"documents_and_metadata_and_redact_queued\"\n}\n```\n\nYou can purge documents\nonly from completed envelopes\nthat are not marked as the authoritative copy.\nThe user requesting the purge\nmust have permission to purge documents\nand\nmust be the sender or be acting on behalf of the sender.\n\nWhen the purge request is initiated\nthe items to be purged\nare placed in the purge queue\nfor deletion in 14 days.\nThe sender\nand\nall recipients with DocuSign accounts\nassociated with the envelope\nget an email notification\nthe the documents will be deleted in 14 days.\nThe notification contains a link\nto the documents.\nA second email notification\nis sent 7 days later.\nAt the end of the 14-day period\nthe documents are deleted from the system.\nRecipients without DocuSign accounts\ndo not receive email notifications.\n\nIf your account has a Document Retention policy,\nenvelope documents\nare automatically placed\nin the purge queue,\nand notification emails are sent\nat the end of the retention period.\nSetting a Document Retention policy is the same as setting a\nschedule for purging documents.\n\n## Removing documents from the purge queue\n\nTo remove documents from the purge queue, include the following code in the request body:\n\n```json\n{\n \"envelopeId\": \"222e6847-xxxx-xxxx-xxxx-72a3c9c16fca\",\n \"purgeState\": \"documents_dequeued\"\n}\n```\n\n### Related topics\n\n- [Purging documents (eSignature Concepts)](https://developers.docusign.com/docs/esign-rest-api/esign101/concepts/documents/purging/)\n- [Purging documents in an envelope (blog post)](https://www.docusign.com/blog/developers/purging-documents-envelope)\n- [How to unpause a signature workflow](https://developers.docusign.com/docs/esign-rest-api/how-to/unpause-workflow/)\n",
"operationId": "Envelopes_PutEnvelope",
"consumes": [],
"produces": [],
"parameters": [
{
"name": "accountId",
"in": "path",
"description": "The external account number (int) or account ID GUID.",
"required": true,
"type": "string"
},
{
"name": "envelopeId",
"in": "path",
"description": "The envelope's GUID. \n\nExample: `93be49ab-xxxx-xxxx-xxxx-f752070d71ec`\n",
"required": true,
"type": "string"
},
{
"name": "advanced_update",
"in": "query",
"description": "When set to **true**, allows the caller to update recipients, tabs, custom fields, notification, email settings and other envelope attributes.",
"required": false,
"type": "string"
},
{
"name": "resend_envelope",
"in": "query",
"description": "When set to **true**,\nsends the specified envelope again.",
"required": false,
"type": "string"
},
{
"name": "envelope",
"in": "body",
"required": false,
"schema": {
"$ref": "#/definitions/envelope"
},
"description": "A container used to send documents to recipients. The envelope carries information about the sender and timestamps to indicate the progress of the delivery procedure. It can contain collections of Documents, Tabs and Recipients."
}
],
"responses": {
"200": {
"description": "Successful response.",
"schema": {
"$ref": "#/definitions/envelopeUpdateSummary"
}
},
"400": {
"description": "Error encountered.",
"schema": {
"$ref": "#/definitions/errorDetails"
}
}
},
"deprecated": false,
"x-ds-methodname": "update",
"x-ds-method": "update",
"x-ds-service": "Envelopes",
"x-ds-in-sdk": true
},
"parameters": []
},
"/v2.1/accounts/{accountId}/envelopes/{envelopeId}/attachments": {
"get": {
"tags": [
"EnvelopeAttachments"
],
"summary": "Returns a list of attachments associated with a specified envelope",
"operationId": "Attachments_GetAttachments",
"consumes": [],
"produces": [],
"parameters": [
{
"name": "accountId",
"in": "path",
"description": "The external account number (int) or account ID GUID.",
"required": true,
"type": "string"
},
{
"name": "envelopeId",
"in": "path",
"description": "The envelope's GUID. \n\nExample: `93be49ab-xxxx-xxxx-xxxx-f752070d71ec`\n",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "Successful response.",
"schema": {
"$ref": "#/definitions/envelopeAttachmentsResult"
}
},
"400": {
"description": "Error encountered.",
"schema": {
"$ref": "#/definitions/errorDetails"
}
}
},
"deprecated": false,
"x-ds-methodname": "getAttachments",
"x-ds-api-status": "beta",
"x-ds-method": "list",
"x-ds-service": "Envelopes",
"description": "Returns a list of attachments associated with a specified envelope",
"x-ds-in-sdk": true
},
"put": {
"tags": [
"EnvelopeAttachments"
],
"summary": "Adds one or more attachments to a draft or in-process envelope.",
"operationId": "Attachments_PutAttachments",
"consumes": [],
"produces": [],
"parameters": [
{
"name": "accountId",
"in": "path",
"description": "The external account number (int) or account ID GUID.",
"required": true,
"type": "string"
},
{
"name": "envelopeId",
"in": "path",
"description": "The envelope's GUID. \n\nExample: `93be49ab-xxxx-xxxx-xxxx-f752070d71ec`\n",
"required": true,
"type": "string"
},
{
"name": "envelopeAttachmentsRequest",
"in": "body",
"required": false,
"schema": {
"$ref": "#/definitions/envelopeAttachmentsRequest"
},
"description": ""
}
],
"responses": {
"200": {
"description": "Successful response.",
"schema": {
"$ref": "#/definitions/envelopeAttachmentsResult"
}
},
"400": {
"description": "Error encountered.",
"schema": {
"$ref": "#/definitions/errorDetails"
}
}
},
"deprecated": false,
"x-ds-methodname": "putAttachments",
"x-ds-api-status": "beta",
"x-ds-method": "create",
"x-ds-service": "Envelopes",
"description": "Adds one or more attachments to a draft or in-process envelope.\n\nEnvelope attachments are files that an application can include in an envelope. They are not converted to PDF. Envelope attachments are available only through the API. There is no user interface in the DocuSign web application for them.\n\nFor a list of supported file formats, see [Supported File Formats](https://support.docusign.com/guides/ndse-user-guide-supported-file-formats).",
"x-ds-in-sdk": true
},
"delete": {
"tags": [
"EnvelopeAttachments"
],
"summary": "Deletes one or more attachments from a draft envelope.",
"operationId": "Attachments_DeleteAttachments",
"consumes": [],
"produces": [],
"parameters": [
{
"name": "accountId",
"in": "path",
"description": "The external account number (int) or account ID GUID.",
"required": true,
"type": "string"
},
{
"name": "envelopeId",
"in": "path",
"description": "The envelope's GUID. \n\nExample: `93be49ab-xxxx-xxxx-xxxx-f752070d71ec`\n",
"required": true,
"type": "string"
},
{
"name": "envelopeAttachmentsRequest",
"in": "body",
"required": false,
"schema": {
"$ref": "#/definitions/envelopeAttachmentsRequest"
},
"description": ""
}
],
"responses": {
"200": {
"description": "Successful response.",
"schema": {
"$ref": "#/definitions/envelopeAttachmentsResult"
}
},
"400": {
"description": "Error encountered.",
"schema": {
"$ref": "#/definitions/errorDetails"
}
}
},
"deprecated": false,
"x-ds-methodname": "deleteAttachments",
"x-ds-api-status": "beta",
"x-ds-method": "delete",
"x-ds-service": "Envelopes",
"description": "Deletes one or more attachments from a draft envelope.",
"x-ds-in-sdk": true
},
"parameters": []
},
"/v2.1/accounts/{accountId}/envelopes/{envelopeId}/attachments/{attachmentId}": {
"get": {
"tags": [
"EnvelopeAttachments"
],
"summary": "Retrieves an attachment from an envelope.",
"operationId": "Attachments_GetAttachment",
"consumes": [],
"produces": [],
"parameters": [
{
"name": "accountId",
"in": "path",
"description": "The external account number (int) or account ID GUID.",
"required": true,
"type": "string"
},
{
"name": "attachmentId",
"in": "path",
"required": true,
"type": "string",
"description": "The unique identifier for the attachment."
},
{
"name": "envelopeId",
"in": "path",
"description": "The envelope's GUID. \n\nExample: `93be49ab-xxxx-xxxx-xxxx-f752070d71ec`\n",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "Successful response."
},
"400": {
"description": "Error encountered.",
"schema": {
"$ref": "#/definitions/errorDetails"
}
}
},
"deprecated": false,
"x-ds-methodname": "getAttachment",
"x-ds-api-status": "beta",
"x-ds-method": "get",
"x-ds-service": "Envelopes",
"description": "Retrieves an attachment from an envelope.",
"x-ds-in-sdk": true
},
"put": {
"tags": [
"EnvelopeAttachments"
],
"summary": "Adds an attachment to a draft or in-process envelope.",
"operationId": "Attachments_PutAttachment",
"consumes": [],
"produces": [],
"parameters": [
{
"name": "accountId",
"in": "path",
"description": "The external account number (int) or account ID GUID.",
"required": true,
"type": "string"
},
{
"name": "attachmentId",
"in": "path",
"required": true,
"type": "string",
"description": "The unique identifier for the attachment."
},
{
"name": "envelopeId",
"in": "path",
"description": "The envelope's GUID. \n\nExample: `93be49ab-xxxx-xxxx-xxxx-f752070d71ec`\n",
"required": true,
"type": "string"
},
{
"name": "attachment",
"in": "body",
"required": false,
"schema": {
"$ref": "#/definitions/attachment"
},
"description": ""
}
],
"responses": {
"200": {
"description": "Successful response.",
"schema": {
"$ref": "#/definitions/envelopeAttachmentsResult"
}
},
"400": {
"description": "Error encountered.",
"schema": {
"$ref": "#/definitions/errorDetails"
}
}
},
"deprecated": false,
"x-ds-methodname": "putAttachment",
"x-ds-api-status": "beta",
"x-ds-method": "update",
"x-ds-service": "Envelopes",
"description": "Adds an attachment to a draft or in-process envelope.",
"x-ds-in-sdk": true
},
"parameters": []
},
"/v2.1/accounts/{accountId}/envelopes/{envelopeId}/audit_events": {
"get": {
"tags": [
"Envelopes"
],
"summary": "Gets the envelope audit events for an envelope.",
"description": "Gets the envelope audit events for the specified envelope.",
"operationId": "AuditEvents_GetAuditEvents",
"consumes": [],
"produces": [],
"parameters": [
{
"name": "accountId",
"in": "path",
"description": "The external account number (int) or account ID GUID.",
"required": true,
"type": "string"
},
{
"name": "envelopeId",
"in": "path",
"description": "The envelope's GUID. \n\nExample: `93be49ab-xxxx-xxxx-xxxx-f752070d71ec`\n",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "Successful response.",
"schema": {
"$ref": "#/definitions/envelopeAuditEventResponse"
}
},
"400": {
"description": "Error encountered.",
"schema": {
"$ref": "#/definitions/errorDetails"
}
}
},
"deprecated": false,
"x-ds-methodname": "listAuditEvents",
"x-ds-method": "listAuditEvents",
"x-ds-service": "Envelopes",
"x-ds-in-sdk": true
},
"parameters": []
},
"/v2.1/accounts/{accountId}/envelopes/{envelopeId}/comments/transcript": {
"get": {
"tags": [
"Comments"
],
"summary": "Gets a PDF transcript of all of the comments in an envelope.",
"operationId": "Comments_GetCommentsTranscript",
"consumes": [],
"produces": [
"application/pdf"
],
"parameters": [
{
"name": "accountId",
"in": "path",
"description": "The external account number (int) or account ID GUID.",
"required": true,
"type": "string"
},
{
"name": "envelopeId",
"in": "path",
"description": "The envelope's GUID. \n\nExample: `93be49ab-xxxx-xxxx-xxxx-f752070d71ec`\n",
"required": true,
"type": "string"
},
{
"name": "encoding",
"in": "query",
"required": false,
"type": "string",
"description": "(Optional) The encoding to use for the file."
}
],
"responses": {
"200": {
"description": "Successful response.",
"schema": {
"type": "file"
}
},
"400": {
"description": "Error encountered.",
"schema": {
"$ref": "#/definitions/errorDetails"
}
}
},
"deprecated": false,
"x-ds-methodname": "getCommentsTranscript",
"x-ds-method": "get",
"x-ds-service": "Uncategorized",
"description": "Retrieves a PDF file containing all of the comments that senders and recipients have added to the documents in an envelope.\n\nThe response body of this method is the PDF file as a byte\nstream.\n\n\n**Note**: Comments are disabled by default. To use the comments feature, an account administrator must enable comments on the account (in the `accountSettingsInformation` object, set the `enableSigningExtensionComments` property to **true**). ",
"x-ds-in-sdk": true
},
"parameters": []
},
"/v2.1/accounts/{accountId}/envelopes/{envelopeId}/custom_fields": {
"get": {
"tags": [
"EnvelopeCustomFields"
],
"summary": "Gets the custom field information for the specified envelope.",
"description": "Retrieves the custom field information for the specified envelope. You can use these fields in the envelopes for your account to record information about the envelope, help search for envelopes, and track information. The envelope custom fields are shown in the Envelope Settings section when a user is creating an envelope in the DocuSign member console. The envelope custom fields are not seen by the envelope recipients.\n\nThere are two types of envelope custom fields, text, and list. A text custom field lets the sender enter the value for the field. With a list custom field, the sender selects the value of the field from a pre-made list.\n\n\n### Related topics\n\n- [How to get envelope custom tab values](https://developers.docusign.com/docs/esign-rest-api/how-to/get-envelope-custom-tab-values/)\n",
"operationId": "CustomFields_GetCustomFields",
"consumes": [],
"produces": [],
"parameters": [
{
"name": "accountId",
"in": "path",
"description": "The external account number (int) or account ID GUID.",
"required": true,
"type": "string"
},
{
"name": "envelopeId",
"in": "path",
"description": "The envelope's GUID. \n\nExample: `93be49ab-xxxx-xxxx-xxxx-f752070d71ec`\n",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "Successful response.",
"schema": {
"$ref": "#/definitions/customFieldsEnvelope"
}
},
"400": {
"description": "Error encountered.",
"schema": {
"$ref": "#/definitions/errorDetails"
}
}
},
"deprecated": false,
"x-ds-methodname": "listCustomFields",
"x-ds-method": "list",
"x-ds-service": "Envelopes",
"x-ds-in-sdk": true
},
"put": {
"tags": [
"EnvelopeCustomFields"
],
"summary": "Updates envelope custom fields in an envelope.",
"description": "Updates the envelope custom fields in draft and in-process envelopes.\n\nEach custom field used in an envelope must have a unique name.\n",
"operationId": "CustomFields_PutCustomFields",
"consumes": [],
"produces": [],
"parameters": [
{
"name": "accountId",
"in": "path",
"description": "The external account number (int) or account ID GUID.",
"required": true,
"type": "string"
},
{
"name": "envelopeId",
"in": "path",
"description": "The envelope's GUID. \n\nExample: `93be49ab-xxxx-xxxx-xxxx-f752070d71ec`\n",
"required": true,
"type": "string"
},
{
"name": "EnvelopeCustomFields",
"in": "body",
"required": false,
"schema": {
"$ref": "#/definitions/EnvelopeCustomFields"
},
"description": ""
}
],
"responses": {
"200": {
"description": "Successful response.",
"schema": {
"$ref": "#/definitions/EnvelopeCustomFields"
}
},
"400": {
"description": "Error encountered.",
"schema": {
"$ref": "#/definitions/errorDetails"
}
}
},
"deprecated": false,
"x-ds-methodname": "updateCustomFields",
"x-ds-method": "update",
"x-ds-service": "Envelopes",
"x-ds-in-sdk": true
},
"post": {
"tags": [
"EnvelopeCustomFields"
],
"summary": "Creates envelope custom fields for an envelope.",
"description": "Updates the envelope custom fields for draft and in-process envelopes.\n\n### Related topics\n\n- [How to bulk-send envelopes](https://developers.docusign.com/docs/esign-rest-api/how-to/bulk-send-envelopes/)\n",
"operationId": "CustomFields_PostCustomFields",
"consumes": [],
"produces": [],
"parameters": [
{
"name": "accountId",
"in": "path",
"description": "The external account number (int) or account ID GUID.",
"required": true,
"type": "string"
},
{
"name": "envelopeId",
"in": "path",
"description": "The envelope's GUID. \n\nExample: `93be49ab-xxxx-xxxx-xxxx-f752070d71ec`\n",
"required": true,
"type": "string"
},
{
"name": "EnvelopeCustomFields",
"in": "body",
"required": false,
"schema": {
"$ref": "#/definitions/EnvelopeCustomFields"
},
"description": ""
}
],
"responses": {
"201": {
"description": "Successful response.",
"schema": {
"$ref": "#/definitions/EnvelopeCustomFields"
}
},
"400": {
"description": "Error encountered.",
"schema": {
"$ref": "#/definitions/errorDetails"
}
}
},
"deprecated": false,
"x-ds-methodname": "createCustomFields",
"x-ds-method": "create",
"x-ds-service": "Envelopes",
"x-ds-in-sdk": true
},
"delete": {
"tags": [
"EnvelopeCustomFields"
],
"summary": "Deletes envelope custom fields for draft and in-process envelopes.",
"description": "Deletes envelope custom fields for draft and in-process envelopes.",
"operationId": "CustomFields_DeleteCustomFields",
"consumes": [],
"produces": [],
"parameters": [
{
"name": "accountId",
"in": "path",
"description": "The external account number (int) or account ID GUID.",
"required": true,
"type": "string"
},
{
"name": "envelopeId",
"in": "path",
"description": "The envelope's GUID. \n\nExample: `93be49ab-xxxx-xxxx-xxxx-f752070d71ec`\n",
"required": true,
"type": "string"
},
{
"name": "EnvelopeCustomFields",
"in": "body",
"required": false,
"schema": {
"$ref": "#/definitions/EnvelopeCustomFields"
},
"description": ""
}
],
"responses": {
"200": {
"description": "Successful response.",
"schema": {
"$ref": "#/definitions/EnvelopeCustomFields"
}
},
"400": {
"description": "Error encountered.",
"schema": {
"$ref": "#/definitions/errorDetails"
}
}
},
"deprecated": false,
"x-ds-methodname": "deleteCustomFields",
"x-ds-method": "delete",
"x-ds-service": "Envelopes",
"x-ds-in-sdk": true
},
"parameters": []
},
"/v2.1/accounts/{accountId}/envelopes/{envelopeId}/documents": {
"get": {
"tags": [
"EnvelopeDocuments"
],
"summary": "Gets a list of documents in an envelope.",
"description": "Retrieves a list of documents associated with the specified envelope.\n\n### Related topics\n\n- [How to list envelope documents](https://developers.docusign.com/docs/esign-rest-api/how-to/list-envelope-documents/)\n",
"operationId": "Documents_GetDocuments",
"consumes": [],
"produces": [],
"parameters": [
{
"name": "accountId",
"in": "path",
"description": "The external account number (int) or account ID GUID.",
"required": true,
"type": "string"
},
{
"name": "envelopeId",
"in": "path",
"description": "The envelope's GUID. \n\nExample: `93be49ab-xxxx-xxxx-xxxx-f752070d71ec`\n",
"required": true,
"type": "string"
},
{
"name": "documents_by_userid",
"in": "query",
"required": false,
"type": "string",
"description": "When set to **true**, allows recipients to get documents by their user id. For example, if a user is included in two different routing orders with different visibilities, using this parameter returns all of the documents from both routing orders."
},
{
"name": "include_metadata",
"in": "query",
"required": false,
"type": "string",
"description": "When set to **true**, the response includes metadata that indicates which properties the sender can edit."
},
{
"name": "include_tabs",
"in": "query",
"required": false,
"type": "string",
"description": "When set to **true**, information about the tabs, including prefill tabs, associated with the documents are included in the response."
},
{
"name": "recipient_id",
"in": "query",
"required": false,
"type": "string",
"description": "Allows the sender to retrieve the documents as one of the recipients that they control. The `documents_by_userid` parameter must be set to **false** for this to work."
},
{
"name": "shared_user_id",
"in": "query",
"required": false,
"type": "string",
"description": "The ID of a shared user that you want to impersonate in order to\nretrieve their view of the list of documents. This parameter is\nused in the context of a shared inbox (i.e., when you share\nenvelopes from one user to another through the DocuSign Admin console)."
}
],
"responses": {
"200": {
"description": "Successful response.",
"schema": {
"$ref": "#/definitions/envelopeDocumentsResult"
}
},
"400": {
"description": "Error encountered.",
"schema": {
"$ref": "#/definitions/errorDetails"
}
}
},
"deprecated": false,
"x-ds-methodname": "listDocuments",
"x-ds-method": "list",
"x-ds-service": "Envelopes",
"x-ds-in-sdk": true,
"x-ds-examples": [
{
"description": "This example shows how\nto get a list\nof all the documents in an envelope.\n\nThe request for this endpoint has no payload.\n\n### Request\n\n```\nGET /restapi/v2.1/accounts/1703061/envelopes/44efc9e6-xxxx-xxxx-xxxx-801410d6922d/documents\n```\n",
"direction": "response",
"format": "json",
"response": {
"envelopeDocuments": [
{
"availableDocumentTypes": [
{
"isDefault": "true",
"type": "electronic"
}
],
"display": "inline",
"documentId": "1",
"includeInDownload": "true",
"name": "NDA.pdf",
"order": "1",
"pages": "3",
"signerMustAcknowledge": "no_interaction",
"type": "content",
"uri": "/envelopes/44efc9e6-xxxx-xxxx-xxxx-801410d6922d/documents/1"
},
{
"availableDocumentTypes": [
{
"isDefault": "true",
"type": "electronic"
}
],
"display": "inline",
"documentId": "2",
"includeInDownload": "true",
"name": "House.pdf",
"order": "2",
"pages": "1",
"signerMustAcknowledge": "no_interaction",
"type": "content",
"uri": "/envelopes/44efc9e6-xxxx-xxxx-xxxx-801410d6922d/documents/2"
},
{
"availableDocumentTypes": [
{
"isDefault": "true",
"type": "electronic"
}
],
"display": "inline",
"documentId": "3",
"includeInDownload": "true",
"name": "contractor_agreement.docx",
"order": "3",
"pages": "2",
"signerMustAcknowledge": "no_interaction",
"type": "content",
"uri": "/envelopes/44efc9e6-xxxx-xxxx-xxxx-801410d6922d/documents/3"
},
{
"availableDocumentTypes": [
{
"isDefault": "true",
"type": "electronic"
}
],
"display": "inline",
"documentId": "certificate",
"includeInDownload": "true",
"name": "Summary",
"order": "999",
"pages": "4",
"signerMustAcknowledge": "no_interaction",
"type": "summary",
"uri": "/envelopes/44efc9e6-xxxx-xxxx-xxxx-801410d6922d/documents/certificate"
}
],
"envelopeId": "44efc9e6-xxxx-xxxx-xxxx-801410d6922d"
},
"request": null,
"style": "custom",
"title": "List All Documents in an Envelope"
}
]
},
"put": {
"tags": [
"EnvelopeDocuments"
],
"summary": "Adds one or more documents to an existing envelope document.",
"description": "Adds one or more documents to an existing envelope document.\n
**Note**: When adding or modifying documents for an in-process envelope, DocuSign recommends locking the envelope prior to making any changes.\n\nIf the file name of a document contains unicode characters, you need to include a `Content-Disposition` header. Example:\n\n\n**Header**: `Content-Disposition`\n\n\n**Value**: `file; filename=\\\"name\\\";fileExtension=ext;documentId=1`",
"operationId": "Documents_PutDocuments",
"consumes": [],
"produces": [],
"parameters": [
{
"name": "accountId",
"in": "path",
"description": "The external account number (int) or account ID GUID.",
"required": true,
"type": "string"
},
{
"name": "envelopeId",
"in": "path",
"description": "The envelope's GUID. \n\nExample: `93be49ab-xxxx-xxxx-xxxx-f752070d71ec`\n",
"required": true,
"type": "string"
},
{
"name": "envelopeDefinition",
"in": "body",
"required": false,
"schema": {
"$ref": "#/definitions/envelopeDefinition"
},
"description": ""
}
],
"responses": {
"200": {
"description": "Successful response.",
"schema": {
"$ref": "#/definitions/envelopeDocumentsResult"
}
},
"400": {
"description": "Error encountered.",
"schema": {
"$ref": "#/definitions/errorDetails"
}
}
},
"deprecated": false,
"x-ds-methodname": "updateDocuments",
"x-ds-method": "updateList",
"x-ds-service": "Envelopes",
"x-ds-in-sdk": true
},
"delete": {
"tags": [
"EnvelopeDocuments"
],
"summary": "Deletes documents from a draft envelope.",
"description": "Deletes one or more documents from an existing envelope that has not yet been completed.\n\nTo delete a document, use only the relevant parts of the [`envelopeDefinition`](#envelopeDefinition).\nFor example, this request body specifies that you want to delete the document whose `documentId` is \"1\".\n\n\n```text\n{\n \"documents\": [\n {\n \"documentId\": \"1\"\n }\n ]\n}\n```\n\nThe envelope status must be one of:\n\n- `created`\n- `sent`\n- `delivered`\n\n\n",
"operationId": "Documents_DeleteDocuments",
"consumes": [],
"produces": [],
"parameters": [
{
"name": "accountId",
"in": "path",
"description": "The external account number (int) or account ID GUID.",
"required": true,
"type": "string"
},
{
"name": "envelopeId",
"in": "path",
"description": "The envelope's GUID. \n\nExample: `93be49ab-xxxx-xxxx-xxxx-f752070d71ec`\n",
"required": true,
"type": "string"
},
{
"name": "envelopeDefinition",
"in": "body",
"required": false,
"schema": {
"$ref": "#/definitions/envelopeDefinition"
},
"description": ""
}
],
"responses": {
"200": {
"description": "Successful response.",
"schema": {
"$ref": "#/definitions/envelopeDocumentsResult"
}
},
"400": {
"description": "Error encountered.",
"schema": {
"$ref": "#/definitions/errorDetails"
}
}
},
"deprecated": false,
"x-ds-methodname": "deleteDocuments",
"x-ds-method": "delete",
"x-ds-service": "Envelopes",
"x-ds-in-sdk": true
},
"parameters": []
},
"/v2.1/accounts/{accountId}/envelopes/{envelopeId}/documents/{documentId}": {
"get": {
"tags": [
"EnvelopeDocuments"
],
"summary": "Gets a document from an envelope.",
"description": "Retrieves the specified document from the envelope. If the\naccount has the **Highlight Data Changes** feature enabled,\nset the `show_changes` query parameter to **true** highlight the changes. \n\n\nThe response body of this method is the PDF file as a byte\nstream. You can get the file name and document ID\nfrom the response's\n`Content-Disposition` header:\n\n```\nContent-Disposition: file; filename=\"NDA.pdf\"; documentid=\"1\n```\n\nFor example a request/response in `curl` looks like this:\n\n```\n$ curl --request GET 'https://demo.docusign.net/restapi/v2/accounts/0cdb3ff3-xxxx-xxxx-xxxx-e43af011006d/envelopes/ea4cc25b-xxxx-xxxx-xxxx-a67a0a2a4f6c/documents/1/' \\\n --header 'Authorization: Bearer eyJ...bqg'\n\n\nHTTP/1.1 200 OK\nCache-Control: no-cache\nContent-Length: 282143\nContent-Type: application/pdf\nX-RateLimit-Reset: 1320855230\nX-RateLimit-Remaining: 984\nX-RateLimit-Limit: 1000\nX-BurstLimit-Remaining: 498\nX-BurstLimit-Limit: 500\nX-DocuSign-TraceToken: 6103b440-xxxx-xxxx-xxxx-f0cdf55d121b\nContent-Disposition: file; filename=\"NDA.pdf\"; documentid=\"1\"\nX-DocuSign-Node: FABCFDEF\nDate: Wed, 12 May 2021 21:27:41 GMT\n\n%PDF-1.5\n% \n\n```\n\"recipientAuthenticationStatus\": {\n \"identityVerificationResult\": { \n \"status\": \"Failed\",\n \"eventTimestamp\": \"2020-09-04T16:59:42.8045667Z\",\n \"vendorFailureStatusCode\": \"MANUAL_REVIEW_STARTED\"\n }\n }\n```",
"required": true,
"type": "string"
}
],
"responses": {
"201": {
"description": "Successful response.",
"schema": {
"$ref": "#/definitions/viewUrl"
}
},
"400": {
"description": "Error encountered.",
"schema": {
"$ref": "#/definitions/errorDetails"
}
}
},
"deprecated": false,
"x-ds-methodname": "createRecipientManualReviewView",
"x-ds-method": "createRecipientManualReviewView",
"x-ds-service": "Uncategorized",
"description": "This method returns the URL of the page that allows a sender to [manually review](https://support.docusign.com/en/guides/ndse-user-guide-send-documents-with-id-verification) the ID of a recipient. ",
"x-ds-in-sdk": true
},
"parameters": []
},
"/v2.1/accounts/{accountId}/envelopes/{envelopeId}/recipients/document_visibility": {
"put": {
"tags": [
"EnvelopeDocumentVisibility"
],
"summary": "Updates document visibility for recipients",
"operationId": "Recipients_PutRecipientsDocumentVisibility",
"consumes": [],
"produces": [],
"parameters": [
{
"name": "accountId",
"in": "path",
"description": "The external account number (int) or account ID GUID.",
"required": true,
"type": "string"
},
{
"name": "envelopeId",
"in": "path",
"description": "The envelope's GUID. \n\nExample: `93be49ab-xxxx-xxxx-xxxx-f752070d71ec`\n",
"required": true,
"type": "string"
},
{
"name": "documentVisibilityList",
"in": "body",
"required": false,
"schema": {
"$ref": "#/definitions/documentVisibilityList"
},
"description": ""
}
],
"responses": {
"200": {
"description": "Successful response.",
"schema": {
"$ref": "#/definitions/documentVisibilityList"
}
},
"400": {
"description": "Error encountered.",
"schema": {
"$ref": "#/definitions/errorDetails"
}
}
},
"deprecated": false,
"x-ds-methodname": "updateRecipientsDocumentVisibility",
"x-ds-method": "updateRecipientsDocumentVisibility",
"x-ds-service": "EnvelopeDocumentVisibility",
"description": "This method updates document visibility for one or more recipients based on the `recipientId` and `visible` values that you include in the request body.\n\n**Note**: A document cannot be hidden from a recipient if the recipient has tabs assigned to them on the document. Carbon Copy, Certified Delivery (Needs to Sign), Editor, and Agent recipients can always see all documents.",
"x-ds-in-sdk": true
},
"parameters": []
},
"/v2.1/accounts/{accountId}/envelopes/{envelopeId}/responsive_html_preview": {
"post": {
"tags": [
"ResponsiveHtmlPreview"
],
"summary": "Creates a preview of the responsive versions of all of the documents in an envelope.",
"operationId": "ResponsiveHtml_PostResponsiveHtmlPreview",
"consumes": [],
"produces": [],
"parameters": [
{
"name": "accountId",
"in": "path",
"description": "The external account number (int) or account ID GUID.",
"required": true,
"type": "string"
},
{
"name": "envelopeId",
"in": "path",
"description": "The envelope's GUID. \n\nExample: `93be49ab-xxxx-xxxx-xxxx-f752070d71ec`\n",
"required": true,
"type": "string"
},
{
"name": "documentHtmlDefinition",
"in": "body",
"required": false,
"schema": {
"$ref": "#/definitions/documentHtmlDefinition"
},
"description": ""
}
],
"responses": {
"201": {
"description": "Successful response.",
"schema": {
"$ref": "#/definitions/documentHtmlDefinitions"
}
},
"400": {
"description": "Error encountered.",
"schema": {
"$ref": "#/definitions/errorDetails"
}
}
},
"deprecated": false,
"x-ds-methodname": "createResponsiveHtmlPreview",
"x-ds-method": "create",
"x-ds-service": "Uncategorized",
"description": "Creates a preview of the\n[responsive](https://developers.docusign.com/docs/esign-rest-api/esign101/concepts/responsive/),\nHTML versions of all of the documents in an\nenvelope. This method enables you to preview the\nPDF document conversions to responsive HTML across\ndevice types prior to sending.\n\nThe request body is a `documentHtmlDefinition`\nobject, which holds the responsive signing\nparameters that define how to generate the HTML\nversion of the documents.\n",
"x-ds-in-sdk": true
},
"parameters": []
},
"/v2.1/accounts/{accountId}/envelopes/{envelopeId}/tabs_blob": {
"get": {
"tags": [
"TabsBlob"
],
"summary": "Gets encrypted tabs for envelope.",
"operationId": "TabsBlob_GetTabsBlob",
"consumes": [],
"produces": [],
"parameters": [
{
"name": "accountId",
"in": "path",
"description": "The external account number (int) or account ID GUID.",
"required": true,
"type": "string"
},
{
"name": "envelopeId",
"in": "path",
"description": "The envelope's GUID. \n\nExample: `93be49ab-xxxx-xxxx-xxxx-f752070d71ec`\n",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "Successful response."
},
"400": {
"description": "Error encountered.",
"schema": {
"$ref": "#/definitions/errorDetails"
}
}
},
"deprecated": false,
"x-ds-methodname": "getTabsBlob",
"x-ds-method": "getTabsBlob",
"x-ds-service": "Uncategorized",
"description": "",
"x-ds-in-sdk": true
},
"put": {
"tags": [
"TabsBlob"
],
"summary": "Updates encrypted tabs for envelope.",
"operationId": "TabsBlob_PutTabsBlob",
"consumes": [],
"produces": [],
"parameters": [
{
"name": "accountId",
"in": "path",
"description": "The external account number (int) or account ID GUID.",
"required": true,
"type": "string"
},
{
"name": "envelopeId",
"in": "path",
"description": "The envelope's GUID. \n\nExample: `93be49ab-xxxx-xxxx-xxxx-f752070d71ec`\n",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "Successful response."
},
"400": {
"description": "Error encountered.",
"schema": {
"$ref": "#/definitions/errorDetails"
}
}
},
"deprecated": false,
"x-ds-methodname": "putTabsBlob",
"x-ds-method": "putTabsBlob",
"x-ds-service": "Uncategorized",
"description": "",
"x-ds-in-sdk": true
},
"parameters": []
},
"/v2.1/accounts/{accountId}/envelopes/{envelopeId}/templates": {
"get": {
"tags": [
"EnvelopeTemplates"
],
"summary": "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.\n",
"operationId": "Templates_GetEnvelopeTemplates",
"consumes": [],
"produces": [],
"parameters": [
{
"name": "accountId",
"in": "path",
"description": "The external account number (int) or account ID GUID.",
"required": true,
"type": "string"
},
{
"name": "envelopeId",
"in": "path",
"description": "The envelope's GUID. \n\nExample: `93be49ab-xxxx-xxxx-xxxx-f752070d71ec`\n",
"required": true,
"type": "string"
},
{
"name": "include",
"in": "query",
"description": "The possible value is `matching_applied`, which returns template matching information for the template.",
"required": false,
"type": "string"
}
],
"responses": {
"200": {
"description": "Successful response.",
"schema": {
"$ref": "#/definitions/templateInformation"
}
},
"400": {
"description": "Error encountered.",
"schema": {
"$ref": "#/definitions/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",
"consumes": [],
"produces": [],
"parameters": [
{
"name": "accountId",
"in": "path",
"description": "The external account number (int) or account ID GUID.",
"required": true,
"type": "string"
},
{
"name": "envelopeId",
"in": "path",
"description": "The envelope's GUID. \n\nExample: `93be49ab-xxxx-xxxx-xxxx-f752070d71ec`\n",
"required": true,
"type": "string"
},
{
"name": "preserve_template_recipient",
"in": "query",
"required": false,
"type": "string",
"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\nIf **true**, the recipients _will be preserved_ after the template is applied.\n\n"
},
{
"name": "documentTemplateList",
"in": "body",
"required": false,
"schema": {
"$ref": "#/definitions/documentTemplateList"
},
"description": ""
}
],
"responses": {
"201": {
"description": "Successful response.",
"schema": {
"$ref": "#/definitions/documentTemplateList"
}
},
"400": {
"description": "Error encountered.",
"schema": {
"$ref": "#/definitions/errorDetails"
}
}
},
"deprecated": false,
"x-ds-methodname": "applyTemplate",
"x-ds-method": "apply",
"x-ds-service": "Envelopes",
"x-ds-in-sdk": true
},
"parameters": []
},
"/v2.1/accounts/{accountId}/envelopes/{envelopeId}/views/correct": {
"post": {
"tags": [
"EnvelopeViews"
],
"summary": "Returns a URL to the envelope correction UI.",
"description": "Returns a URL that allows you to embed the envelope correction\nview of the DocuSign UI in your applications.\n\nThe returned URL can only be redirected to immediately after it\nis generated. It can only be used once. Therefore, request the\nURL immediately before you redirect your user to it.\n\nDue to screen space issues,\ndo not use an `