Rest Api Guide
Rest Api Guide
DocuSign
REST API Guide
Version 2
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 2
For information about DocuSign trademarks, copyrights and patents refer to the DocuSign Intellectual Property page
(https://www.docusign.com/IP) on the DocuSign website. All other trademarks and registered trademarks are the property of
their respective holders.
No part of this document may be reproduced or transmitted in any form or by any means, electronic or mechanical, for any
purpose, without the express written permission of DocuSign, Inc. Under the law, reproducing includes translating into
another language or format. Every effort has been made to ensure that the information in this manual is accurate. DocuSign,
Inc. is not responsible for printing or clerical errors. Information in this document is subject to change without notice.
If you have any comments or feedback on our documentation, please send them to us at: [email protected].
Important: DocuSign is transitioning to a new REST API Reference Guide. The PDF version and
old online version will be retired soon, please refer to the new guide.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 3
Table of Contents
Introduction........................................................................................................................................ 11
Commonly Used Terms ............................................................................................................... 11
Basic Process Flow and Steps for Sending with the REST API ................................................... 12
Basic Process Flow for Requesting Status Changes with the REST API ..................................... 12
Request and Response Guidelines .............................................................................................. 14
Request and Response Formats.................................................................................................. 14
Envelope and Recipient Status Codes ......................................................................................... 15
Getting Started .................................................................................................................................. 16
Integrator Keys ............................................................................................................................ 16
API Call Rate Limits ..................................................................................................................... 16
File Size Limitations ..................................................................................................................... 18
DocuSign Time Track Header ...................................................................................................... 18
REST API Versions...................................................................................................................... 18
REST API Base URL ................................................................................................................... 19
REST API Explorer ...................................................................................................................... 19
Send On Behalf Of Functionality in the DocuSign REST API ............................................................. 19
DocuSign OAuth (Authorization Code Grant or Implicit Grant) ........................................................... 21
Configuring an App ...................................................................................................................... 21
Supported Grant Types ................................................................................................................ 24
Making Requests ......................................................................................................................... 24
Authentication Request ................................................................................................................ 24
Initiating the Authorization Code Flow .......................................................................................... 26
Initiating the Implicit Flow (Mobile Apps or Client Applications) .................................................... 28
Access Token Usage ................................................................................................................... 29
User Information .......................................................................................................................... 29
DocuSign OAuth (Resource Owner Credentials or SAML) ................................................................ 30
General Usage Notes .................................................................................................................. 30
OAuth2 Token Request ............................................................................................................... 31
Normal Usage .............................................................................................................................. 32
OAuth2 and SAML ....................................................................................................................... 32
Revoking Tokens ......................................................................................................................... 34
Acting as Other Account Users .................................................................................................... 35
OAuth2 Response Codes ............................................................................................................ 37
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 4
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 5
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 6
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 7
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 8
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 9
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 10
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 11
Introduction
The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for
interacting with DocuSign. The REST API uses the same underlying data model and standard objects
as those in the DocuSign SOAP-based API. The REST API also has the same limits imposed on it as
the SOAP-based API. See the Getting Started section for more information on prerequisites and
limits.
If you already use the DocuSign SOAP API, you might be able to leverage some of your existing code
and experiences for use with the REST API. See Appendix 1: DocuSign SOAP API to REST API for
the relationship between the SOAP and REST information.
This section provides some background information for working with the REST API.
Third, it is used as editable information fields where signers can add data to a document.
Recipient - Someone who receives the envelope and, depending on the settings, can sign (or
initial) the documents or can add information where indicated by tabs.
Template – A pre-set envelope with specific documents, set recipient roles, recipient routing
order, recipient authentication, signing tabs and information fields. Templates can also contain
set signing instructions for the document and signature attachment requests. Templates can
be set to allow the sender to make some changes before sending the envelope.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 12
Basic Process Flow and Steps for Sending with the REST API
The general use for the DocuSign service is sending documents for signature and the basic steps are
described below:
1. A sender supplies the name and email address of each person they want to sign the document
(these are the recipients), adds documents to an envelope and adds tabs to indicate where
each person should sign, initial or add other information.
Note: The sender does not have to add any tabs to a document. Sending without tabs is
referred to as using free-form signing. Instead of seeing tabs on a document, the recipient will
see the document with a note letting them know they must drag a signature or initial tab onto
the document.
2. The sender places the envelope in the DocuSign system and DocuSign notifies each recipient,
using the supplied email addresses, that they have been asked to sign a document, and
provides a link to the envelope.
3. When a recipient clicks the link, they will see the documents with DocuSign Tabs in the
locations specified by the sender, representing where they need to sign, initial or add
information to the document.
4. When a recipient has clicked on all of their respective DocuSign Tabs (Stick-eTabs) or added
their signature using free-form signing, the document is signed and the envelope is sent to
other recipients for their signatures. When all the recipients have signed the documents, the
envelope is completed.
Basic Process Flow for Requesting Status Changes with the REST API
You should periodically request the status changes of the envelopes from DocuSign to follow the
envelope through the creation, sending and signing process. The basic process flow for requesting
status changes is outlined below.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 13
1. Request the envelope status: Use the GET method to request envelope status starting from a
specified date and time. Optionally, you can just check for any changes to envelope status or
for envelopes that changed to a particular status (this is highly recommended).
The best practice for recurring status requests is to set the date-time of the request so that
each request overlaps the previous request by a short interval, one or two minutes. This limits
the size of the response and prevents you from getting information for envelopes that have not
changed status. The example that follows shows an instance of this process.
2. Save the date/time of your request: Saving the date/time of your request allows you to format
the date-time for recurring requests.
3. DocuSign responds: DocuSign returns information for the envelopes that meet the specified
date-time request. The response includes the uri’s for the envelope certificate, custom fields,
documents, envelope along with the envelope ID, envelope status, and the date-time stamp
for the envelope status change for the envelopes. If a query string was added to the original
request, only the envelopes that meet those parameters are included in the response.
4. Process the envelope status changes in your system: Use the information in the request
response to updated envelope information in your system. This might include triggering
requests to retrieve certificates of completion and signed documents.
5. Wait and then repeat the process: The amount of time you wait between requests will depend
your business processes, such as how many envelopes your organization sends during a day
and how often updates are needed. The best practice for recurring status requests is to
request the status no more than once every 15 minutes and only requesting status for those
envelope that changed status.
Important: DocuSign imposes API call limit restrictions to prevent flooding of API calls, so
your request intervals should be appropriately timed.
Request example: Based on how many envelopes you send, you decide to check for envelope status
changes every 15 minutes with a 1 minute overlap to ensure that no changes are missed from the
previous request.
Request 2
Request 1 Request 3
1 minute overlap
Your first request at 12:15 would be:
GET https://{server}/restapi/{apiVersion}/accounts/{accountId}/envelopes
?from_date=5-2-2012+12:15:00+AM&from_to_status=changed
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 14
GET https://{server}/restapi/{apiVersion}/accounts/{accountId}/envelopes
?from_date=5-2-2012+12:29:00+AM&from_to_status=changed
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 15
Code Description
created The envelope is in a draft state and has not been sent out for signing.
deleted This is a legacy status and is no longer used.
sent An email notification with a link to the envelope has been sent to at least
one recipient. The envelope remains in this state until all recipients have
viewed it at a minimum.
delivered All recipients have viewed the document(s) in an envelope through the
DocuSign signing web site. This is not an email delivery of the documents
in an envelope.
signed The envelope has been signed by all the recipients. This is a temporary
state during processing, after which the envelope is automatically moved
to Completed status.
completed The envelope has been completed by all the recipients.
declined The envelope has been declined for signing by one of the recipients.
voided The envelope has been voided by the sender.
timedout This is a legacy status and is no longer used.
authoritativecopy The envelope is in an Authoritative state. Only “Copy” views of the
documents will be shown.
transfercompleted The envelope has been transferred out of DocuSign to another authority.
template The envelope is a Template.
correct The envelope has been opened by the sender for correction. The signing
process is stopped for envelopes with this status.
Code Description
created The recipient is in a draft state. This is only associated with draft
envelopes (envelopes with a Created status).
sent The recipient has been sent an email notification that it is their turn to sign
an envelope.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 16
Code Description
delivered The recipient has viewed the document(s) in an envelope through the
DocuSign signing web site. This is not an email delivery of the documents
in an envelope.
signed The recipient has completed (signed) all required tags in an envelope.
This is a temporary state during processing, after which the recipient is
automatically moved to Completed.
declined The recipient declined to sign the document(s) in the envelope.
completed The recipient has completed their actions (signing or other required actions
if not a signer) for an envelope.
faxpending The recipient has finished signing and the system is waiting a fax
attachment by the recipient before completing their signing step.
autoresponded The recipient’s email system auto-responded (bounced-back) to the email
from DocuSign. This status is used in the web console to inform senders
about the bounced-back email. This is only used if “Send-on-behalf-of” is
turned off for the account.
Getting Started
To get started you should get a DocuSign Integrator Key, review the Basic Scenarios, and review the
REST API references.
Integrator Keys
An Integrator Key is a Unique Identifier for each DocuSign integration. It is used (and required) for all
API calls (SOAP or REST) to any DocuSign service. Having an Integrator Key lets DocuSign “tag”
each API call from all integrations, and helps provide both an additional layer of security and helps
DocuSign support our partners. An Integrator Key is REQUIRED for all integrations, and if you want
to move to Production (make calls to www.docusign.net) you also must be certified and get that
Integrator Key authorized by DocuSign for Production.
All Integrator Keys are used for development first, and as a result, they are all managed (and
requested) in DocuSign’s DEMO service. If you already have a developer account on demo, log in to
request an Integrator Key. If you do not have a Demo Developer Account, go to the DocuSign
Developer Center and request a free account.
After you have developed your integration using your Demo Integrator Key, you must get that
Integrator Key certified before moving to production. In order to become certified, you must be a
member of our Developer Program. With that membership, you get access to all sorts on ongoing
support, certification help, and access to production. To join the program, or start the certification
process, see the Quick Start Overview and Go Live Overview on the DocuSign Developer Center for
more information about the developer program.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 17
DocuSign has implemented the following API Call Rate Limits to balance loads on the system:
• The demo environment (demo.docusign.net) is limited to a call rate of 1,000 API calls per hour
per account.
• The production environment (www.docusign.net) is limited to a call rate of 1,000 API calls per
hour per account.
If the API call rate limit is reached, you will receive an exception for each call until the start of the next
hour (this can be up to 60 minutes). The exception message states, “The maximum number of hourly
API invocations has been exceeded” (error number 207).
Hourly API usage is tracked from the start of one-hour to start of the next hour.
Customers can monitor the number of API calls their application uses by checking the API Limit
Headers that are returned in the response to REST API requests. The headers are returned in both
the production and demo environments.
The headers are only returned in the response to REST API requests for calls that are subject to
DocuSign API limits. So the API limit headers will not be returned in all the API responses and your
code should take this into consideration.
Instances where the API limit headers are not returned include:
When an error is detected early in an API request. Usually this due to errors in the request
body or invalid query string parameters.
API calls that historically have not been counted as part of the DocuSign legacy API limits
strategy.
Any API calls that do not require user authentication and do not identify a specific account
user.
For instances where the API limit headers are not returned, there is no change to the remaining calls
available for the account.
The information in the API limit header shows the current API limit for the account (the number of calls
that can be made per hour), the number of remaining calls for the current time period, and when the
account API limit will reset. The reset time is shown in Unix epoch time.
For polling compliance DocuSign recommends that you do not exceed 1 status request per unique
envelope (GET /accounts/{accountId}/envelopes) per 15 minutes.
There are a number of ways to minimize API impact, such as:
• using bulk operations for requesting status,
• utilizing DocuSign’s event notification feature,
• and refraining from repeatedly requesting information on envelopes that are in terminal state
(Completed, Declined or Voided).
If you find your application still requires more than 1,000 calls per hour per account, please contact
[email protected] for assistance in working on a solution.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 18
If you have any questions, please check our DocuSign Developer Forum on Stack Overflow.
Additionally, you must add your own value on the request and that information is preserved in the
response.
For example, you could add the time your application starts a process (such as MySendApp,<start
time>) and then check the round-trip network time for an action.
Request:
X-DocuSignTimeTrack: MySendApp,2016-01-05T22:30:52.2522666Z
Response:
X-DocuSignTimeTrack: MySendApp,2016-01-05T22:30:52.2522666Z;REST0_Start,2016-01-
05T22:30:52.2522730Z;REST0_End,2016-01-05T22:30:52.3182730Z
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 19
The base URL for your account is retrieved by using the /login_information uri and is used in
future API calls as the base of the request URL.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 20
The DocuSign REST API Send On Behalf Of function uses the <SendOnBehalfOf> node in the X-
DocuSign-Authentication header to add a Send On Behalf Of identifier for the operating user.
The Send On Behalf Of identifier can be a properly formatted email address, with an optional
semicolon delimited user name, or, if using the Single Sign On (SSO) environment, a User ID (UID)
that can be looked up in the DocuSign SSO configuration.
If the identifier is a properly formatted email address, the system conducts a look-up of the
email address and user name (if provided) to see if that user is a member of the account. If
membership in the account is not found, an error is returned. The account used for the check
is the one associated with the authenticating user’s credentials.
If the identifier is not an email address (the identifier fails the regular expression test for an
email), it is assumed that the identifier is a UID. A search is conducted for the UID in the
DocuSign system for a userId and the Single Sign On (SSO) customer system. If the UID is
found the email address and user name associated with the UID are retrieved. Then the
system conducts a look-up of the email address and user name to see if that user is a member
of the account. If membership in the account is not found, an error is returned. The account
used for the check is the one associated with the authenticating user’s credentials.
X-DocuSign-Authentication:
<DocuSignCredentials><SendOnBehalfOf>[email protected]</SendOnBehalfOf><Username>{name}
</Username><Password>{password}</Password><IntegratorKey>{integrator_key}</IntegratorKey>
</DocuSignCredentials>
Accept: application/json
Content-Type: application/json
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 21
X-DocuSign-Authentication:
<DocuSignCredentials><SendOnBehalfOf>[email protected];Bob
Smith</SendOnBehalfOf><Username>{name}</Username><Password>{password}</Password><Integrat
orKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
X-DocuSign-Authentication:
<DocuSignCredentials><SendOnBehalfOf>P134325</SendOnBehalfOf><Username>{name}</Username><
Password>{password}</Password><IntegratorKey>{integrator_key}</IntegratorKey></DocuSignCr
edentials>
Accept: application/json
Content-Type: application/json
Configuring an App
In order to leverage the DocuSign OAuth protocol, your application must be registered with DocuSign.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 22
Note: if you are trying to access the Demo version of DocuSign Admin, use the url:
https://admindemo.docusign.com.
2. In DocuSign Admin, click API and Keys in the left navigation panel.
3. Click ADD INTEGRATOR KEY.
Redirect URIs
Redirect URIs must be configured with your client application registration. When provided in the
constructed URI, they must be an exact match with the value in your configuration. An app can have
multiple redirect URIs configured.
Client Secrets
If your integration is using the authorization code grant type, you need to provision secret keys with
DocuSign. An integrator key can have multiple secrets at a time, which allows developers to provision
a new secret key without service interruptions.
Secrets should be securely stored within your application. They should never be shared or disclosed
publicly. For that reason, the authorization grant type is not suitable for applications which are
installed on a user’s device (e.g. mobile app or desktop client).
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 23
When adding a secret key, be sure to copy the secret to a secure location immediately after you
create it. Secret keys are only displayed in plain text when they are first created. After that, for security
purposes, DocuSign only shows the last 4 digits of the key.
3. To add a new redirect URI, click ADD URI and type the URI.
Repeat this step to add other URIs.
4. To delete a redirect URI, find the URI in the list and click the X adjacent to the URI.
5. To add a new Secret Key, click ADD SECRET KEY to generate the new secret.
IMPORTANT: Copy the secret key to a secure location immediately after you create it. Secret
keys are only displayed in plain text when they are first created. After that, for security
purposes, DocuSign only shows the last 4 digits of the key.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 24
6. To delete a secret key, find the key in the list and click the X adjacent to the key.
7. Click SAVE to save your changes.
Making Requests
DocuSign OAuth requests are directed at a particular DocuSign environment (for the Hostname) and
Endpoint. The Hostname and Endpoint information is given below and examples of how to use them
are in the sections that follow.
Environment Hostname
Demo https://account-d.docusign.com
Production https://account.docusign.com
The Endpoints supported as part of OAuth 2.0 are:
Authentication /oauth/auth
Token /oauth/token
User Info /oauth/userinfo
Authentication Request
The following format can be used to create URLs for authenticating users with the OAuth protocol.
https://{hostname}/oauth/auth
This is considered the start URL of the OAuth protocol. To initiate authentication, the integration
should redirect the user to this particular endpoint while specifying the appropriate parameters.
Implementers must append the appropriate parameters to their request to properly configure type of
authentication.
Authentication Parameters
The following parameters are used to construct the authentication URL.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 25
Error Responses
If authentication did not complete successfully, the user might be redirected to the application with an
error. The error response is formatted as follows:
HTTP/1.1 302 Found
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 26
Location: https://client.example.com/callback?
error=invalid_request
&error_description=Unsupported%20request.
&state=a39fh23hnf23
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 27
Token Request
Once an application has an authorization code, it can use the code to make a token request. The
response contains the access token and refresh token. The access token is the authorization token
used to access resources in the API.
To make a token request, the application would make a form post to the token endpoint with the
following parameters.
POST /oauth/token
Host: account.docusign.com
Content-Type: application/x-www-form-urlencoded
Authorization: Basic <base64 encoded string: {client_id} + ":" +
{client_secret}>
grant_type=authorization_code&code=ey2dj3nd.AAAA39djasd3.dkn4449d21d
The application must include their app credentials in the authorization header. This can be achieved
by concatenating the client_id with a “:” and the client_secret. The resulting string should be base64
encoded.
Token Response
If the grant_type and grant are accepted, the token endpoint returns a response similar to the one in
the following example. The server issues a new access token and a new refresh token. It’s expected
that the application will update the refresh token whenever it is reissued so that it retains the most
recent refresh token.
{
"access_token":
"eyJ0eXAiOiJNVCIsImFsZyI6IlJTMjU2Iiwia2lkIjoiZTNlYTVkMmEtMjBlMC00MTkxLWIxNWM
tZTNhYjJkYTIxZTViIn0.AQUAAAABAAUABwCy-FavV2jSSAgAsnidy91o0kgGAPXvg-
fhU7JFtZk4EOicKqwCALGa2FDV2gpKtBCS7jEQuXA.alpiE3XAgLTunEmpBsfbk6Lv8CIgJGm3D7
7EWOCYevGG1bgsXJZuX0pDjRPyMQXqfSI1vzutPJCp9Ckpf9mNUbKYbxavEhioQx2AaZh6uEMwHs
Yij-FUSpCBhD7SGByjB2giTEGEJDo1vj-YxgSq3OBMb-
zMBpdgLUqN8VbmEQCLpeUKbgtU4jri1JkCwUQeKN7igEIVK-
75URPySbFcs3h9jUAmPEKi3NaQiciUFcMXYhXAldDkML8eoRKAGrebfg_Fs686wSfX_ZDz1SyKdr
z130nB9DZX3NpUlbhmYaPSm7qwT3qgRQJDywMRWQxTr-72xghXHwVzzMuN9-yGhA",
"token_type": "Bearer",
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 28
"refresh_token":
"eyJ0eXAiOiJNVCIsImFsZyI6IlJTMjU2Iiwia2lkIjoiZTNlYTVkMmEtMjBlMC00MTkxLWIxNWM
tZTNhYjJkYTIxZTViIn0.AQUAAAABAAUABwCy-FavV2jSSAgAsnidy91o0kgGAPXvg-
fhU7JFtZk4EOicKqwCALGa2FDV2gpKtBCS7jEQuXA.alpiE3XAgLTunEmpBsfbk6Lv8CIgJGm3D7
7EWOCYevGG1bgsXJZuX0pDjRPyMQXqfSI1vzutPJCp9Ckpf9mNUbKYbxavEhioQx2AaZh6uEMwHs
Yij-FUSpCBhD7SGByjB2giTEGEJDo1vj-YxgSq3OBMb-
zMBpdgLUqN8VbmEQCLpeUKbgtU4jri1JkCwUQeKN7igEIVK-
75URPySbFcs3h9jUAmPEKi3NaQiciUFcMXYhXAldDkML8eoRKAGrebfg_Fs686wSfX_ZDz1SyKdr
z130nB9DZX3NpUlbhmYaPSm7qwT3qgRQJDywMRWQxTr-72xghXHwVzzMuN9-yGhA",
"expires_in": 57592
}
grant_type=refresh_token&refresh_token=ey4fdd3nd.AAAA3d2ddagq3.akd1243d31d
Clients implementing the flow should provide users an opportunity to cancel out of the flow, in case
the request fails somewhere and it is not possible to redirect the user to the redirect_uri.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 29
Location: https://client.example.com/callback#
access_token=eyA3J3ad.k32jdskd.ann4ds
&token_type=bearer
&expires_in=3600
&state=a39fh23hnf23
User Information
The User Info Endpoint is used to request information about the authentication user.
The userinfo API returns their user id, list of accounts in which they have an active membership, and
other profile information.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 30
"email": "[email protected]"
}
IMPORTANT: If an integration is using OAuth with the authorization code or implicit grant type,
the userinfo API replaces login_information. If an integration is using this method of OAuth,
login_information should never be used.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 31
The client application should take the following actions to obtain an access token and other
information:
1. Prompt the user for email/password.
The client shows the UI for this prompt and is responsible to keep the information confidential and
not store it locally.
2. Call the Login_Information API.
The UserName/Password/IntegratorKey are set in the X-DocuSign-Authentication header for this
call.
The client uses this API call to obtain the baseUrl, accountId, and userId for the user and stores
this information on the client side.
3. Post to Token Endpoint to obtain the access_token.
The baseUrl retrieved in the login_information API is used with the token endpoint. The client
user’s username, password are used, along with the client application’s integrator key (set as
“client_id”). The username and password should be urlencoded to encode any special characters
(such as ‘+’). The OAuth2 scope is always set to “api”.
The format of the token api call is as follows:
POST https://{server}/restapi/{apiVersion}/oauth2/token
Accept: application/json
Content-Type: application/x-www-form-urlencoded
grant_type=password&client_id={IntegratorKey}&username={email}&password={password}&scope
=api
The client application then stores the access_token for future use. The access_token is valid in all
future API calls to authenticate this user, until the token is revoked. It is not affected by password
changes. The client application is responsible for storing and protecting this token.
Important: The length of the access token is variable. It is normal for the token to be at least 550
characters or longer. Don’t make assumptions about the length.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 32
Normal Usage
Once the access_token, baseUrl, accountId and other information has been obtained, other API calls
may be made without returning to the token and login_information API’s. The only time the client
application should need to repeat that sequence (login_information, token) is if other API calls return
an error indicating that the client was not authorized.
To use the access_token in REST API calls:
Set the Authorization header in each call as follows:
GET https://{server}/restapi/{apiVersion}/accounts/{accountId}/envelopes/
{envelopeId}
Authorization:bearer{accessToken}
Accept: application/json
Content-Type: application/json
SAML Assertion
The client must create a valid SAML bearer assertion that conforms to the following rules:
The Signature must be valid against the stored X509 signing certificate.
The SAML assertion can use a user’s email address or user ID.
When using an email address in the SAML assertion, set the subject name ID format to email
address. For example:
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 33
<saml:Subject>
<saml:NameIDFormat="urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress">{user
emailaddress}</saml:NameID>
</saml:Subject>
When using a user Id in the SAML assertion, set the subject name ID format to persistent. For
example:
<saml:Subject>
<saml:NameIDFormat="urn:oasis:names:tc:SAML:2.0:nameid-format:persistent">{user
id(GUID)}</saml:NameID>
</saml:Subject>
<SignatureValue>QtGWSSUdlzEi26p09etY2PbXfKr72TdM81TK662HvlUuNYeBahintlwvHPhFrJisA17mE
5BqAxcaiBY41+nU3AzujnNzmXpFH9Svrq0kBERjFVWGZVKbm4FKlmUF8fxYgiZIVJ5MY
vaPowglaWfNhyHG2CkSUeNAUIJQSlzuf9I=</SignatureValue>
<KeyInfo>
<X509Data>
<X509Certificate>[removed for brevity]</X509Certificate>
</X509Data>
</KeyInfo>
</Signature>
<saml:Subject>
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 34
<saml:NameID Format="urn:oasis:names:tc:SAML:1.1:nameid-
format:emailAddress">{user email address}</saml:NameID>
<saml:SubjectConfirmation Method="urn:oasis:names:tc:SAML:2.0:cm:bearer">
<saml:SubjectConfirmationData NotOnOrAfter="{SAML Assertion Expiration
Date}" Recipient="https://{server}/restapi/{apiversion}/oauth2/token" />
</saml:SubjectConfirmation>
</saml:Subject>
<saml:Conditions>
<saml:AudienceRestriction>
<saml:Audience>https://www.docusign.net</saml:Audience>
</saml:AudienceRestriction>
</saml:Conditions>
<saml:AuthnStatement AuthnInstant="2012-12-04T19:37:23.143Z">
<saml:AuthnContext>
<saml:AuthnContextClassRef>urn:oasis:names:tc:SAML:2.0:ac:classes:
X509</saml:AuthnContextClassRef>
</saml:AuthnContext>
</saml:AuthnStatement>
</saml:Assertion>
Revoking Tokens
Both the client application and the user can revoke access_tokens. A revoked access_token is no
longer valid and attempts to use it will result in an error response.
A client application should provide a mechanism for revoking access. This could be something like a
“Disconnect <myApp> from DocuSign” button in the client application. When selected, the client
application would revoke the access_token and remove it from the client application’s storage. The
client application would then go through the OAuth2 Token Request steps previously described to re-
establish authentication.
Accept: application/json
Content-Type: application/x-www-form-urlencoded
token={access token to revoke}
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 35
The user can revoke access by clicking the Revoke button on the same line as the
application.
Note: An application, as defined by its integrator key, can appear up to 10 times in this list. There
is currently no indication of which instance of a given client application will be revoked, other than
the date that the client was attached.
For example, if the client application were an iPad app and the user owned two iPads, then both
might appear in the list. The user would not know which row in the table is associated with which
iPad, unless the user knew the date/time the iPad application created the token.
Note: If you are setting user permissions through the DocuSign web console, these correspond to
the Account-Wide Rights and Send On Behalf Of Rights (API) settings.
The two methods of for acting as other users are described below:
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 36
“operating user’s” userId is checked for proper authorization for the API method being called. This
allows the client application to avoid storing any tokens for individual users.
To act as other account users, the client application specifies the operating user by adding the “X-
DocuSign-Act-As-User” header to the request. For example:
GET https://{server}/restapi/{apiVersion}/accounts/{accountId}/envelopes/
{envelopeId}
The syntax email:name is also supported in the <SendOnBehalfOf> node in the “X-DocuSign-
Authentication” header.
{
"access_token":"{access token for bob smith}",
"scope":"api",
"token_type":"bearer"
}
Once obtained, this access_token should be stored with the individual user’s information and
protected from unauthorized use, since it will remain valid until revoked. It will be valid across
user password changes.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 37
Basic Scenarios
This section provides some basic scenarios for using the DocuSign REST API. The examples in this
section explain basic tasks such as creating envelopes, checking envelope status and retrieving envelopes
and documents.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 38
Note: After using login_information to get the baseUrl, the base Url and apiPassword can be
stored by the client. The login_information call is not needed in subsequent sessions, unless
another call fails and the user needs to re-authenticate. Each call performs authentication.
This is a multipart form request. The general envelope information (status, email text and email
subject) appears first, followed by the document bytes and recipient information. In this example, a
text document is used for clarity, but other document types (pdf, Word, etc.) can be used.
The status value in the envelope is used to set if the envelope should be sent (status = sent) or saved
as a draft (status = created).
In this example there is only one document and recipient.
Example Request
POST https://{server}/restapi/{apiVersion}/accounts/{accountId}/envelopes
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: multipart/form-data; boundary=AAA
--AAA
Content-Type: application/json
Content-Disposition: form-data
{
“status”:”sent”,
"emailBlurb":"Test Email Body",
"emailSubject": "Test Email Subject – EnvelopeDefFull",
"documents": [{
"name": "test1.pdf",
"documentId":"1",
"order":"1"
}],
"recipients": {
"signers" : [{
"email": "[email protected]",
"name": "Mike Rosey",
"recipientId":"1"
}]
}
--AAA
Content-Type: application/pdf
Content-Disposition: file; filename="test1.pdf"; documentid=1
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 39
<documents removed>
--AAA--
Response
The response returns the envelope ID, status, and date-time stamp for the envelope status. It also
includes the uri for the envelope.
The following example shows the header followed by the response json body.
Example Response
201 Created
Content-Length: 175
Cache-Control: private
Content-Type: application/json; charset=utf-8
Date: Tue, 06 Mar 2012 17:22:17 GMT
{
"envelopeId": "c254d988-f501-42d3-a858-feeb50f361e2",
"status": "sent",
"statusDateTime": "2012-03-06T17:22:17.2030000Z",
"uri": "\/envelopes\/c254d988-f501-42d3-a858-feeb50f361e2"
}
Note: After using login_information to get the baseUrl, the base Url and apiPassword can be
stored by the client. The login_information call is not needed in subsequent sessions,
unless another call fails and the user needs to re-authenticate. Each call performs authentication.
The general envelope information (status, email text and email subject) appears first, followed by the
template definition, which contains the unique ID for the template and the recipient roles, which have
pre-assigned tags.
The status value in the envelope is used to set if the envelope should be sent (status = sent) or saved
as a draft (status = created).
In this example, there are two recipients that are assigned to templateRoles.
Example Request
POST https://{server}/restapi/{apiVersion}/accounts/{accountId}/envelopes
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 40
Accept: application/json
Content-Type: application/json
Content-Disposition: form-data
{
“status”:”sent”,
"emailBlurb":"Test Email Body (Template)",
"emailSubject": "Test Email Subject (Template)",
"templateId":"270D920E-C65A-410D-9640-75D2FBEADAC2",
"templateRoles":[
{
"email":"[email protected]",
"name":"Mike Rosey",
"roleName":"Signer 1"
},
{
"email":"[email protected]",
"name":"Lara Roseleip",
"roleName":"Signer 2"
}
]
Response
The response returns the envelope ID, status, and date-time stamp for the envelope status. It also
includes the uri for the envelope.
The following example shows the header followed by the response json body.
Example Response
201 Created
Content-Length: 175
Cache-Control: private
Content-Type: application/json; charset=utf-8
Date: Tue, 06 Mar 2012 17:22:17 GMT
{
"envelopeId": "c254d988-f501-42d3-a858-feeb50f361e2",
"status": "sent",
"statusDateTime": "2012-03-06T17:22:17.2030000Z",
"uri": "/envelopes/c254d988-f501-42d3-a858-feeb50f361e2"
}
Embedded Sending
The embedded sending resource retrieves a url for accessing the tagging and sending page of the
DocuSign console. The envelope ID used here is the envelope that is opened in the console view.
To open an envelope in the console for embedded sending, the
/accounts/{accountId}/envelopes/{envelopeId}/views/sender uri is appended to the base Url
value to get the url to open the envelope in the DocuSign console.
After opening the envelope in the console, you can make changes to the envelope and send it.
Example Request
POST https://{server}/restapi/{apiVersion}/accounts/{accountId}/envelopes/
{envelopeId}/views/sender
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 41
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
{
"returnUrl":"https://www.docusign.com"
}
Response
The response returns the url to access the console.
The following example shows the header followed by the response json body.
Example Response
201 Created
Content-Length: 168
Cache-Control: private
Content-Type: application/json; charset=utf-8
Date: Fri, 30 Mar 2012 14:53:16 GMT
{"url":"https:\/\/fanyv88.com:443\/http\/localhost\/Member\/StartInSession.aspx?StartConsole=1&t=6cafaeaa-cc6b-
496d-812d-421b72f854de&DocuEnvelope=AB52A90E-BDC7-4F59-BFBD-90E32E984EA7&send=1"}
Embedded Signing
The embedded signing resource retrieves a url for accessing the recipient view of a DocuSign
envelope. This could be used to incorporate the DocuSign signing process directly into your online
process flow, without requiring the signer to leave your web page.
To open an envelope embedded signing, the
/accounts/{accountId}/envelopes/{envelopeId}/views/recipient uri is appended to the base
Url value to get the url to open the envelope.
The basic information needed is the envelope ID, recipient information (email, user name), and
authentication information.
The autherication information (authenticationMethod and authenticationInstant) are sender-created
items that must be included in the request. The authentication information is included in the
Cerrtificate of Completion for the envelope.
The return URL provides DocuSign with information about where to direct the sender for certain
events, such as completing signing or for a session timeout. See Post Recipient View for more
information about the returnURL.
Example Request
POST https://{server}/restapi/{apiVersion}/accounts/{accountId}/envelopes/
{envelopeId}/views/recipient
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
{
"authenticationMethod":"email",
"authenticationInstant":"30-03-2012 | 10:05",
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 42
"email":"[email protected]",
"returnUrl":"https://www.docusign.com",
"userName":"Mike Rosey"
}
Response
The response returns the url to access a recipient’s view.
The following example shows the header followed by the response json body.
Example Response
201 Created
Content-Length: 96
Cache-Control: private
Content-Type: application/json; charset=utf-8
Date: Fri, 30 Mar 2012 14:52:58 GMT
{"url":"https:\/\/fanyv88.com:443\/http\/localhost\/Member\/StartInSession.aspx?t=d1cf42f2-30b6-499b-ab54-
058fbf438103"}
Example Request
This example requests any envelopes that changed Completed status since May 2, 2012.
GET https://{server}/restapi/{apiVersion}/accounts/{accountId}/envelopes
?from_date=5-2-2012+12:00:00+AM&from_to_status=changed&status=completed
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
Response
The response returns the uri’s for the envelope certificate, custom fields, documents, envelope along
with the envelope ID, envelope status, and the date-time stamp for the envelope status change for the
envelopes. If a query string was added to the original request, only the envelopes that meet those
parameters are included in the response.
The following example shows the header followed by the response json body.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 43
Example Response
200 OK
Content-Length: 1221
Cache-Control: private
Content-Type: application/json; charset=utf-8
Date: Tue, 06 May 2012 17:22:22 GMT
X-AspNet-Version: 4.0.30319
{
"envelopes": [{
"certificateUri": "\/envelopes\/fd1afecb-5fc4-4f11-aac4-
0d6fe089105f\/documents\/certificate",
"customFieldsUri": "\/envelopes\/fd1afecb-5fc4-4f11-aac4-
0d6fe089105f\/custom_fields",
"documentsCombinedUri": "\/envelopes\/fd1afecb-5fc4-4f11-aac4-
0d6fe089105f\/documents\/combined",
"documentsUri": "\/envelopes\/fd1afecb-5fc4-4f11-aac4-
0d6fe089105f\/documents",
"envelopeId": "fd1afecb-5fc4-4f11-aac4-0d6fe089105f",
"envelopeUri": "\/envelopes\/fd1afecb-5fc4-4f11-aac4-0d6fe089105f",
"notificationUri": "\/envelopes\/fd1afecb-5fc4-4f11-aac4-
0d6fe089105f\/notification",
"recipientsUri": "\/envelopes\/fd1afecb-5fc4-4f11-aac4-
0d6fe089105f\/recipients",
"status": "completed",
"statusChangedDateTime": "2012-05-23T16:21:09.2830000Z"
},
{
"certificateUri": "\/envelopes\/23306db8-261a-43c5-b078-
ac020113af09\/documents\/certificate",
"customFieldsUri": "\/envelopes\/23306db8-261a-43c5-b078-
ac020113af09\/custom_fields",
"documentsCombinedUri": "\/envelopes\/23306db8-261a-43c5-b078-
ac020113af09\/documents\/combined",
"documentsUri": "\/envelopes\/23306db8-261a-43c5-b078-
ac020113af09\/documents",
"envelopeId": "23306db8-261a-43c5-b078-ac020113af09",
"envelopeUri": "\/envelopes\/23306db8-261a-43c5-b078-ac020113af09",
"notificationUri": "\/envelopes\/23306db8-261a-43c5-b078-
ac020113af09\/notification",
"recipientsUri": "\/envelopes\/23306db8-261a-43c5-b078-
ac020113af09\/recipients",
"status": "completed",
"statusChangedDateTime": "2012-05-23T16:20:44.7830000Z"
}],
"resultSetSize": 2
}
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 44
Example Request
GET https://{server}/restapi/{apiVersion}/accounts/{accountId}/envelopes/
{envelopeId}/documents/combined
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/pdf
Content-Type: application/json
Response
The response returns the document and certificate as a PDF document.
The following example shows the header followed by the response json body (the byte stream is not
included to limit the size of the example).
Example Response
200 OK
Content-Length: 100079
Cache-Control: private
Content-Type: application/pdf
Date: Tue, 06 Mar 2012 17:22:10 GMT
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 45
The response returns account information for the account associated with your DocuSign credentials.
{"loginAccounts":[{"accountId":"accountId#","baseUrl":"https:\/\/fanyv88.com:443\/https\/demo.docusign.net\/resta
pi\/v2\/accounts\/accountId#","email":"[email protected]","isDefault":"true","name":"Use
r Name","siteDescription":"","userId":"userId#","userName":"User Name"}]}
The response returns account information for the account associated with your DocuSign credentials.
<loginInformation xmlns="http://www.docusign.com/restapi"
xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<loginAccounts><loginAccount><accountId>account#</accountId><baseUrl>https://demo.docusig
n.net/restapi/v2/accounts/accountId#</baseUrl><email> [email protected]
</email><isDefault>true</isDefault><name>User
Name</name><siteDescription/><userId>usedId#</userId><userName>User
Name</userName></loginAccount></loginAccounts></loginInformation>
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 46
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 47
2A
--c009ab22-d9ff-4f9d-87ca-3b7a79d092e3
E
Content-Type:
12
application/json
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 48
15
Content-Disposition:
B
form-data
2706
{
"status" : "sent",
"emailBlurb":"Test Email Body",
"emailSubject": "Test Email Subject - EnvelopeDefFull",
"asynchronous": true,
"enforceSignerVisibility": true,
"documents": [{
"name": "test1.pdf",
"documentId": 1
}],
"recipients": {
"signers" :
[
{
"email": "[email protected]",
"name": "Mike Rosey",
"recipientId": "1",
"enforceSignerVisibility": true,
"tabs": {
[tabs ommitted for brevity]
}
}
]
}
}
2A
--c009ab22-d9ff-4f9d-87ca-3b7a79d092e3
E
Content-Type:
11
application/pdf
15
Content-Disposition:
1C
file; filename="test1.pdf"
1B
Content-Transfer-Encoding:
8
base64
3014
[base64 buffer omitted for brevity]
2A
--c009ab22-d9ff-4f9d-87ca-3b7a79d092e3—
0
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 49
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 50
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 51
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 52
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 53
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 54
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 55
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 56
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 57
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 58
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 59
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 60
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 61
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 62
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 63
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 64
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 65
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 66
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 67
Login
The /login_information API is used to determine if a user is authenticated and to choose the
account to be used for other operations. Each account associated with the login credentials is listed.
The “baseUrl” parameter is used in all future API calls as the base of the request URL. This baseUrl
contains the DocuSign server, the API version, and the accountId to be used for the login.
This request uses your DocuSign credentials to retrieve the account information.
URL:
https://{server}/restapi/{apiVersion}/login_information
Optional query strings: api_password={true or false}, include_account_id_guid={true or false},
login_settings={all or none}
Formats:
XML, JSON
HTTP Method:
GET
Parameters:
There are no required parameters, but the following optional query strings can be added to the
request.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 68
Response
The response returns account information for the account associated with your DocuSign credentials,
along with any optional information included in the request. The baseUrl information for future calls is
included in the response.
The following example shows the header followed by the response json body.
{
"apiPassword":"String content",
"loginAccounts":[{
"accountId":"String content",
"baseUrl":"String content",
"email":"String content",
"isDefault":"String content",
"loginAccountSettings":[{
"name":"String content",
"value":"String content"
}],
"loginUserSettings":[{
"name":"String content",
"value":"String content"
}],
"name":"String content",
"siteDescription":"String content",
"userId":"String content",
"userName":"String content"
}]
}
Change Password
This changes the password for a user.
URL:
/login_information/password
Formats:
XML, JSON
HTTP Method:
PUT
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 69
Parameters:
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
{
"currentPassword": "String content",
"email": "String content",
"forgottenPasswordInfo": {
"forgottenPasswordAnswer1": "String content",
"forgottenPasswordAnswer2": "String content",
"forgottenPasswordAnswer3": "String content",
"forgottenPasswordAnswer4": "String content",
"forgottenPasswordQuestion1": "String content",
"forgottenPasswordQuestion2": "String content",
"forgottenPasswordQuestion3": "String content",
"forgottenPasswordQuestion4": "String content"
},
"newPassword": "String content"
}
Response
The response returns a success or failure.
Create Account
This creates a new account for using the DocuSign service.
URL:
/accounts
Formats:
XML, JSON
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 70
HTTP Method:
POST
Parameters:
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 71
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 72
accountSettings:
The accountSettings set the account feature information.
Setting Name Value Authorization Description
Required
adoptSigConfig Boolean Admin When true, the Signature
Adoption Configuration page is
available to account
administrators.
allowAccessCodeFormat Boolean Admin When true, the Access Code
Format page is available to
account administrators.
allowAccountManagementGranula Boolean Admin When true, the Delegated
r Administration functionality is
available to account.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 73
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 74
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 75
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 76
elds, PageThenAllFields.
bulkSend Boolean Admin When true, the account allows
bulk sending of envelopes.
canSelfBrandSend Boolean SysAdmin When true, account
administrators can self-brand
their sending console through
the DocuSign Console.
canSelfBrandSign Boolean SysAdmin When true, account
administrators can self-brand
their signing console through
the DocuSign Console.
conditionalFieldsEnabled Boolean Admin When true, conditional fields
can be used by the account.
dataFieldRegexEnabled Boolean Admin When true, the Regex field is
available for tabs with that
property.
dataFieldSizeEnabled Boolean Admin When true, the maximum
number of characters field is
available for tabs with that
property.
dataPopulationScope String Admin This sets how data is shared for
tabs with the same tabLabel.
This applies to Check box,
Company, Data Field,
Dropdown List, Full Name,
Formula, Note and Title tabs.
IMPORTANT: Changing this
setting will affect envelopes that
have been sent, but not
completed.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 77
document.
documentConversionRestrictions String Admin Sets the account document
upload restriction for non-
account administrators. There
are three possible values:
No Restrictions: there are
no restrictions on the type
of documents that can be
uploaded.
Allow PDF only: non-
administrators can only
upload PDF files.
No Upload: Non-
administrators cannot
upload files.
enableAutoNav Boolean SysAdmin or When true, the auto-navigation
EnableAutoNa is enabled for the account.
vByDSAdmin
is set
enableCalculatedFields Boolean Admin & When true, this account can
AllowExpressi use the Calculated Fields
on is set feature.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 78
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 79
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 80
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 81
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 82
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 83
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 84
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
{
"accountName":"String content",
"accountSettings":[{
"name":"String content",
"value":"String content"
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 85
}],
"addressInformation":{
"address1":"String content",
"address2":"String content",
"city":"String content",
"country":"String content",
"fax":"String content",
"phone":"String content",
"postalCode":"String content",
"state":"String content"
},
"creditCardInformation":{
"cardNumber":"String content",
"cardType":"String content",
"expirationMonth":"String content",
"expirationYear":"String content",
"nameOnCard":"String content"
},
"distributorCode":"String content",
"distributorPassword":"String content",
"initialUser":{
"activationAccessCode":"String content",
"email":"String content",
"enableConnectForUser":"String content",
"firstName":"String content",
"forgottenPasswordInfo":{
"forgottenPasswordAnswer1":"String content",
"forgottenPasswordAnswer2":"String content",
"forgottenPasswordAnswer3":"String content",
"forgottenPasswordAnswer4":"String content",
"forgottenPasswordQuestion1":"String content",
"forgottenPasswordQuestion2":"String content",
"forgottenPasswordQuestion3":"String content",
"forgottenPasswordQuestion4":"String content"
},
"groupList": [
{
"groupId": "string content",
"groupName": "string content",
"permissionProfileId": "string content",
"groupType": "string content"
},
{
"groupId": "string content",
"groupName": "string content",
"permissionProfileId": "string content",
"groupType": "string content"
}
],
"lastName":"String content",
"middleName":"String content",
"password":"String content",
"sendActivationOnInvalidLogin":"String content",
"suffixName":"String content",
"title":"String content",
"userName":"String content",
"userSettings":[{
"name":"String content",
"value":"String content"
}]
},
"planInformation":{
"currencyCode":"String content",
"planFeatureSets":[{
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 86
"currencyFeatureSetPrices":[{
"currencyCode":"String content",
"currencySymbol":"String content",
"envelopeFee":"String content",
"fixedFee":"String content",
"seatFee":"String content"
}],
"envelopeFee":"String content",
"featureSetId":"String content",
"fixedFee":"String content",
"isActive":"String content",
"isEnabled":"String content",
"name":"String content",
"seatFee":"String content"
}],
"planId":"String content",
"freeTrialDaysOverride":"String content",
},
"referralInformation":{
"advertisementId":"String content",
"enableSupport":"String content",
"groupMemberId":"String content",
"idType":"String content",
"includedSeats":"String content",
"industry":"String content",
"planStartMonth":"String content",
"promoCode":"String content",
"publisherId":"String content",
"referralCode":"String content",
"referrerName":"String content",
"saleDiscountPercent":"String content",
"shopperId":"String content"
},
"socialAccountInformation":{
"email":"String content",
"provider":"String content",
"socialId":"String content",
"userName":"String content"
}
}
Response
The response returns the new account ID, password and the default user information.
The following example shows the response json body.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 87
URL:
/accounts
Formats:
XML, JSON
HTTP Method:
POST
Parameters:
See the Create Account parameters for the information needed for creating an account.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
{
"newAccountRequests": [
{
(Account details ommitted for brevity)
},
{
(Account details ommitted for brevity)
}
]
}
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 88
Response
The response returns the new account ID, password and the default user information for each newly
created account.
Note: A 201 code is returned if the call succeeded, but some of the individual account requests
failed. In this case an errorDetails node is added to the new account element that failed to create a
new account.
The following examples show the response json and xml bodies.
Delete Account
This deletes the specified account.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 89
URL:
/accounts/{accountId}
Formats:
XML, JSON
HTTP Method:
DELETE
Parameters:
No parameters are required, only the specified account ID.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Response
The response body only returns a success or failure.
URL:
/accounts/{accountId}/
Formats:
XML, JSON
HTTP Method:
GET
Parameters:
No parameters are required, only the specified account ID.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 90
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Response
The response returns the account information for the requested account.
The canUpgrade information is a true/false setting that shows if the account can be upgraded through
the API.
The following example shows the response json body.
URL:
/accounts/{accountId}/billing_plan
Optional query strings: include_metadata={true or false}, include_successor_plans={true or false},
include_credit_card_information={true or false}
Formats:
XML, JSON
HTTP Method:
GET
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 91
Parameters:
There are no required parameters.
If the optional query include_metadata is true, then the canUpgrade and renewalStatus information is
included the response and an array of supportedCountries is added to the billingAddress information.
By default the successor plan and credit card information is included in the response. This
information can be excluded from the response by adding the appropriate optional query string with
the setting = false.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Response
The response returns the billing plan information, including the currency code, for the plan. The
billingPlan and succesorPlans parameters are the same as those shown in the Get Billing Plan Details
reference, the billingAddress and creditCardInformation parameters are the same as those shown in
the Update Billing Plan reference.
Note: When credit card number information is shown, a mask is applied to the response so that
only the last 4 digits of the card number are visible.
The following example shows the response json body. This example includes the upgrade/renewal
information, supportedCountries array (include_metadata=true), and the successor plans and credit
card information is not excluded.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 92
"renewalStatus": "string",
"seatDiscounts": [
{
"beginSeatCount": "string",
"endSeatCount": "string",
"discountPercent": "string"
}
],
"planFeatureSets": [
{
"featureSetId": "string",
"isActive": "string",
"name": "string",
"fixedFee": "string",
"envelopeFee": "string",
"seatFee": "string",
"isEnabled": "string",
"currencyFeatureSetPrices": [
{
"currencyCode": "string",
"fixedFee": "string",
"seatFee": "string",
"envelopeFee": "string",
"currencySymbol": "string"
}
]
}
]
},
"successorPlans": [
{
"planName": "string",
"paymentCycle": "string",
"paymentMethod": "string",
"perSeatPrice": "string",
"otherDiscountPercent": "string",
"supportIncidentFee": "string",
"supportPlanFee": "string",
"includedSeats": "string",
"enableSupport": "string",
"planId": "string",
"seatDiscounts": [
{
"beginSeatCount": "string",
"endSeatCount": "string",
"discountPercent": "string"
}
],
"planFeatureSets": [
{
"featureSetId": "string",
"isActive": "string",
"name": "string",
"fixedFee": "string",
"envelopeFee": "string"
"seatFee": "string",
"isEnabled": "string",
"currencyFeatureSetPrices": [
{
"currencyCode": "string",
"fixedFee": "string",
"seatFee": "string",
"envelopeFee": "string",
"currencySymbol": "string"
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 93
}
]
}
],
"currencyPlanPrices": [
{
"currencyCode": "string",
"perSeatPrice": "string",
"supportIncidentFee": "string",
"supportPlanFee": "string",
"currencySymbol": "string",
"supportedCardTypes": {
"cardTypes": [
"string",
"string"
]
}
}
]
}
],
"billingAddress": {
"address1": "string",
"address2": "string",
"city": "string",
"state": "string",
"postalCode": "string",
"phone": "string",
"fax": "string",
"country": "string",
"firstName": "string",
"lastName": "string",
"email": "string",
"supportedCountries": [
{
"isoCode": "string",
"provinceValidated": "string",
"name": "string",
"provinces": [
{
"isoCode": "string",
"name": "string"
},
{
"isoCode": "string",
"name": "string"
}
]
},
{
"isoCode": "string",
"provinceValidated": "string",
"name": "string",
"provinces": [
{
"isoCode": "string",
"name": "string"
},
{
"isoCode": "string",
"name": "string"
}
]
}
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 94
]
},
"billingAddressIsCreditCardAddress": "string",
"creditCardInformation": {
"cardNumber": "string",
"expirationMonth": "string",
"expirationYear": "string",
"nameOnCard": "string",
"cardType": "string",
"address": {
"street1": "string",
"street2": "string",
"city": "string",
"state": "string",
"zip": "string",
"zipPlus4": "string",
"phone": "string",
"fax": "string",
"country": "string"
}
}
}
URL:
/accounts/{accountId}/billing_plan
Formats:
XML, JSON
HTTP Method:
PUT
Parameters:
The billingAddressIsCreditCardAddress parameter (found when Getting Account Billing Plan
information) determines how the billing address and creditCardInformation address are updated.
If billingAddressIsCreditCardAddress is ‘true’ then either the billingAddress values or the
creditCardInformation address values can be used to update the single address used as billing
and credit card address. If the PUT updates both billing and credit card addresses, then the
address field values must exactly match or an error is returned. DocuSign recommends that
only one of the addresses is updated. .
If billingAddressIsCreditCardAddress is ‘false’ then the billingAddress is a billing contact
address and the credit card address is the current credit card address for billing and can be
updated separately.
When updating creditCardInformation, all of the creditCardInformation must be included in the update
(including the cardNumber, nameOnCard, expirationYear, expirationMonth, and address), even if only
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 95
part of the information is being changed. The only exception is that the expirationMonth and
expirationYear may be updated without updating the other information.
Note: When updating account billing plan information to upgrade a plan if creditCardInformation is
not included, the system will use the existing credit card information for any charges.
The referralInformation is included so that promotional codes (promoCode) can be used when
upgrading plans.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 96
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 97
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 98
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
{
"billingAddress":{
"address1": "string",
"address2": "string",
"city": "string",
"state": "string",
"postalCode": "string",
"phone": "string",
"fax": "string",
"country": "string",
"firstName": "string",
"lastName": "string",
"email": "string "
}
},
"creditCardInformation":{
"cardNumber": "string",
"expirationMonth": "string",
"expirationYear": "string",
"nameOnCard": "string",
"cardType": "string",
"address": {
"street1": "string",
"street2": "string",
"city": "string",
"state": "string",
"zip": "string",
"zipPlus4": "string",
"phone": "string",
"fax": "string",
"country": "string"
}
},
"enableSupport":"String content",
"includedSeats":"String content",
"renewalStatus": "string",
"downgradeReason": "string",
"planInformation":{
"currencyCode":"String content",
"planFeatureSets":[{
"currencyFeatureSetPrices":[{
"currencyCode":"String content",
"currencySymbol":"String content",
"envelopeFee":"String content",
"fixedFee":"String content",
"seatFee":"String content"
}],
"envelopeFee":"String content",
"featureSetId":"String content",
"fixedFee":"String content",
"isActive":"String content",
"isEnabled":"String content",
"name":"String content",
"seatFee":"String content"
}],
"planId":"String content",
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 99
"freeTrialDaysOverride":"String content"
},
"referralInformation": {
"referralCode": "string",
"referrerName": "string ",
"advertisementId": "string",
"publisherId": "string",
"shopperId": "string",
"promoCode": "string",
"groupMemberId": "string",
"idType": "string",
"industry": "string"
}
}
Response
The response returns a success or failure.
URL:
/accounts/{accountId}/billing_payments
Optional query parameters: from_date={dateTime}, to_date={dateTime}
OR
/accounts/{accountId}/billing_payments/{paymentId}
Formats:
XML, JSON
HTTP Method:
GET
Parameters:
No parameters are required, but the payment ID can be added to the URL to get information about a
single payment and the following optional query parameters can be added.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 100
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
Response
The response returns information for a single payment, if a payment ID was used in the URL, or a list
of payments. If the from date or to date queries or payment ID are not used, the response returns
payment information for the last 365 days. If the request was for a single payment ID, the nextUri and
previousUri elements are not returned.
The following example shows the response json body.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 101
URL:
/accounts/{accountId}/billing_payments
Formats:
XML, JSON
HTTP Method:
POST
Parameters:
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
{
"paymentAmount": "string"
}
Response
The response returns invoice and payment information for the past due invoices.
The following example shows the response json body.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 102
URL:
/accounts/{accountId}/billing_invoices
Optional query parameters: from_date={dateTime}, to_date={dateTime}
Formats:
XML, JSON
HTTP Method:
GET
Parameters:
No parameters are required, but the following optional query parameters can be added.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
Response
The response returns a list of invoices for the query timeframe. If the from date or to date queries are
not used, the response returns invoices for the last 365 days.
The following example shows the response json body.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 103
"amount": "string",
"taxableAmount": "string",
"nonTaxableAmount": "string",
"balance": "string",
"dueDate": "string",
"invoiceId": "string",
"invoiceNumber": "string",
"pdfAvailable": "string",
"invoiceUri": "string",
"invoiceItems": [
{
"chargeAmount": "string",
"chargeName": "string",
"invoiceItemId": "string",
"quantity": "string",
"unitPrice": "string"
},
{
"chargeAmount": "string",
"chargeName": "string",
"invoiceItemId": "string",
"quantity": "string",
"unitPrice": "string"
}
]
},
{
"amount": "string",
"taxableAmount": "string",
"nonTaxableAmount": "string",
"balance": "string",
"dueDate": "string",
"invoiceId": "string",
"invoiceNumber": "string",
"pdfAvailable": "string",
"invoiceUri": "string",
"invoiceItems": [
{
"chargeAmount": "string",
"chargeName": "string",
"invoiceItemId": "string",
"quantity": "string",
"unitPrice": "string"
},
{
"chargeAmount": "string",
"chargeName": "string",
"invoiceItemId": "string",
"quantity": "string",
"unitPrice": "string"
}
]
},
],
"nextUri": "string",
"previousUri": "string"
}
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 104
URL:
/accounts/{accountId}/billing_invoices/{invoiceId}
Formats:
XML, JSON
HTTP Method:
GET
Parameters:
No parameters are required.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
Response
The response returns the requested invoice information.
Note: If pdfAvailable in the response is true, a PDF version of this invoice can be downloaded. To
get the PDF, make the call again and change “Accept:” in the header to “Accept: application/pdf”
The following example shows the response json body.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 105
"invoiceItemId": "string",
"quantity": "string",
"unitPrice": "string"
}
]
}
URL:
/accounts/{accountId}/billing_invoices_past_due
Formats:
XML, JSON
HTTP Method:
GET
Parameters:
There are no required parameters.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
Response
The response returns the past due invoices, the past due balance, and if the payment can be made
using Post a Billing Payment.
The following example shows the response json body.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 106
"balance": "string",
"dueDate": "string",
"invoiceId": "string",
"invoiceNumber": "string",
"pdfAvailable": "string",
"invoiceUri": "string",
"invoiceItems": [
{
"chargeAmount": "string",
"chargeName": "string",
"invoiceItemId": "string",
"quantity": "string",
"unitPrice": "string"
},
{
"chargeAmount": "string",
"chargeName": "string",
"invoiceItemId": "string",
"quantity": "string",
"unitPrice": "string"
}
]
},
{
"amount": "string",
"taxableAmount": "string",
"nonTaxableAmount": "string",
"balance": "string",
"dueDate": "string",
"invoiceId": "string",
"invoiceNumber": "string",
"pdfAvailable": "string",
"invoiceUri": "string",
"invoiceItems": [
{
"chargeAmount": "string",
"chargeName": "string",
"invoiceItemId": "string",
"quantity": "string",
"unitPrice": "string"
},
{
"chargeAmount": "string",
"chargeName": "string",
"invoiceItemId": "string",
"quantity": "string",
"unitPrice": "string"
}
]
}
]
}
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 107
URL:
/accounts/{accountId}/billing_charges
Formats:
XML, JSON
HTTP Method:
GET
Parameters:
There are no required parameters.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
Response
The response returns a list of charges and information about the charges. Quantities are usually
shown as ‘unlimited’ or an integer. Amounts are shown in the currency set for the account.
The following table provides a description of the different chargeName values. The information will
grow as more chargeable items are added to the system.
chargeName Description
id_check ID Check charge
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 108
chargeName Description
phone_authentication Phone authentication charge
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 109
{
"endQuantity": "string",
"beginQuantity": "string",
"discount": "string"
},
{
"endQuantity": "string",
"beginQuantity": "string",
"discount": "string"
}
]
},
{
"chargeName": "string",
"chargeType": "string",
"chargeUnitOfMeasure": "string",
"allowedQuantity": "string",
"usedQuantity": "string",
"includedQuantity": "string",
"firstEffectiveDate": "string",
"lastEffectiveDate": "string",
"unitPrice": "string",
"blocked": "string",
"prices": [
{
"unitPrice": "string",
"beginQuantity": "string",
"endQuantity": "string"
},
{
"unitPrice": "string",
"beginQuantity": "string",
"endQuantity": "string"
}
],
"discounts": [
{
"endQuantity": "string",
"beginQuantity": "string",
"discount": "string"
},
{
"endQuantity": "string",
"beginQuantity": "string",
"discount": "string"
}
]
}
]
}
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 110
URL:
/accounts/{accountId}/billing_plan/purchased_envelopes
Formats:
XML, JSON
HTTP Method:
PUT
Parameters:
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
{
"amount":"String content",
"appName":"String content",
"currencyCode":"String content",
"platform":"String content",
"productId":"String content",
"quantity":"String content",
"receiptData":"String content",
"storeName":"String content",
"transactionId":"String content"
}
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 111
Response
The response returns a success or failure.
URL:
/accounts/{accountId}/brands
Formats:
XML, JSON
HTTP Method:
GET
Parameters:
No additional parameters are required.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
Response
The response returns a list of brand profiles associated with the account and the default sending and
signing brand profile.
The following example shows the response json body.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 112
"recipientBrandIdDefault":"String content",
"senderBrandIdDefault":"String content",
}
URL:
/accounts/{accountId}/brands
Formats:
Request is application/zip and Response is XML or JSON
HTTP Method:
POST
Parameters:
No additional parameters are required.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/zip
Response
The response returns if the upload is successful and the default brand profile for the account and a list
of brand profiles added to the account.
The following example shows the response json body.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 113
URL:
/accounts/{accountId}/brands/
Formats:
XML, JSON
HTTP Method:
DELETE
Parameters:
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
{
"brands":[
{"brandId":"String content"},
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 114
{"brandId":"String content"}
]
}
Response
The response returns the success (200 – OK) or failure.
URL:
/accounts/{accountId}/bulk_envelopes
Optional query strings: count={integer 1 to 20}, start_position={integer}
Formats:
XML, JSON
HTTP Method:
GET
Parameters:
No additional parameters are required, but the following optional query strings can be added to
narrow the response results.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 115
Response
The response returns information about the envelopes sent with bulk recipient batches, including the
batchId, which can be used to retrieve a more detailed status of individual bulk recipient batches.
The following example shows the response json body.
URL:
/accounts/{accountId}/bulk_envelopes/{batchId}
Optional query strings: include={all, failed, queued, processing, sent}
Formats:
XML, JSON
HTTP Method:
GET
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 116
Parameters:
The only required parameter is the batchId.
The following optional query strings can be added to narrow the response results.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
Response
The response returns status information about a single bulk recipient batch.
The following example shows the response json body.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 117
"submittedDate": "string",
"resultSetSize": "string",
"startPosition": "string",
"endPosition": "string",
"totalSetSize": "string",
"nextUri": "string",
"previousUri": "string",
"bulkEnvelopes": [
{
"transactionId": "string",
"submittedDateTime": "string",
"envelopeId": "string",
"envelopeUri": "string",
"bulkRecipientRow": "string",
"name": "string",
"email": "string",
"bulkStatus": "string"
}
]
}
],
"resultSetSize": "string",
"startPosition": "string",
"endPosition": "string",
"totalSetSize": "string",
"nextUri": "string",
"previousUri": "string"
}
URL:
/accounts/{accountId}/captive_recipients/signature
Formats:
XML, JSON
HTTP Method:
DELETE
Parameters:
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 118
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
{
"captiveRecipients": [
{
"email": "String content",
"userName": " String content",
"clientUserId": " String content"
},
{
"email": " String content",
"userName": " String content",
"clientUserId": " String content"
}
]
}
Response
The response returns success or failure and any error messages.
The following example shows the response json body.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 119
URL:
/accounts/{accountId}/connect
Formats:
XML, JSON
HTTP Method:
POST
Parameters:
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 120
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 121
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
{
"allUsers": "boolean",
"allowEnvelopePublish": "boolean",
"enableLog": "boolean",
"envelopeEvents": "string content",
"includeDocuments": "boolean",
"includeEnvelopeVoidReason": "boolean",
"includeSenderAccountasCustomField": "boolean",
"includeTimeZoneInformation": "boolean",
"name": "string content",
"recipientEvents": "string content",
"requiresAcknowledgement": "boolean",
"signMessageWithX509Certificate": "boolean",
"soapNamespace": "string content",
"urlToPublishTo": "string content",
"useSoapInterface": "boolean",
"userIds": "string content",
"includeDocumentFields": "boolean"
}
Response
The response returns a success or failure with the Connect configuration information, including a
DocuSign generated connectId.
The following example shows the response json body.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 122
"includeSenderAccountasCustomField": "boolean",
"includeTimeZoneInformation": "boolean",
"name": "string content",
"recipientEvents": "string content",
"requiresAcknowledgement": "boolean",
"signMessageWithX509Certificate": "boolean",
"soapNamespace": "string content",
"urlToPublishTo": "string content",
"useSoapInterface": "boolean",
"userIds": "string content",
"includeDocumentFields": "boolean"
}
URL:
/accounts/{accountId}/connect
Formats:
XML, JSON
HTTP Method:
GET
Parameters:
No parameters are required.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
Response
The response returns the information for all the Connect configurations for the account and a count of
the total number of configurations.
The following example shows the response json body.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 123
"configurations":[{
"allUsers":"String content",
"allowEnvelopePublish":"String content",
"connectId":"String content",
"enableLog":"String content",
"envelopeEvents":"String content",
"includeCertSoapHeader":"String content",
"includeDocuments":"String content",
"includeSenderAccountasCustomField":"String content",
"includeTimeZoneInformation":"String content",
"name":"String content",
"recipientEvents":"String content",
"requiresAcknowledgement":"String content",
"signMessageWithX509Certificate":"String content",
"soapNamespace":"String content",
"urlToPublishTo":"String content",
"useSoapInterface":"String content",
"userIds":"String content",
"includeDocumentFields": "boolean"
},
{
"allUsers":"String content",
"allowEnvelopePublish":"String content",
"connectId":"String content",
"enableLog":"String content",
"envelopeEvents":"String content",
"includeCertSoapHeader":"String content",
"includeDocuments":"String content",
"includeSenderAccountasCustomField":"String content",
"includeTimeZoneInformation":"String content",
"name":"String content",
"recipientEvents":"String content",
"requiresAcknowledgement":"String content",
"signMessageWithX509Certificate":"String content",
"soapNamespace":"String content",
"urlToPublishTo":"String content",
"useSoapInterface":"String content",
"userIds":"String content",
"includeDocumentFields": "boolean"
}],
"totalRecords":"String content"
}
URL:
/accounts/{accountId}/connect
Formats:
XML, JSON
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 124
HTTP Method:
PUT
Parameters:
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 125
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 126
Content-Type: application/json
{
"allUsers": "boolean",
"allowEnvelopePublish": "boolean",
"connectId":"String content",
"enableLog": "boolean",
"envelopeEvents": "string content",
"includeDocuments": "boolean",
"includeEnvelopeVoidReason": "boolean",
"includeSenderAccountasCustomField": "boolean",
"includeTimeZoneInformation": "boolean",
"name": "string content",
"recipientEvents": "string content",
"requiresAcknowledgement": "boolean",
"signMessageWithX509Certificate": "boolean",
"soapNamespace": "string content",
"urlToPublishTo": "string content",
"useSoapInterface": "boolean",
"userIds": "string content",
"includeDocumentFields": "boolean"
Response
The response returns a success or failure with the updated Connect configuration information.
The following example shows the response json body.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 127
URL:
/accounts/{accountId}/connect/{connectId}
Formats:
XML, JSON
HTTP Method:
GET
Parameters:
No additional parameters are required.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
Response
The response returns the information for the selected Connect configuration.
The following example shows the response json body.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 128
URL:
/accounts/{accountId}/connect/{connectId}
Formats:
XML, JSON
HTTP Method:
DELETE
Parameters:
No additional parameters are required.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
Response
The response returns a success or failure.
URL:
/accounts/{accountId}/connect/envelopes/{envelopeId}/retry_queue
Formats:
XML, JSON
HTTP Method:
PUT
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 129
Parameters:
No additional parameters are required.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
Response
The response returns a success or failure and the information about the retry queue for the request.
The following example shows the response json body.
URL:
/accounts/{accountId}/connect/envelopes/retry_queue
Formats:
XML, JSON
HTTP Method:
PUT
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 130
Parameters:
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
{
"envelopeIds":["String content","String content","String content"],
"synchronous":"String content"
}
Response
The response returns a success or failure and the information about the retry queue for the request.
The following example shows the response json body.
URL:
/accounts/{accountId}/connect/failures
Formats:
XML, JSON
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 131
HTTP Method:
GET
Parameters:
No additional parameters are required.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
Response
The response returns the Connect failures log and the total number of records in the log.
Name Type Description
accountId String The account ID associated with the
envelope.
configUrl String The web address of the listener or Retrieving
Service end point for Connect.
connectId String The identifier for the Connect configuration
that failed. If an account has multiple
Connect configurations, this value is used to
look up the Connect configuration for the
failed post.
created String The date and time the entry was created.
email String The email that sent the envelope.
envelopeId String The envelope ID of the envelope status that
failed to post.
error String The error that caused the Connect post to
fail.
failureId String The failure log ID for the failure.
failureUri String The uri for the failure.
lastTry String The date and time the last attempt to post.
logId String The Connect log ID for the entry.
logUri String The uri for the log item.
retryCount Integer The number of times the Connect post has
been retried.
retryUri String The uri to retry to publish the Connect
failure.
status String The new envelope status for the failed
Connect post. The possible values are: Any,
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 132
URL:
/accounts/{accountId}/connect/failures/{failureId}
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 133
Formats:
XML, JSON
HTTP Method:
GET
Parameters:
No additional parameters are required.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
Response
The response returns the Connect failure log information for the failure ID.
Name Type Description
accountId String The account ID associated with the
envelope.
configUrl String The web address of the listener or Retrieving
Service end point for Connect.
connectId String The identifier for the Connect configuration
that failed. If an account has multiple
Connect configurations, this value is used to
look up the Connect configuration for the
failed post.
created String The date and time the entry was created.
email String The email that sent the envelope.
envelopeId String The envelope ID of the envelope status that
failed to post.
error String The error that caused the Connect post to
fail.
failureId String The failure log ID for the failure.
failureUri String The uri for the failure.
lastTry String The date and time the last attempt to post.
logId String The Connect log ID for the entry.
logUri String The uri for the log item.
retryCount Integer The number of times the Connect post has
been retried.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 134
URL:
/accounts/{accountId}/connect/failures/{failureId}
Formats:
XML, JSON
HTTP Method:
DELETE
Parameters:
No additional parameters are required.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 135
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
Response
The response returns a success or failure message.
URL:
/accounts/{accountId}/connect/logs
Formats:
XML, JSON
HTTP Method:
GET
Parameters:
No additional parameters are required
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
Response
The response returns the Connect log information. The response is divided into two sections, one for
regular logs and one for Connect failures.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 136
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 137
"retryCount": "string",
"error": "string",
"connectId": "string",
"configUrl": "string",
"logUri": "string",
"logId": "string",
"failureUri": "string",
"failureId": "string",
"retryUri": "string",
}
],
"failures": [
{
"accountId": "string",
"envelopeId": "string",
"subject": "string",
"created": "string",
"userName": "string",
"email": "string",
"status": "string",
"lastTry": "string",
"retryCount": "string",
"error": "string",
"connectId": "string",
"configUrl": "string",
"logUri": "string",
"logId": "string",
"failureUri": "string",
"failureId": "string",
"retryUri": "string",
}
],
"totalRecords": "string"
}
URL:
/accounts/{accountId}/connect/logs
Formats:
XML, JSON
HTTP Method:
DELETE
Parameters:
No additional parameters are required.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 138
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
Response
The response returns a success or failure message.
URL:
/accounts/{accountId}/connect/logs/{logId}
Optional query string: additional_info=true
Formats:
XML, JSON
HTTP Method:
GET
Parameters:
No additional parameters are required, but the following optional query can be added to provide
additional information in the response.
Name Reqd? Type Description
additional_info No Boolean When true, the connectDebugLog
information is included in the response.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 139
Response
The response returns the Connect log information for the requested log ID.
Name Type Description
accountId String The account ID associated with the
envelope.
configUrl String The web address of the listener or Retrieving
Service end point for Connect.
connectId String The identifier for the Connect configuration
that failed. If an account has multiple
Connect configurations, this value is used to
look up the Connect configuration for the
failed post.
connectDebugLog A complex element containing information
about the Connect configuration, error
details, date/time, description and payload.
This is only included in the response if the
query additional_info=true is used.
created String The date and time the entry was created.
email String The email that sent the envelope.
envelopeId String The envelope ID of the envelope status that
failed to post.
error String The error that caused the Connect post to
fail.
failureId String The failure log ID for the failure.
failureUri String The uri for the failure.
lastTry String The date and time the last attempt to post.
logId String The Connect log ID for the entry.
logUri String The uri for the log item.
retryCount Integer The number of times the Connect post has
been retried.
retryUri String The uri to retry to publish the Connect
failure.
status String The new envelope status for the failed
Connect post. The possible values are: Any,
Voided, Created, Deleted, Sent, Delivered,
Signed, Completed, Declined, TimedOut,
Template, or Processing
subject String The envelope subject.
userName String The name of the envelope sender.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 140
URL:
/accounts/{accountId}/connect/logs/{logId}
Formats:
XML, JSON
HTTP Method:
DELETE
Parameters:
No additional parameters are required.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 141
Content-Type: application/json
Response
The response returns a success or failure message.
Get Disclosure
This returns the Electronic Record and Signature Disclosure, with html formatting, associated with the
account. You can use an optional query string to set the language for the disclosure.
URL:
/accounts/{accountId}/consumer_disclosure
Optional query addition: langCode={value}
Formats:
XML, JSON
HTTP Method:
GET
Parameters:
There are no required parameters, but the following optional query can be added to set the language
of the disclosure in the response.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 142
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
Response
The response returns the accountEsignId with the GUID and the esignAgreement with the Electronic
Record and Signature Disclosure text. The disclosure text includes the html formatting.
The following example shows the response json body. For brevity, the example only shows a portion
of the Electronic Record and Signature Disclosure text.
URL:
/accounts/{accountId}/custom_fields
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 143
Formats:
XML, JSON
HTTP Method:
GET
Parameters:
No additional parameters are required.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
Response
The response returns a list of list custom fields and text custom fields associated with the account. .
Name Type Description
listCustomFields
name String The name of the Envelope Custom Field
required String When true, information must be entered into
(Boolean) the custom field to send the envelope.
show String When true, the custom field is shown to
(Boolean) senders in the DocuSign member console
during sending.
listItems String The list of values that can be selected by
senders. The list values are separated by
semi-colons. Example: [one;two;three;four].
textCustomFields
name String The name of the Envelope Custom Field
required String When true, information must be entered into
(Boolean)
the custom field to send the envelope.
show String When true, the custom field is shown to
(Boolean)
senders in the DocuSign member console
during sending.
The following example shows the response json body.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 144
"listItems": ["String","String"]
},
{
"name":"String",
"required":"String",
"show":"String",
"listItems": ["String","String"]
}],
"textCustomFields": [{
"name":"String",
"required":"String",
"show":"String",
},
{
"name":"String",
"required":"String",
"show":"String",
}]
}
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 145
additional signer authentication options. To send a copy of the envelope to a recipient who does
not need to sign, use a Carbon Copies or Certified Deliveries Recipient Type.
URL:
/accounts/{accountId}/envelopes
Formats:
XML, JSON
HTTP Method:
POST
Parameters:
The parameters for sending an envelope are broken down into sections. The parameters used
depend on how you are sending the envelope, the recipient types used, and tabs included in the
envelope. The parameters listed in this section are: Envelope, Document, Recipient, and Tab.
Envelope Parameters:
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 146
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 147
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 148
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 149
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 150
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 151
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 152
Documents Parameters:
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 153
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 154
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 155
Recipient Parameters:
There are seven possible recipient types: Agents, Carbon Copies, Certified Deliveries, Editors, In
Person Signers, Intermediaries, and Signers. Recipient types share some common parameters, but
the exact parameters associated with a recipient depend on the recipient type. Refer to the specific
recipient type below for more information.
Agents Carbon Copies Certified Deliveries Editors
In Person Signers Intermediaries Signers
Tab Parameters:
The exact parameters associated with a tab depend on the type of tab. Tabs are associated with a
specific recipient and are only used by the recipient types In Person Signers and Signers. Refer to
the Tab Parameters section for more information.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: multipart/form-data; boundary=AAA
--AAA
Content-Type: application/json
Content-Disposition: form-data
{
"accessibility":"string content",
"allowMarkup":"String content",
"allowReassign":"String content",
"allowRecipientRecursion":"String content",
"asynchronous":"String content",
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 156
"authoritativeCopy":"String content",
"autoNavigation":"String content",
"brandId":"String content",
"emailBlurb":"String content",
"emailSubject":"String content",
"enableWetSign":"String content",
"enforceSignerVisibility":"String content",
"envelopeIdStamping":"String content",
"messageLock":"string content",
"notification":{
"useAccountDefaults":"String content",
"reminders":{
"reminderEnabled":"String content",
"reminderDelay":"String content",
"reminderFrequency":"String content"
},
"expirations":{
"expireEnabled":"String content",
"expireAfter":"String content",
"expireWarn":"String content"
}
},
"recipientsLock":"string content",
"signingLocation":"String content",
"status":"String content",
"transactionId":"String content",
"useDisclosure":"String content",
"customFields":{
"listCustomFields":[{
"name":"String content",
"required":"String content",
"show":"String content",
"value":"String content",
"listItems":["String content"]
}],
"textCustomFields":[{
"name":"String content",
"required":"String content",
"show":"String content",
"value":"String content"
}]
},
"documents": [{
"documentId":"1",
"name":"String content",
"remoteUrl": "string"
"documentFields": [{
"name": "string",
"value": "string"
},
{
"name": "string",
"value": "string"
}],
"encryptedWithKeyManager":"String Content",
"transformPdfFields":"String Content",
"order":"String Content",
"pages":"String Content",
"fileExtension":"String Content",
"documentBase64":"String Content",
"matchboxes": [{
"pageNumber": "string",
"xPosition": "string",
"yPosition": "string",
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 157
"width": "string",
"height": "string"
},
{
"pageNumber": "string",
"xPosition": "string",
"yPosition": "string",
"width": "string",
"height": "string"
}],
}],
"recipients": {
"signers" : [
{
"email":"String content",
"name":"String content",
"recipientId":"1"
}
],
},
"eventNotification":{
"url":"String content",
"loggingEnabled":"String content",
"requireAcknowledgment":"String content",
"useSoapInterface":"String content",
"soapNameSpace" : " String content",
"includeCertificateWithSoap" : " String content",
"signMessageWithX509Cert":"String content",
"includeDocuments":"String content",
"includeEnvelopeVoidReason": "String content",
"includeTimeZone": " String content",
"includeSenderAccountAsCustomField" : " String content",
"includeDocumentFields": " String content",
"includeCertificateOfCompletion": " String content"
"envelopeEvents" : [
{
"envelopeEventStatusCode" : "sent"
},
{
"envelopeEventStatusCode" : "completed",
"includeDocuments" : "true"
}
],
"recipientEvents" : [
{
"recipientEventStatusCode" : "Sent"
},
{
"recipientEventStatusCode" : "completed",
"includeDocuments" : "true"
}
]
},
"emailSettings": {
"replyEmailAddressOverride": "string",
"replyEmailNameOverride": "string",
"bccEmailAddresses": [
{
"email": "string"
},
{
"email": "string"
}
]
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 158
}
}
--AAA
Content-Disposition:documentId=1
--AAA--
Response
The response returns the envelope ID, status, and date-time stamp for the envelope status. It also
includes the uri for the envelope.
The following example shows the response json body.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 159
using the BCC for Email Archive feature, including the BCC Email Override option, include
additional signer authentication options. To send a copy of the envelope to a recipient who does
not need to sign, use a Carbon Copies or Certified Deliveries Recipient Type.
Composite Templates:
This structure can be added to create envelopes from a combination of DocuSign templates and PDF
forms. The basic envelope remains the same, while the Composite Template adds new document
and template overlays into the envelope. There can be any number of Composite Template
structures in the envelope.
Each Composite Template consists of server templates, inline templates, PDF Metadata templates
and documents.
Composite Template ID is an optional element used to identify the composite template. It is
used as a reference when adding document object information. If used, the document
content-disposition must include the compositeTemplateId to which the document should be
added. If compositeTemplateId is not specified in the content-disposition, the document is
applied based on the documentId only. If no document object is specified, the composite
template inherits the first document.
Server Templates are server-side templates stored on the DocuSign server. If supplied they
are overlaid into the envelope in the order of their Sequence value.
Inline Templates provide the container to pass inline XML properties. Inline templates allow
you to add documents and, for PDF documents, transform the PDF fields into DocuSign tabs.
If inline templates are supplied, they are overlaid into the envelope in the order of their
Sequence value.
PDF Metadata Templates provide a container to embed design-time template information into
a PDF document. DocuSign uses this information when processing the Envelope. This
convention allows the document to carry the signing instructions with it, so that less
information needs to be provided at run-time through an inline template or synchronized with
an external structure like a server template. PDF Metadata templates are stored in the
Metadata layer of a PDF in accordance with Acrobat’s XMP specification. DocuSign will only
find PDF Metadata templates inside documents passed in the Document object (see below). If
supplied the PDF metadata template will be overlaid into the envelope in the order of their
Sequence value.
Document objects are optional structures that provide a container to pass in a document or
form. If this object is not passed, the composite template inherits the first document it finds
from some other server template or inline template, starting with the lowest sequence value
(discussed below).
If there are multiple composite templates, the document content-disposition can include the
compositeTemplateId to which the document should be added. Using the
compositeTemplateId sets which documents are associated with particular composite
templates. An example of this usage is:
--5cd3320a-5aac-4453-b3a4-cbb52a4cba5d
Content-Type: application/pdf
Content-Disposition: file; filename="eula.pdf"; documentId=1; compositeTemplateId="1"
Content-Transfer-Encoding: base64
Acrobat form objects are only extrapolated from the document object. DocuSign does not
derive Acrobat form properties from server templates or inline templates. To instruct
DocuSign to extrapolate objects from the Acrobat form, set transformPdfFields to “true” for the
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 160
document. See the Transform PDF Fields section for more information about how fields are
transformed into DocuSign tabs.
Sequence
Each type of template has a sequence property, which enables the templates to be over-laid in a
particular order. This is significant because “last-out” wins in cases of the same property being
specified in multiple places in the method schema.
To add a recipient’s name in the subject line add the following text in the emailSubject when
creating the template or when sending an envelope from a template:
[[<roleName>_UserName]]
Example:
"emailSubject":"[[Signer 1_UserName]], Please sign this NDA",
To add a recipient’s email address in the subject line add the following text in the emailSubject
when creating the template or when sending an envelope from a template:
[[<roleName>_Email]]
Example:
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 161
URL:
/accounts/{accountId}/envelopes
Formats:
XML, JSON
HTTP Method:
POST
Parameters:
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 162
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 163
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 164
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 165
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 166
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 167
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 168
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 169
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
Content-Disposition: form-data
{
"accessibility":"string content",
"allowMarkup":"String content",
"allowReassign":"String content",
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 170
"allowRecipientRecursion":"String content",
"asynchronous":"String content",
"authoritativeCopy":"String content",
"autoNavigation":"String content",
"brandId":"String content",
"emailBlurb":"String content",
"emailSubject":"String content",
"enableWetSign":"String content",
"enforceSignerVisibility":"String content",
"envelopeIdStamping":"String content",
"messageLock":"string content",
"recipientsLock":"string content",
"signingLocation":"String content",
"status":"String content",
"transactionId":"String content",
"customFields":{
"listCustomFields":[
{
"name":"String content",
"required":"String content",
"show":"String content",
"value":"String content",
"listItems":[
"String content"
]
}
],
"textCustomFields":[
{
"name":"String content",
"required":"String content",
"show":"String content",
"value":"String content"
}
]
},
"templateId":"String content",
"templateRoles":[
{
"email":"String content",
"name":"String content",
"roleName":"String content",
"inPersonSignerName":"String content",
"clientUserId":"String content",
"defaultRecipient":"String content",
"routingOrder":"String content",
"accessCode":"String content",
"emailNotification":{
"emailSubject":"String content",
"emailBody":"String content",
"supportedLanguage":"String content"
},
"tabs": {
"textTabs": [
{
"tabLabel": "String content",
"name": "String content",
"value": "String content"
}
]
},
}
],
"eventNotification":{
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 171
"url":"String content",
"loggingEnabled":"String content",
"requireAcknowledgment":"String content",
"useSoapInterface":"String content",
"soapNameSpace" : "http://DocuSignConnectListener",
"includeCertificateWithSoap" : "true",
"signMessageWithX509Cert":"String content",
"includeDocuments":"String content",
"includeEnvelopeVoidReason": "String content",
"includeTimeZone": " String content",
"includeSenderAccountAsCustomField" : " String content",
"includeDocumentFields": " String content",
"includeCertificateOfCompletion": " String content"
"envelopeEvents" : [
{
"envelopeEventStatusCode" : "sent"
},
{
"envelopeEventStatusCode" : "completed",
"includeDocuments" : "true"
}
],
"recipientEvents" : [
{
"recipientEventStatusCode" : "Sent"
},
{
"recipientEventStatusCode" : "completed",
"includeDocuments" : "true"
}
]
},
"emailSettings": {
"replyEmailAddressOverride": "string",
"replyEmailNameOverride": "string",
"bccEmailAddresses": [
{
"email": "string"
},
{
"email": "string"
}
]
},
"compositeTemplates":[
{
"compositeTemplateId":"String content",
"serverTemplates":[
{
"sequence":"String content",
"templateId":"String content"
},
{
"sequence":"String content",
"templateId":"String content"
}
],
"inlineTemplates":[
{
"sequence":"String content",
"documents":[
{
"documentId":"String content",
"name":"String content",
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 172
"transformPdfFields":"String"
},
{
"documentId":"String content",
"name":"String content",
"transformPdfFields":"String"
}
]
}
],
"pdfMetaDataTemplateSequence":"String content",
"document" : [
{
"documentId" : "string",
"documentBase64": "string"
}
]
}
]
}
Response
The response returns the envelope ID, status, and date-time stamp for the envelope status. It also
includes the uri for the envelope.
The following example shows the response json body.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 173
envelope, the single bulk recipient Signer is replaced with all recipients in the bulk recipient file.
There can only be one bulk recipient file associated with an envelope when it is sent.
When an envelope with bulk recipients is sent, the envelopes are added to a bulk recipient queue
and sent in a metered fashion. There is a limit of 2,000 envelopes in the bulk recipient queue and
an error message is shown to the sender if this limit is reached. If you receive this error, you
should wait and resend the envelope at a later time.
Note: If you frequently run into queue limits, please contact your account manage to discuss
modifying the queue limits for your account.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 174
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 175
URL:
/accounts/{accountId}/envelopes
Optional query strings: from_date={dateTime}, to_date={dateTime}, status={status code},
from_to_status={changed or any or list of statuses}, envelopeId={envelopeId},
custom_field={envelope custom field name}={envelope custom field value},
transaction_ids={transactionId or request_body}
Formats:
XML, JSON
HTTP Method:
GET
Parameters:
There are no required parameters, but the following optional parameters can be added to narrow the
search results.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 176
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 177
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
{
"transactionIds":[
"String content",
"String content"
]
}
Response
The response returns the uri’s for the envelope certificate, custom fields, documents, envelope along
with the envelope ID, envelope status, and the date-time stamp for the envelope status change for the
envelopes. If a query string was added to the original request, only the envelopes that meet those
parameters are included in the response. If transactionIds were part of the query or request body, the
envelopeTransactionStatuses with the transactionID, envelopeId and status for the envelope are
returned.
The following example shows the response json body.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 178
URL:
/accounts/{accountId}/envelopes/{envelopeId}
Formats:
XML, JSON
HTTP Method:
GET
Parameters:
The only required parameter is the envelope ID.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
Response
The response returns the envelope status information for the requested envelope.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 179
"emailSubject": "string",
"emailBlurb": "string",
"envelopeId": "string",
"signingLocation": "string",
"customFieldsUri": "string",
"authoritativeCopy": "string",
"notification": {
"useAccountDefaults": "string",
"reminders": {
"reminderEnabled": "string",
"reminderDelay": "string",
"reminderFrequency": "string"
},
"expirations": {
"expireEnabled": "string",
"expireAfter": "string",
"expireWarn": "string"
}
},
"notificationUri": "string",
"enforceSignerVisibility": "string",
"enableWetSign": "string",
"allowMarkup": "string",
"allowReassign": "string",
"createdDateTime": "string",
"lastModifiedDateTime": "string",
"deliveredDateTime": "string",
"sentDateTime": "string",
"completedDateTime": "string",
"voidedDateTime": "string",
"voidedReason": "string",
"deletedDateTime": "string",
"declinedDateTime": "string",
"statusChangedDateTime": "string",
"documentsCombinedUri": "string",
"certificateUri": "string",
"templatesUri": "string",
"messageLock": "string1",
"recipientsLock": "string",
"useDisclosure": "string",
"emailSettings": {
"replyEmailAddressOverride": "string",
"replyEmailNameOverride": "string",
"bccEmailAddresses": [
{
"bccEmailAddressId": "string",
"email": "string"
}
]
},
"purgeState": "string",
"lockInformation": {
"lockedByUser": {
"userName": "string",
"email": "string",
"userId": "string",
"userType": "string",
"userStatus": "string",
"uri": "string",
}
}
}
}
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 180
URL:
/accounts/{accountId}/envelopes/{envelopeId}
Add {“status”:”sent”} to the request body to send the envelope.
Formats:
XML, JSON
HTTP Method:
PUT
Parameters:
The only required parameter is the envelope ID.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
{
"status":"sent"
}
Response
The response returns success or failure of the operation.
Void Envelope
This voids a single in-process envelope.
URL:
/accounts/{accountId}/envelopes/{envelopeId}
Add {“status”:”voided”, “voidedReason”:”void reason”} to the request body to void the envelope.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 181
Formats:
XML, JSON
HTTP Method:
PUT
Parameters:
The only required parameter is the envelope ID.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
{
"status":"voided",
"voidedReason":"voided for incorrect recipient"
}
Response
The response returns success or failure of the operation.
URL:
/accounts/{accountId}/envelopes/{envelopeId}
Formats:
XML, JSON
HTTP Method:
PUT
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 182
Parameters:
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
{
"emailSubject":"string",
"emailBlurb":"string"
}
Response
The response returns success or failure of the operation and, for failures, an associated error
message.
Purge Documents
This provides the ability to initiate a request to place envelope documents and envelope metadata in a
purge queue so that this information is removed from the DocuSign system. The request can only be
used for completed envelopes that are not marked as authoritative copy. The requesting user must
have permission to purge documents and must be the sender (the requesting user can act as the
sender using Send On Behalf Of).
Note: If your account has set up a Document Retention policy by specifying the number of days to
retain documents, at the end of the retention period the envelope documents are automatically
placed in the purge queue and the warning emails are sent. So setting a Document Retention
policy is the same as setting a schedule for purging documents. The Document Retention policy is
set in the Classic DocuSign Experience.
When the purge request is initiated the envelope documents, or documents and envelope metadata,
are placed in a purge queue for deletion in 14 days. A warning email notification is sent to the sender
and all recipients with DocuSign accounts associated with the envelope notifying them that the
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 183
envelope documents will be deleted in 14 days and providing a link to the documents. A second email
is sent 7 days later with the same message. At the end of the 14-day period, the envelope documents
are deleted from the system.
If purgeState=”documents_queued” is used in the request, then only the documents are deleted and
any corresponding attachments and tabs remain in the DocuSign system. If purgeState=
”documents_and_metadata_queued” is used in the request, then the documents, attachments, and
tabs are deleted.
URL:
/accounts/{accountId}/envelopes/{envelopeId}
Formats:
XML, JSON
HTTP Method:
PUT
Parameters:
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
{
"purgeState": "String"
}
Response
The response returns success or failure of the operation.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 184
URL:
/accounts/{accountId}/envelopes/{envelopeId}
Optional query parameters: advanced_update={true}, resend_envelope={true or false}
Formats:
XML, JSON
HTTP Method:
PUT
Parameters:
The parameters used to modify the envelope information, add or modify recipients, and add or modify
tabs are the same as those used in any envelope. See the Recipient Types and Parameters and Tab
Types and Parameters sections for more information about recipient and tab parameters.
The resend_envelope flag is only used to resend the in-process envelope.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 185
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{passwo
rd}</Password><IntegratorKey>{integrator_key}</IntegratorKey></DocuS
ignCredentials>
Accept: application/json
Content-Type: application/json
{
"allowReassign": "true",
"brandLock": "true",
"customFields": {
"listCustomFields": [
{
"fieldId": "2429",
"name": "custom1List",
"value": "orange"
},
{
"fieldId": "2430",
"name": "custom2List",
"value": "cat"
}
],
"textCustomFields": [
{
"fieldId": "2427",
"name": "custom1Text",
"value": "newCustom1Text"
}
]
},
"enableWetSign": "true",
"enforceSignerVisibility": "true",
"envelopeIdStamping": "false",
"notification": {
"expirations": {
"expireAfter": "13",
"expireEnabled": "true",
"expireWarn": "13"
},
"reminders": {
"reminderDelay": "13",
"reminderEnabled": "true",
"reminderFrequency": "13"
},
"useAccountDefaults": "false"
},
"recipients": {
"signers": [
{
"recipientId": 1,
"tabs": {
"signHereTabs": [
{
"documentId": 1,
"pageNumber": 1,
"xPosition": 50,
"yPosition": 50
},
{
"documentId": 1,
"pageNumber": 1,
"xPosition": 100,
"yPosition": 100
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 186
},
]
}
},
{
"recipientId": 2,
"tabs": {
"signHereTabs": [
{
"documentId": 1,
"pageNumber": 1,
"xPosition": 150,
"yPosition": 150
},
{
"documentId": 1,
"pageNumber": 1,
"xPosition": 200,
"yPosition": \200
},
]
}
},
{
"email": "[email protected]",
"name": "Dee C Smith",
"recipientId": 3,
"tabs": {
"signHereTabs": [
{
"documentId": 1,
"pageNumber": 1,
"xPosition": 250,
"yPosition": 250
},
{
"documentId": 1,
"pageNumber": 1,
"xPosition": 300,
"yPosition": 300
}
]
}
}
]
},
"signingLocation": "inperson"
}
Response
The response returns if the recipient updates were successful and the information that was changed.
The following example shows the response json body.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 187
"errorCode": "SUCCESS",
"message": ""
}
},
{
"recipientId": "2",
"errorDetails": {
"errorCode": "SUCCESS",
"message": ""
}
},
{
"recipientId": "3",
"errorDetails": {
"errorCode": "SUCCESS",
"message": ""
}
}
],
"tabUpdateResults": {
"signHereTabs": [
{
"scaleValue": 0.0,
"optional": "false",
"documentId": "1",
"recipientId": "1",
"pageNumber": "1",
"xPosition": "50",
"yPosition": "50",
"tabId": "5e92a353-5aa1-416b-8e45-40b6dbf30e69"
},
{
"scaleValue": 0.0,
"optional": "false",
"documentId": "1",
"recipientId": "1",
"pageNumber": "1",
"xPosition": "100",
"yPosition": "100",
"tabId": "f75fb88b-e2eb-4809-aabd-dee039882cd0"
},
{
"scaleValue": 0.0,
"optional": "false",
"documentId": "1",
"recipientId": "2",
"pageNumber": "1",
"xPosition": "150",
"yPosition": "150",
"tabId": "484ece80-4b0f-4001-a3a5-8006beb76c63"
},
{
"scaleValue": 0.0,
"optional": "false",
"documentId": "1",
"recipientId": "2",
"pageNumber": "1",
"xPosition": "200",
"yPosition": "200",
"tabId": "abd0f9bf-5723-4ac3-aaeb-5f6232268189"
},
{
"scaleValue": 0.0,
"optional": "false",
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 188
"documentId": "1",
"recipientId": "3",
"pageNumber": "1",
"xPosition": "250",
"yPosition": "250",
"tabId": "1d4b2484-cdfa-4090-98dd-a68699bce7a3"
},
{
"scaleValue": 0.0,
"optional": "false",
"documentId": "1",
"recipientId": "3",
"pageNumber": "1",
"xPosition": "300",
"yPosition": "300",
"tabId": "5a36985f-1c7d-4cc8-a11c-653137062f40"
}
]
},
"textCustomFieldUpdateResults": [
{
"fieldId": "2427",
"name": "custom1Text",
"show": "false",
"required": "false",
"value": "newCustom1Text"
}
],
"listCustomFieldUpdateResults": [
{
"fieldId": "2429",
"name": "custom1List",
"show": "false",
"required": "false",
"value": "orange"
},
{
"fieldId": "2430",
"name": "custom2List",
"show": "false",
"required": "false",
"value": "cat"
}
]
}
URL:
/accounts/{accountId}/envelopes/{envelopeId}
Formats:
XML, JSON
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 189
HTTP Method:
GET
Parameters:
No parameters are required.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
Response
The response returns envelope information, including the current purge state for the envelope.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 190
"customFieldsUri": "string",
"authoritativeCopy": "string",
"notificationUri": "string ",
"enforceSignerVisibility": "string",
"enableWetSign": "string",
"allowMarkup": "string",
"allowReassign": "string",
"createdDateTime": "string",
"lastModifiedDateTime": "string",
"deliveredDateTime": "string",
"sentDateTime": "string",
"completedDateTime": "string",
"voidedDateTime": "string",
"voidedReason": "string",
"deletedDateTime": "string",
"declinedDateTime": "string",
"statusChangedDateTime": "string",
"documentsCombinedUri": "string",
"certificateUri": "string",
"templatesUri": "string",
"messageLock": "string",
"recipientsLock": "string",
"useDisclosure": "string",
"emailSettings": {
"replyEmailAddressOverride": "string",
"replyEmailNameOverride": "string",
"bccEmailAddresses": [
{
"bccEmailAddressId": "string",
"email": "string"
},
{
"bccEmailAddressId": "string",
"email": "string"
}
]
},
"purgeState": "string"
}
URL:
/accounts/{accountId}/envelopes/{envelopeId}/audit_events
Formats:
XML, JSON
HTTP Method:
GET
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 191
Parameters:
The only required parameter is the envelope ID.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
Response
The response returns a list of audit events, in name/value pairs, for the specified envelope. The audit
events are listed below.
Name Value
logTime The date-time the audit event occurred.
Source The source of the envelope. Values can be web or API.
UserName The name of the user associated with the event.
Action The current action status.
Message The message associated with the action.
EnvelopeStatus Status of the envelope. Values can be Voided, Created,
Deleted, Sent, Delivered, Signed, Completed, Declined
and TimedOut.
ClientIPAddress The client IP address associated with the action.
Information Base information associated with the action.
GeoLocation The geographic location associated with the action.
Language The language used in the envelope.
The following example shows the response json body.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 192
URL:
/accounts/{accountId}/envelopes/{envelopeId}/custom_fields
Formats:
XML, JSON
HTTP Method:
POST
Parameters:
The parameters for an Envelope Custom Field are only required if you are adding that type of custom
field.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 193
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
{
"listCustomFields": [{
"name":"String",
"required":"String",
"show":"String",
"value":"String",
"listItems": ["String";"String"]
},
{
"name":"String",
"required":"String",
"show":"String",
"value":"String",
"listItems": ["String";"String"]
}],
"textCustomFields": [{
"name":"String",
"required":"String",
"show":"String",
"value":"String"
},
{
"name":"String",
"required":"String",
"show":"String",
"value":"String"
}]
}
Response
The response returns success or failure and any error messages. For all successes, DocuSign will
generate a fieldId for the custom envelope field. The fieldId is used when editing or removing the
envelope custom field in an envelope.
The following example shows the response json body.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 194
"show":"String",
"value":"String",
"listItems": ["String";"String"]
}],
"textCustomFields": [{
"fieldId":"String",
"name":"String",
"required":"String",
"show":"String",
"value":"String"
},
{
"fieldId":"String",
"name":"String",
"required":"String",
"show":"String",
"value":"String"
}]
}
URL:
/accounts/{accountId}/envelopes/{envelopeId}/custom_fields
Formats:
XML, JSON
HTTP Method:
GET
Parameters:
The only required parameter is the envelope ID.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 195
Content-Type: application/json
Response
The response returns information about the custom fields included in the envelope. The response
splits the custom fields by list and text types. If there are no custom fields in the envelope, the
response returns an empty list.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 196
"value":"String content"
}]
}
URL:
/accounts/{accountId}/envelopes/{envelopeId}/custom_fields
Formats:
XML, JSON
HTTP Method:
PUT
Parameters:
The parameters for an Envelope Custom Field are only required if you are editing that custom field.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 197
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
{
"listCustomFields": [{
"fieldId":"String",
"name":"String",
"required":"String",
"show":"String",
"value":"String",
"listItems": ["String";"String"]
},
{
"fieldId":"String",
"name":"String",
"required":"String",
"show":"String",
"value":"String",
"listItems": ["String";"String"]
}],
"textCustomFields": [{
"fieldId":"String",
"name":"String",
"required":"String",
"show":"String",
"value":"String"
},
{
"fieldId":"String",
"name":"String",
"required":"String",
"show":"String",
"value":"String"
}]
}
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 198
Response
The response returns success or failure and any error messages. The response also returns the list
of envelope custom fields with the updated values.
The following example shows the response json body.
URL:
/accounts/{accountId}/envelopes/{envelopeId}/custom_fields
Formats:
XML, JSON
HTTP Method:
DELETE
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 199
Parameters:
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
{
"listCustomFields": [{
"fieldId":"String"
},
{
"fieldId":"String"
}],
"textCustomFields": [{
"fieldId":"String"
},
{
"fieldId":"String"
}]
}
Response
The response returns success or failure and any error messages. The response also returns the list
of envelope custom field IDs that were removed from the envelope.
The following example shows the response json body.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 200
URL:
/accounts/{accountId}/envelopes/{envelopeId}/documents
Optional query parameter: apply_document_fields={true}
Formats:
XML, JSON
HTTP Method:
PUT
Parameters:
The parameters used to add or modify documents and document fields in an envelope are the same
as those used when sending an envelope. See Document parameters. The following optional query
parameter can be added to the request.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: multipart/form-data; boundary=AAA
--AAA
Content-Type: application/json
Content-Disposition: form-data
{
"documents": [
{
"documentFields": [
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 201
{
"name": "document category",
"value": "added"
},
{
"name": "agent",
"value": "Jones"
}
],
"documentId": 1,
"name": "welcomeform.pdf"
}
]
}
--AAA
Content-Type: application/pdf
Content-Disposition: file; filename="welcomeform.pdf"; documentId="1"
%PDF-1.6
%
--- DOC BYTES REMOVED ---
%%EOF
--AAA--
Response
The response returns if the updates were successful and the information that was changed.
The following example shows the response json body.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 202
URL:
/accounts/{accountId}/envelopes/{envelopeId}/documents
Formats:
XML, JSON
HTTP Method:
DELETE
Parameters:
See Document parameters.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Content-Type: application/json
{
"documents": [{
"documentId": "String content",
},
{
"documentId": "String content",
}]
}
Response
The response returns the success or failure of each document being added to the envelope and the
envelope ID. Failed operations on array elements will add the “errorDetails” structure containing an
error code and message. If “errorDetails” is null, then the operation was successful for that item.
URL:
/accounts/{accountId}/envelopes/{envelopeId}/documents
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 203
Formats:
XML, JSON
HTTP Method:
GET
Parameters:
The only required parameter is the envelope ID.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
Response
The response returns a list of the documents in the selected envelope, with the document ID, name,
type, uri, order, pages, and if the document contains PDF form fields (this is a true/false).
Note: The containPdfFormFields information is only returned for documents that are added to an
envelope after the initial envelope creation that have not yet been converted.
The following example shows the response json body.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 204
URL:
/accounts/{accountId}/envelopes/{envelopeId}/documents/{documentId}
Formats:
XML, JSON
HTTP Method:
PUT
Parameters:
See Document parameters.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Content-Type: application/pdf
Content-Disposition: file; filename="test1.pdf"; documentid=1; fileExtension="pdf"
Response
The response only returns a success or failure.
URL:
/accounts/{accountId}/envelopes/{envelopeId}/documents/{documentId}
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 205
Formats:
XML, JSON
HTTP Method:
GET
Parameters:
The only required parameters are the envelope ID and document ID. The following optional query
parameters can be added to the request.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
Response
The response returns the PDF document as a byte stream. If show_changes was included, any
changed fields are highlighted in the PDF.
URL:
/accounts/{accountId}/envelopes/{envelopeId}/documents/{documentId}/pages/{pageId}/
page_image
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 206
Optional query strings: dpi={dpi for the image}, max_width={maximum width in pixels},
max_height={maximum height in pixels}
Formats:
XML, JSON
HTTP Method:
GET
Parameters:
There are no required parameters, but the following query string parameters can be added to change
the page image settings.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
Response
The response returns the requested page image with the requested settings.
URL:
/accounts/{accountId}/envelopes/{envelopeId}/documents/{documentId}/pages/{pageId}/
page_image
Formats:
XML, JSON
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 207
HTTP Method:
PUT
Parameters:
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
{
"rotate":"String content"
}
Response
The response a success or failure.
Remove a Page
This removes a page from a document based on the page ID.
URL:
/accounts/{accountId}/envelopes/{envelopeId}/documents/{documentId}/pages/{pageId}
Formats:
XML, JSON
HTTP Method:
DELETE
Parameters:
No additional parameters are required.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 208
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
Response
The response returns a success or failure.
URL:
/accounts/{accountId}/envelopes/{envelopeId}/documents/{documentId}/fields
Formats:
XML, JSON
HTTP Method:
GET
Parameters:
No additional parameters are required.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
Response
The response returns the custom document field name-value pairs for the requested document ID.
Examples of the response body for json and XML are shown below.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 209
URL:
/accounts/{accountId}/envelopes/{envelopeId}/documents/{documentId}/fields
Formats:
XML, JSON
HTTP Method:
POST
Parameters:
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 210
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
{
"documentFields": [
{
"name": "sample string 1",
"value": "sample string 2",
},
{
"name": "sample string 1",
"value": "sample string 2",
}
]
}
Response
The response returns the custom document field name-value pairs added to the document and any
errors associated with the fields.
Examples of the response body for json and XML are shown below.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 211
URL:
/accounts/{accountId}/envelopes/{envelopeId}/documents/{documentId}/fields
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 212
Formats:
XML, JSON
HTTP Method:
PUT
Parameters:
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
{
"documentFields": [
{
"name": "sample string 1",
"value": "sample string 2",
},
{
"name": "sample string 1",
"value": "sample string 2",
}
]
}
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 213
Response
The response returns the modified custom document field name-value pairs for the document and any
errors associated with the fields.
Examples of the response body for json and XML are shown below.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 214
<errorCode>sample string</errorCode>
<message>sample string</message>
</errorDetails>
<name>sample string</name>
<value>sample string</value>
</nameValue>
</documentFields>
</documentFieldsInformation>
URL:
/accounts/{accountId}/envelopes/{envelopeId}/documents/{documentId}/fields
Formats:
XML, JSON
HTTP Method:
DELETE
Parameters:
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 215
"documentFields": [
{
"name": "sample string 1",
"value": "sample string 2",
},
{
"name": "sample string 1",
"value": "sample string 2",
}
]
}
Response
The response returns success or failure and any error messages. The response also returns the list
of custom document field name-value pairs that were removed from the document.
Examples of the response body for json and XML are shown below.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 216
URL:
/accounts/{accountId}/envelopes/{envelopeId}/documents/certificate
Optional additions: language={string}
Formats:
XML, JSON
HTTP Method:
GET
Parameters:
The only required parameter is the envelope ID. The following optional query string can be added to
the request.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 217
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
Response
The response returns a PDF version of the envelope certificate as a byte stream.
URL:
/accounts/{accountId}/envelopes/{envelopeId}/documents/combined
Optional additions: certificate={true or false}, encrypted={true or false}, include_metadata={true or
false}, language={string}, show_changes={true}, watermark={true or false}
Formats:
XML, JSON
HTTP Method:
GET
Parameters:
The only required parameter is the envelope ID. The following optional query strings can be added to
the request.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 218
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
Response
The response returns all the PDFs in an envelope and a PDF version of the envelope certificate as a
byte stream. If show_changes was included, any changed fields are highlighted in the PDF.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 219
URL:
/accounts/{accountId}/envelopes/{envelopeId}/email_settings
Formats:
XML, JSON
HTTP Method:
POST
Parameters:
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 220
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
{
"replyEmailAddressOverride": "string",
"replyEmailNameOverride": "string",
"bccEmailAddresses": [
{
"email": "string"
},
{
"email": "string"
}
]
}
Response
The response returns a success or failure and the information added to the envelope and the
bccEmailAddressId associated with the bccEmailAddresses.
The following example shows the response json body.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 221
URL:
/accounts/{accountId}/envelopes/{envelopeId}/email_settings
Formats:
XML, JSON
HTTP Method:
GET
Parameters:
No additional parameters are required.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
Response
The response returns the email setting information for the envelope, including the bccEmailAddressId
associated with the bccEmailAddresses.
The following example shows the response json body.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 222
This can also be used to delete an individual email override setting by using an empty string for the
value to be deleted.
URL:
/accounts/{accountId}/envelopes/{envelopeId}/email_settings
Formats:
XML, JSON
HTTP Method:
PUT
Parameters:
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 223
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
{
"replyEmailAddressOverride": "string",
"replyEmailNameOverride": "string",
"bccEmailAddresses": [
{
"bccEmailAddressId": "string",
"email": "string"
},
{
"bccEmailAddressId": "string",
"email": "string"
}
]
}
Response
The response returns a success or failure and the email settings information for the envelope.
The following example shows the response json body.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 224
settings will only affect email communications that occur after the deletion and the normal account
email settings are used for future email communications.
URL:
/accounts/{accountId}/envelopes/{envelopeId}/email_settings
Formats:
XML, JSON
HTTP Method:
DELETE
Parameters:
No additional parameters are required.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
Response
The response returns a success or failure and any error messages associated with a failure.
URL:
/accounts/{accountId}/envelopes/{envelopeId}/lock
Formats:
XML, JSON
HTTP Method:
POST
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 225
Parameters:
Note: When locking a template, the templateId is used in place of the envelopeId.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
{
“lockDurationInSeconds”: “string”,
“lockType”: “string”,
“useScratchPad”: “boolean”,
“lockedbyApp”: “string”
}
Response
The response returns the lock information and a lock token that is used to in the X-DocuSign-Edit
header to access and make changes to the locked envelope.
{
"lockedByUser": {
"userName": "string",
"email": "string",
"userId": "string"
},
"lockedByApp": "string",
"lockedUntilDateTime": "dateTime",
"lockDurationInSeconds": "string",
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 226
"lockType": "string",
"useScratchPad": "boolean",
"token": "string"
}
The X-DocuSign-Edit header must be included in all subsequent envelope or template calls to show
the user is the owner of the envelope lock.
The header structure for JSON is:
X-DocuSign-Edit: {"LockToken":"{token-from-response}", "LockDurationInSeconds":"600"}
URL:
/accounts/{accountId}/envelopes/{envelopeId}/lock
Formats:
XML, JSON
HTTP Method:
GET
Parameters:
The only required parameter is the envelope or template ID.
Note: When working with a template, the templateId is used in place of the envelopeId.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 227
Response
The response returns the lock information. If the call is made by the lockedByUser and the request
has the same integrator key as original, then the X-DocuSign-Edit header and additional lock
information is included in the response. This allows users to recover a lost editing session token and
the X-DocuSign-Edit header.
URL:
/accounts/{accountId}/envelopes/{envelopeId}/lock
Formats:
XML, JSON
HTTP Method:
PUT
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 228
Parameters:
The only required parameter is the envelope or template ID.
Note: When working with a template, the templateId is used in place of the envelopeId.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integ
ratorKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
{
"lockDurationInSeconds": "string",
"lockedbyApp": "string"
}
Response
The response returns the same information as locking the envelope or template.
The following example shows the response json body.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 229
URL:
/accounts/{accountId}/envelopes/{envelopeId}/lock
Optional addition: resend_envelope={true or false}
Formats:
XML, JSON
HTTP Method:
DELETE
Parameters:
The only required parameter is the envelope or template ID, the following optional query string can be
added to the request.
Note: When working with a template, the templateId is used in place of the envelopeId.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 230
Response
The response returns a success or failure.
URL:
/accounts/{accountId}/envelopes/{envelopeId}/notification
Formats:
XML, JSON
HTTP Method:
GET
Parameters:
The only required parameter is the envelope ID.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
Response
The response returns the expiration and reminder settings for the envelope.
The following example shows the response json body.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 231
URL:
/accounts/{accountId}/envelopes/{envelopeId}/recipients
Optional query items: include_tabs={true or false}, include_extended={true or false},
include_anchor_tab_locations={true or false}
Formats:
XML, JSON
HTTP Method:
GET
Parameters:
The only required parameter is the envelope ID. There are no required parameters, but the following
optional query parameters can be added.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
Response
The response returns the recipient types and current routing order. The recipient types includes the
recipient name, email, ID, recipient type, routing order, tab information, delivery method,
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 232
authentication status (including the date/time and result of the authentication) status (including the
date/time of the status changes) and, if the recipient status is declined and a reason is required, a
decline reason added by the recipient. Additionally, the tab information for Company, Date, Email,
Number, SSN, Text, Title, and Zip tabs includes the original value (originalValue) of the tab when it
was sent to the recipient.
The following example shows the response json body.
URL:
/accounts/{accountId}/envelopes/{envelopeId}/recipients
Optional query string: resend_envelope={true or false}
Note that if automatic reminders are enabled for the envelope, then resending the envelope resets the
automatic reminder date and the resend date is used for determining when to send reminder
messages.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 233
Formats:
XML, JSON
HTTP Method:
POST
Parameters:
The parameters used to add recipients are the same as those used in an envelope. See the Recipient
Types and Parameters for more information.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
"signers":[{
"accessCode":"String content",
"addAccessCodeToEmail":"String content",
"clientUserId":"String content",
"customFields":["String content"],
"emailNotification":{
"emailBody":"String content",
"emailSubject":"String content",
"supportedLanguage":"String content"
},
"idCheckConfigurationName":"String content",
"inheritEmailNotificationConfiguration":"String content",
"note":"String content",
"phoneAuthentication":{
"recipMayProvideNumber":"String content",
"recordVoicePrint":"String content",
"senderProvidedNumbers":["String content"],
"validateRecipProvidedNumber":"String content"
},
"recipientAttachments":[{
"attachmentType":"String content",
"label":"String content"
}],
"recipientId":"String content",
"requireIdLookup":"String content",
"roleName":"String content",
"routingOrder":"String content",
"socialAuthentications":[{
"authentication":"String content"
}],
"email":"String content",
"name":"String content",
"defaultRecipient":"String content",
"signInEachLocation":"String content",
"signatureInfo":{
"fontStyle":"String content",
"signatureInitials":"String content",
"signatureName":"String content"
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 234
}
}]
}
Response
The response returns if the API execution is successful (200 – OK) or failed. The response contains a
recipient structure similar to that input. If an error occurred during the POST operation for any of the
recipients, that recipient will contain an error node with an errorCode and message.
The following example shows the response json body.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 235
URL:
/accounts/{accountId}/envelopes/{envelopeId}/recipients
Formats:
XML, JSON
HTTP Method:
DELETE
Parameters:
The only required parameter is recipientId.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
{
"signers":[{
"recipientId":"String content",
}]
}
Response
The response returns if the API execution is successful (200 – OK) or failed. The response contains a
recipient structure similar to that input. If an error occured during the DELETE operation for any of the
recipients, that recipient will contain an error node with an errorCode and message.
The following example shows the response json body.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 236
"routingOrder":"String content",
"status":"Deleted",
"email":"String content",
"name":"String content"
}]
}
URL:
/accounts/{accountId}/envelopes/{envelopeId}/recipients
Optional addition: resend_envelope {true or false}
Formats:
XML, JSON
HTTP Method:
PUT
Parameters:
The parameters used to modify recipients are the same as those used in an envelope. See the
Recipient Types and Parameters for more information. The resend_envelope flag is only used to
resend an In Process envelope.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 237
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
{
"signers" :
[
{
"email": "[email protected]",
"name": "Mike Roseleip",
"recipientId": "1"
}
]
}
Response
The response returns if the correction was successful.
The following example shows the response json body.
URL:
/accounts/{accountId}/envelopes/{envelopeId}/recipients/{recipientId}/bulk_recipients
Formats:
XML, JSON
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 238
HTTP Method:
PUT
Parameters:
The only required parameters are the envelope ID and recipient ID.
The parameters listed below are the supported fields for the csv file being added to the envelope. The
first row of the csv file is the header row that must have the field names for the file. Each subsequent
row represents a unique recipient with the information for that recipient.
There can be a maximum of 1,000 rows in the bulk recipient csv file.
If the value you are adding has a comma or double-quotation marks (“), the value must be enclosed in
double-quotation marks (“). Example: if you have a Text tab with a tabLabel of Group and one of the
entries for a recipient is Inside Sales, NE, the would use “Inside Sales, NE” in the Group column for
that recipient.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 239
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Content-Type: application/json
Content-Disposition: file;filename={file name};fileExtension=.csv
Response
The response returns the recipient information for each row of the bulk recipient csv file, the total
number of recipients in the file, and the bulkRecipientUri.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 240
Example Response
{
"bulkRecipients": [
{
"rowNumber": "string",
"email": "string",
"name": "string",
"note": "string",
"accessCode": "string",
"identification": "string",
"phoneNumber": "string",
"tabLabels": [
{
"name": "string,"
"value": "string"
}
]
},
{
"rowNumber": "string",
"email": "string",
"name": "string",
"note": "string",
"accessCode": "string",
"identification": "string",
"phoneNumber": "string",
"tabLabels": [
{
"name": "string,
"value": "string"
}
]
}
],
"bulkRecipientsCount": "string",
"bulkRecipientsUri": "string"
}
URL:
/accounts/{accountId}/envelopes/{envelopeId}/recipients/{recipientId}/bulk_recipients
Formats:
XML, JSON
HTTP Method:
GET
Parameters:
The only required parameters are the envelope ID and recipient ID.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 241
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integ
ratorKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
Response
The response returns the recipient information for each row of the bulk recipient csv file, the total
number of recipients in the file, and the bulkRecipientUri.
The following example shows the response json body.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 242
URL:
/accounts/{accountId}/envelopes/{envelopeId}/recipients/{recipientId}/bulk_recipients
Formats:
XML, JSON
HTTP Method:
DELETE
Parameters:
The only required parameters are the envelope ID and recipient ID.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integ
ratorKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
Response
The response returns a success or failure.
URL:
/accounts/{accountId}/envelopes/{envelopeId}/recipients/{recipientId}/initials_image
Note: For the Authentication/Authorization for this call, the credentials must match the sender of
the envelope, the recipient must be an accountless signer or inperson signer, the Account has
CanSendEnvelope enabled and the SendingUser does not have ExpressSendOnly enabled.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 243
Formats:
XML, JSON
HTTP Method:
PUT
Parameters:
No additional parameters are required.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Content-Type: image/gif
<image removed>
Response
The response returns a success or failure.
URL:
/accounts/{accountId}/envelopes/{envelopeId}/recipients/{recipientId}/signature
Note: For the Authentication/Authorization for this call, the credentials must match the sender of
the envelope, the recipient must be an accountless signer or in person signer, the Account has
CanSendEnvelope enabled and the SendingUser does not have ExpressSendOnly enabled.
Formats:
XML, JSON
HTTP Method:
GET
Parameters:
No additional parameters are required.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 244
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Response
The response returns information for the request recipient signature. The following example shows
the response json body.
URL:
/accounts/{accountId}/envelopes/{envelopeId}/recipients/{recipientId}/signature_image
Note: For the Authentication/Authorization for this call, the credentials must match the sender of
the envelope, the recipient must be an accountless signer or in person signer, the Account has
CanSendEnvelope enabled and the SendingUser does not have ExpressSendOnly enabled.
Formats:
XML, JSON
HTTP Method:
PUT
Parameters:
No additional parameters are required.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 245
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Content-Type: image/gif
<image removed>
Response
The response returns a success or failure.
URL:
/accounts/{accountId}/envelopes/{envelopeId}/recipients/{recipientId}/tabs
Formats:
XML, JSON
HTTP Method:
POST
Parameters:
The parameters used to add tabs are the same as those used in an envelope. See the Tab Types
and Parameters section for more information about the tabs.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 246
"approveTabs":[{
<Tab information removed>
}],
"titleTabs":[{
<Tab information removed>
}],
"signHereTabs":[{
<Tab information removed>
}]
}
Response
The response returns the success or failure of each tab being added to the envelope and the
envelope ID. Failed operations on array elements will add the “errorDetails” structure containing an
error code and message. If “errorDetails” is null, then the operation was successful for that item.
URL:
/accounts/{accountId}/envelopes/{envelopeId}/recipients/{recipientId}/tabs
Optional query item: include_anchor_tab_locations={true or false}
Formats:
XML, JSON
HTTP Method:
GET
Parameters:
There are no required parameters, but the following optional query parameters can be added.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 247
Response
The response returns a list of tabs associated with the recipient. The tab information includes a tabId
that can be used when deleting a tab. Additionally for Company, Date, Email, Number, SSN, Text,
Title, and Zip tabs the response includes the original value (originalValue) of the tab when it was sent
to the recipient. The following example shows the response json body.
URL:
/accounts/{accountId}/envelopes/{envelopeId}/recipients/{recipientId}/tabs
Formats:
XML, JSON
HTTP Method:
DELETE
Parameters:
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
{
"approveTabs":[{
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 248
"tabId":"String content"
},
{
"tabId":"String content"
}
],
"titleTabs":[{
"tabId":"String content"
}],
"signHereTabs":[{
"tabId":"String content"
}]
}
Response
The response returns the success or failure of each document being added to the envelope and the
envelope ID. Failed operations on array elements will add the “errorDetails” structure containing an
error code and message. If “errorDetails” is null, then the operation was successful for that item.
URL:
/accounts/{accountId}/envelopes/{envelopeId}/recipients/{recipientId}/tabs
Formats:
XML, JSON
HTTP Method:
PUT
Parameters:
The parameters used to modify tabs are the same as those used in an envelope, but you can only
modify existing tabs and the tabId must be included. See the Tab Types and Parameters section for
more information about the tabs.
Name Reqd? Type Description
tabId Yes String The unique identifier for the tab. The tabId can
be retrieved with the GET call.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 249
{
"approveTabs":[{
<Tab information removed>
}],
"titleTabs":[{
<Tab information removed>
}],
"signHereTabs":[{
<Tab information removed>
}]
}
Response
The response returns the success or failure of each tab being modified and the envelope ID. Failed
operations on array elements will add the “errorDetails” structure containing an error code and
message. If “errorDetails” is null, then the operation was successful for that item.
URL:
/accounts/{accountId}/envelopes/{envelopeId}/templates
Optional addition: include=matching_applied
Formats:
XML, JSON
HTTP Method:
GET
Parameters:
No additional parameters are required, but the following optional query string can be added to the
request.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 250
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
Response
The response returns a list of the templates used in an envelope, showing the name, ID, and uri for
the template, along with template matching information if the optional query parameter is included.
The following example shows the response json body with include=matching_applied.
URL:
/{accountId}/envelopes/{envelopeId}/views/correct
Formats:
XML, JSON
HTTP Method:
POST
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 251
Parameters:
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
{
"returnUrl":"String content",
"suppressNavigation":"String content"
}
Response
The response returns the correction view url.
The following example shows the response json body.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 252
URL:
/accounts/{accountId}/envelopes/{envelopeId}/views/recipient
Formats:
XML, JSON
HTTP Method:
POST
Parameters:
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 253
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 254
xFrameOptionsAllowFromUrl No String Sets the origin for display the page in the
frame.
If xFrameOptions = allow_from, a value
must be provided.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 255
"clientUserId":"String content",
"authenticationMethod": "String content",
"assertionId": "String content",
"authenticationInstant": "String content",
"securityDomain": "String content"
"email":"String content",
"pingUrl": "String content",
"pingFrequency":"String content",
"recipientId": "String content",
"returnUrl":"String content",
"userId":"String content",
"userName":"String content",
"xFrameOptions":"String content",
"xFrameOptionsAllowFromUrl":"String content"
}
Response
The response returns the recipient view url.
The following example shows the response json body.
Then first example would open the signing experience in French, the second would use French
(Canada), and the third would use Portuguese (Brazil).
https://demo.docusign.net/signing/startinsession.aspx?t=d1cf42f2-30b6-499b-ab54-
058fbf438103&locale=fr
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 256
https://demo.docusign.net/signing/startinsession.aspx?t=d1cf42f2-30b6-499b-ab54-
058fbf438103&locale=fr_CA
https://demo.docusign.net/signing/startinsession.aspx?t=d1cf42f2-30b6-499b-ab54-
058fbf438103&locale=pt_BR
URL:
/accounts/{accountId}/envelopes/{envelopeId}/views/sender
Formats:
XML, JSON
HTTP Method:
POST
Parameters:
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 257
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
{
"returnUrl":"String content"
}
Response
The response returns the sender view URL.
When using the response URL you can set the default UI page shown to a user by using the send
query string parameter on the end of the URL. Setting send=0 starts the user on the prepare page
where the sender can add documents and recipients, while setting send=1 starts the user on the
tagging page. The setting defaults to the prepare page.
Example: For the URL - https://docusign.net/Member/StartInSession.aspx?send=1
The user will start on the tagging page of the sending view.
The following example shows the response json body.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 258
URL:
/accounts/{accountId}/envelopes/status
Formats:
XML, JSON
HTTP Method:
PUT
Parameters:
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
{
"envelopeIds":[
"String content",
"String content"
],
}
Response
The response returns the envelope status information for the requested envelopes.
The following example shows the response json body.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 259
URL:
/accounts/{accountId}/folders
Optional query string: template={string}
Formats:
XML, JSON
HTTP Method:
GET
Parameters:
No additional parameters are required, but the following optional parameter can be added to the
request.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 260
Response
The response returns the list of folders for the account. The folder list includes the folder ID, the
folder name, the name, user ID and email of the folder’s owner, the folder type and uri. If the folder is
a sub-folder of another folder, the parent folder information is returned. If the template query is
included, the template folder structure, along with the templates within each folder, is also returned.
The following example shows the response json body.
URL:
/accounts/{accountId}/folders/{folderId}
Optional query additions: start_position={ integer}, from_date = {date/time}, to_date= {date/time},
search_text={text}, status={envelope status}, owner_name={username}, owner_email={email}
Formats:
XML, JSON
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 261
HTTP Method:
GET
Parameters:
No additional parameters are required, but the following optional query strings can be added to
narrow the response results.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
Response
The response returns the list of envelope in the folder that meet the query information.
The following example shows the response json body.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 262
Move Envelope
This moves an envelope from its current folder to selected folder.
Note: This can be used to delete envelopes by using “recyclebin” as folderId. Placing an in
process envelope (envelope status of sent or delivered) in the recycle bin will void the envelope.
This can also be used to delete templates by using the templateId in place of the envelopeId and
using “recyclebin” as folderId.
URL:
/accounts/{accountId}/folders/{folderId}
Formats:
XML, JSON
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 263
HTTP Method:
PUT
Parameters:
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
{
"envelopeIds": ["String"],
"fromFolderId": "FolderId"
}
Response
The response returns if the move was a success or failure.
URL:
/accounts/{accountId}/groups
Formats:
XML, JSON
HTTP Method:
POST
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 264
Parameters:
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
{
"groups":[{
"groupName":"String content",
"permissionProfileId":"String content"
}]
}
Response
The response returns if the API execution is successful (201 – Created) or failed. The response
contains a group structure similar to the request and includes the groupId assigned to the group. If an
error occurred during the POST operation for any of the groups, that group will contain an errorDetails
node with an errorCode and message.
The following example shows the response json body.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 265
URL:
/accounts/{accountId}/groups
Optional query parameters: start_position={integer}, count={integer}
Formats:
XML, JSON
HTTP Method:
GET
Parameters:
There are no required parameters, but the following optional query strings can be added to the
request.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
Response
The response returns the list of groups along with the added information about the result set.
Name Description
resultSetSize Total number groups returned in the result set.
totalSetSize Total number groups for the account.
startPosition Starting position of the current result set.
endPosition The last position in the result set.
nextUri Provides the Uri to the next chunk of records based on the
request. If the endPosition is the entire results of the search, this
is null.
previousUri Provides the Uri to the previous chunk of records based on the
request. If this response is the first response for the search, this
is null.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 266
URL:
/accounts/{accountId}/groups
Formats:
XML, JSON
HTTP Method:
PUT
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 267
Parameters:
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
{
"groups":[{
"groupId":"String content",
"groupName":"String content",
"permissionProfileId":"String content"
}]
}
Response
The response returns if the API execution is successful (200 – OK) or failed. The response contains a
group structure similar to the request. If an error occurred during the PUT operation for any of the
groups, that group will contain an errorDetails node with an errorCode and message.
The following example shows the response json body.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 268
URL:
/accounts/{accountId}/groups
Formats:
XML, JSON
HTTP Method:
DELETE
Parameters:
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
{
"groups": [
{
"groupId": "string"
},
{
"groupId": "string"
}
]
}
Response
The response returns a success or failure and information for the deleted groups.
The following example shows the response json body.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 269
"groupName": "string",
"permissionProfileId": "string",
"groupType": "string",
}
]
}
URL:
/accounts/{accountId}/groups/{groupId}/brands
Formats:
XML, JSON
HTTP Method:
GET
Parameters:
No additional parameters are required.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
Response
The response returns the brand information (brandId, brandName, and brandCompany) associated
with the group.
The following example shows the response json body.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 270
"brandName":"String content",
"brandCompany":"String content"
}]
}
URL:
/accounts/{accountId}/groups/{groupId}/brands
Formats:
XML, JSON
HTTP Method:
PUT
Parameters:
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
{
"brands":[{
"brandId":"String content",
"brandName":"String content",
"brandCompany":"String content"
}]
}
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 271
Response
The response returns as success or failure, along with the brand information (brandId, brandName,
and brandCompany) added to the group.
The following example shows the response json body.
URL:
/accounts/{accountId}/groups/{groupId}/brands
Formats:
XML, JSON
HTTP Method:
DELETE
Parameters:
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
{
"brands":[{
"brandId":"String content"
},
"brandId":"String content"
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 272
}]
}
Response
The response returns as success or failure, along with the brandIds of the brands removed from the
group.
The following example shows the response json body.
URL:
/accounts/{accountId}/groups/{groupId}/users
Formats:
XML, JSON
HTTP Method:
PUT
Parameters:
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 273
{
"users":[{
"userId":"String content",
}]
}
Response
The response returns if the API execution is successful (200 – OK) or failed. The response contains a
user structure similar to the request and includes the user changes. If an error occurred during the
PUT operation for any of the users, that user will contain an errorDetails node with an errorCode and
message.
The following example shows the response json body.
URL:
/accounts/{accountId}/groups/{groupId}/users
Optional query parameters: start_position={integer}, count={integer}
Formats:
XML, JSON
HTTP Method:
GET
Parameters:
There are no required parameters, but the following optional query strings can be added to the
request.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 274
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
Response
The response returns the list of users in the group along with information about the result set.
Name Description
resultSetSize Total number user items returned in the result set.
totalSetSize Total number user items in the group.
startPosition Starting position of the current result set.
endPosition The last position in the result set.
nextUri Provides the Uri to the next chunk of records based on the
request. If the endPosition is the entire results of the search, this
is null.
previousUri Provides the Uri to the previous chunk of records based on the
request. If this response is the first response for the search, this
is null.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 275
}
],
"resultSetSize": "String content",
"totalSetSize": "String content",
"startPosition": "String content",
"endPosition": "String content",
"nextUri": "String content",
"previousUri": "String content"
}
URL:
/accounts/{accountId}/groups/{groupId}/users
Formats:
XML, JSON
HTTP Method:
DELETE
Parameters:
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
{
"users":[{
"userId":"String content",
}]
}
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 276
Response
The response returns if the API execution is successful (200 – OK) or failed. The response contains a
user structure similar to the request and includes the user changes. If an error occurred during the
DELETE operation for any of the users, that user will contain an errorDetails node with an errorCode
and message.
The following example shows the response json body.
URL:
/accounts/{accountId}/permission_profiles
Formats:
XML, JSON
HTTP Method:
GET
Parameters:
No additional parameters are required.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 277
Content-Type: application/json
Response
The response returns a list of permission profiles for the account.
The following example shows the response json body.
URL:
/accounts/{accountId}/recipient_names
The query string email = {email} is required.
Formats:
XML, JSON
HTTP Method:
GET
Parameters:
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 278
Content-Type: application/json
Response
The response returns the recipient names associated with the email is used by more than one user.
URL:
/accounts/{accountId}/search_folders/{search_folder}
Optional query additions: start_position={integer}, count={integer}, from_date={date/time},
to_date={date/time}, order_by={string}, order={string}, include_recipients={true/false}, all
Note: If the userId of the user making the call is the same as the userId for any returned recipient,
then the userId is added to the returned information for those recipients.
Formats:
XML, JSON
HTTP Method:
GET
Parameters:
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 279
search_folder values
Value Description
Drafts Drafts
Note that Draft envelopes are only held for 30 days before they
are removed from the system.
awaiting_my_signature Envelopes awaiting the users’ signature
completed Envelopes with the status of “completed”.
out_for_signature Sent envelopes that have not been completed.
order_by values
Value Description
action_required Awaiting
created Date/Time envelope was created
completed Date/Time envelope was completed
sent Date/Time envelope was sent
signer_list List of Signers
status Envelope status
subject Envelope subject
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 280
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
Response
The response returns the list of envelopes that match the specified criteria.
Note: If the userId of the user making the call is the same as the userId for any returned recipient,
then the userId is added to the returned information for those recipients.
Value Description
endPosition The last row id in the result set.
folderItems Collection of folder items in the result set. See the table below for
more information on the contents of folder items.
nextUri Provides the Uri to the next chunk of records based on the search
request. If the endPosition is the entire results of the search, this
is null.
previousUri Provides the Uri to the previous chunk of records based on the
search request. If this response is the first response for the
search, this is null.
resultSetSize Number of folder items returned in the result set.
startPosition Starting position of the current result set.
totalRows Total number of rows that meet the search criteria. Each row is
for a different envelope.
folderItems
Value Description
completedDateTime Date/Time the envelope was completed
createdDateTime Date/Time envelope was created
envelopeID Identifier for the envelope
envelopeUri Uri path for the envelope
expireDateTime Date/Time envelope is set to expire
folderId Identifier of the folder where the envelope lives.
folderUri Path to the folder
ownerName Name of the envelope owner
recipients Recipient information and statuses listed by recipient types. This
is the same as the information returned by the Get Envelope
Recipient Status request.
recipientUri Uri path of the envelope recipients.
senderName Name of the envelope sender.
sentDateTime Date/Time the envelope was sent.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 281
URL:
/accounts/{accountId}/settings
Formats:
XML, JSON
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 282
HTTP Method:
GET
Parameters:
No additional parameters are required.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
Response
The response returns the account setting name/value information for the specified account. See the
accountSettings list for more information about the different account settings.
The following example shows the response json body.
URL:
/accounts/{accountId}/settings
Formats:
XML, JSON
HTTP Method:
PUT
Parameters:
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 283
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
{
"accountSettings":[{
"name":"String content",
"value":"String content"
}]
}
Response
The response returns a success or failure.
URL:
/accounts/{accountId}/shared_access
Optional query parameter: userIds={userId,userId}, item_type={envelopes or templates},
envelopeId={envelopeId,envelopeId}, search_text={*string*}, shared={value}, count={integer},
start_position={integer}, templateId={templateId,templateId}
Formats:
XML, JSON
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 284
HTTP Method:
GET
Parameters:
There are no required parameters, but the following optional query parameter can be added to the
request.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 285
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
Response
The response provides information about the result set, an array of the sharedAccess items, and
either a success or failure. If the call fails an error code is provided.
A description of the information in the response is given below.
Value Description
resultSetSize The number of results returned in this response.
startPosition The index of the first element in the response set.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 286
Value Description
endPosition The index of the last element in the response set.
totalSetSize The total number of results from the call. This will always be
greater than or equal to resultSetSize.
sharedAccess The shared access information for the users specified in the
request. See description below for more information.
Value Description
User A complex element with the information for the user associated
with the shared access information. It is made up of the userId,
userName, and email information for the user.
envelopes The shared access information for envelopes
Value Description
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 287
Value Description
templates The shared access information for templates
templateId: The DocuSign generated unique identifier for the
template.
templateName: The filename for the template.
owner: A complex element with the information for the user that
currently owns the template. It is made up of the userId,
userName, email information, and a uri for the user.
sharedUsers: A complex element with the user information for
users the template is shared with. It is made up of the userId,
userName, and email information for the user. It also includes
the shared status information for the template, which will always
be shared_to.
sharedGroups: A complex element with group information for
groups the template is shared with. It is made up of the group
information, explained below. It also includes the shared status
information for the template, which will always be shared_to.
group: A complex element with the groupId (the DocuSign
generated unique identifier for the group), groupName, and
groupType.
Examples of the response body for json and XML are shown below.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 288
}
]
}
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 289
<email>string</email>
<uri>string</uri>
<userId>string</userId>
<userName>string</userName>
</user>
<envelopes>
<sharedItem>
<shared>string</shared>
<user>
<email>string</email>
<uri>string</uri>
<userId>string</userId>
<userName>string</userName>
</user>
</sharedItem>
<sharedItem>
<shared>string</shared>
<user>
<email>string</email>
<uri>string</uri>
<userId>string</userId>
<userName>string</userName>
</user>
</sharedItem>
</envelopes>
</memberSharedItems>
<memberSharedItems>
<user>
<email>string</email>
<uri>string</uri>
<userId>string</userId>
<userName>string</userName>
</user>
<envelopes>
<sharedItem>
<shared>string</shared>
<user>
<email>string</email>
<uri>string</uri>
<userId>string</userId>
<userName>string</userName>
</user>
</sharedItem>
<sharedItem>
<shared>string</shared>
<user>
<email>string</email>
<uri>string</uri>
<userId>string</userId>
<userName>string</userName>
</user>
</sharedItem>
</envelopes>
</memberSharedItems>
</sharedAccess>
<startPosition>string</startPosition>
<totalSetSize>string</totalSetSize>
</accountSharedAccess>
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 290
When setting user shared access, only users with account administration privileges can set shared
access status for envelopes.
When setting template shared access, only users that own a template and have sharing permission or
with account administration privileges can set shared access for templates.
Changes to the shared items status are not additive; the change always replaces the current status.
To change template shared access the query parameter item_type = templates must be added to the
request. When this is set, the user and envelopes properties are not required.
URL:
/accounts/{accountId}/shared_access
Formats:
XML, JSON
HTTP Method:
PUT
Parameters:
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 291
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
{
"sharedAccess": [
{
"user": {
"userId": "123",
},
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 292
“envelopes”: [
{
"user": {
"userId": "1234",
},
"shared": "shared_to"
},
{
"user": {
"userId": "123456",
},
"shared": "shared_from"
}
]
},
{
"user": {
"userId": "3770d021-0c10-4652-809b-01b669308bb8",
},
“envelopes”: [
{
"user": {
"userId": "123",
},
"shared": "shared_to"
}
]
},
{
"user": {
"userId": "98ca4b2c-c46f-4802-9bd6-06448cf2abbb",
},
“envelopes”: [
{
"user": {
"userId": "3770d021-0c10-4652-809b-01b669308bb8",
},
"shared": "shared_to"
},
{
"user": {
"userId": "29c56d02-ec97-4a2a-b99d-6c5a2e400b8b",
},
"shared": "shared_to_and_from"
}
]
}
]
}
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{passwo
rd}</Password><IntegratorKey>{integrator_key}</IntegratorKey></DocuS
ignCredentials>
Accept: application/json
Content-Type: application/json
{
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 293
"sharedAccess": [
{
"templates": [
{
"templateId": "270D920E-C65A-410D-9640-75D2FBEADAC2",
"sharedUsers": [
{
"user": {
"userId": "3770d021-0c10-4652-809b-01b669308bb8",
"userId": "936ad868-c597-4140-882b-c0452287e286"
}
],
"sharedGroups": [
{
"group": {
"groupId": "9990d021-0c15-4561-809x-01b669308bb8",
"groupId": "9340d065-4g17-6781-935w-87b546308hr8"
]
}
}
],
"shared": "shared_to"
}
}
]
}
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 294
</envelopes>
</memberSharedItems>
</sharedAccess>
<startPosition>string</startPosition>
<totalSetSize>string</totalSetSize>
</accountSharedAccess>
Response
The response returns a success or failure, along with the changed shared access status.
Examples of the response body for json and XML are shown below.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 295
"errorCode": "USER_LACKS_MEMBERSHIP",
"message": "The UserID does not have a valid membership in this Account."
}
}
]
}
]
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 296
<message>string</message>
</errorDetails>
<nextUri>string</nextUri>
<previousUri>string</previousUri>
<resultSetSize>string</resultSetSize>
<sharedAccess>
<memberSharedItems>
<errorDetails>
<errorCode>string</errorCode>
<message>string</message>
</errorDetails>
<user>
<email>string</email>
<uri>string</uri>
<userId>string</userId>
<userName>string</userName>
</user>
<envelopes>
<sharedItem>
<errorDetails>
<errorCode>string</errorCode>
<message>string</message>
</errorDetails>
<shared>string</shared>
<user>
<email>string</email>
<uri>string</uri>
<userId>string</userId>
<userName>string</userName>
</user>
</sharedItem>
<sharedItem>
<shared>string</shared>
<user>
<email>string</email>
<uri>string</uri>
<userId>string</userId>
<userName>string</userName>
</user>
</sharedItem>
</envelopes>
</memberSharedItems>
</sharedAccess>
<startPosition>string</startPosition>
<totalSetSize>string</totalSetSize>
</accountSharedAccess>
URL:
/accounts/{accountId}/signatureproviders
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 297
Formats:
XML, JSON
HTTP Method:
GET
Parameters:
There are no required parameters.
Response
The response returns the list of signature providers
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 298
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 299
"0",
"1"
]
}
]
}
]
}
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 300
<string>0, 1</string>
</requiredSignatureProviderOptionIds>
<signerType>signer</signerType>
</signatureProviderRequiredOption>
</signatureProviderRequiredOptions>
</accountSignatureProvider>
</signatureProviders>
</accountSignatureProviders>
URL:
/accounts/{accountId}/signing_groups
Formats:
XML, JSON
HTTP Method:
POST
Parameters:
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 301
POST https://{server}/restapi/{apiVersion}/accounts/{accountId}/signing_groups
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
{
"groups": [
{
"groupName": "string",
"groupType": "sharedSigningGroup",
"users": [
{
"userName": "string",
"email": "string"
},
{
"userName": "string",
"email": "string"
}
]
},
{
"groupName": "string",
"groupType": "sharedSigningGroup",
"users": [
{
"userName": "string",
"email": "string"
},
{
"userName": "string",
"email": "string"
}
]
}
]
}
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 302
<groupType>sharedSigningGroup</groupType>
<users>
<signingGroupUser>
<email>string</email>
<userName>string</userName>
</signingGroupUser>
<signingGroupUser>
<email>string</email>
<userName>string</userName>
</signingGroupUser>
</users>
</signingGroup>
</groups>
</signingGroupInformation>
Response
The response returns a success or failure with any error messages. For successes DocuSign
generates a signingGroupId for each group, which is included in the response. The response also
includes information about when the group was created and modified, including the account user that
created and modified the group.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 303
<users>
<signingGroupUser>
<email>string</email>
<userName>string</userName>
</signingGroupUser>
</users>
</signingGroup>
</groups>
URL:
/accounts/{accountId}/signing_groups
Optional query string: include_users={true or false}
Formats:
XML, JSON
HTTP Method:
GET
Parameters:
There are no required parameters, but the following optional query string can be added to the request.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
Response
The response returns a list of shared signing groups for the account. Signing group members are only
included in the response if the include_users query parameter was added to the request.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 304
{
"groups": [
{
"signingGroupId": "string",
"groupName": "string",
"groupType": "string",
"created": "string",
"createdBy": "string",
"modified": "string",
"modifiedBy": "string",
},
{
"signingGroupId": "string",
"groupName": "string",
"groupType": "string",
"created": "string",
"createdBy": "string",
"modified": "string",
"modifiedBy": "string",
}
]
}
URL:
/accounts/{accountId}/signing_groups
Formats:
XML, JSON
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 305
HTTP Method:
PUT
Parameters:
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
{
"groups":[
{
"signingGroupId":"string",
"groupName":"string",
},
{
"signingGroupId":"string",
"groupName":"string",
}
]
}
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 306
Response
The response returns a list of modified signing groups.
URL:
/accounts/{accountId}/signing_groups
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 307
Formats:
XML, JSON
HTTP Method:
DELETE
Parameters:
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
{
"groups":[
{
"signingGroupId":"string"
},
{
"signingGroupId":"string"
}
]
}
Response
The response returns a success or failure.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 308
URL:
/accounts/{accountId}/signing_groups/{signingGroupId}
Formats:
XML, JSON
HTTP Method:
GET
Parameters:
No additional parameters are required.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
Response
The response returns information about the requested group, including group member information.
{
"groups": [
{
"signingGroupId": "string",
"groupName": "string",
"groupType": "sample string 3",
"created": "string",
"createdBy": "string",
"modified": "string",
"modifiedBy": "string",
"users": [
{
"userName": "string",
"email": "string",
},
{
"userName": "string",
"email": "string",
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 309
}
],
}
]
}
URL:
/accounts/{accountId}/signing_groups/{signingGroupId}
Formats:
XML, JSON
HTTP Method:
PUT
Parameters:
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 310
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
{
"groupName": "string",
"groupType": "string",
"users": [
{
"userName": "string",
"email": "string"
}
]
}
Response
The response returns a success or failure along with the updated group information.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 311
URL:
/accounts/{accountId}/signing_groups/{signingGroupId}/users
Formats:
XML, JSON
HTTP Method:
GET
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 312
Parameters:
No additional parameters are required.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{passwo
rd}</Password><IntegratorKey>{integrator_key}</IntegratorKey></DocuS
ignCredentials>
Accept: application/json
Content-Type: application/json
Response
The response returns the group member information for the signing group.
URL:
/accounts/{accountId}/signing_groups/{signingGroupId}/users
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 313
Formats:
XML, JSON
HTTP Method:
PUT
Parameters:
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
{
"users":[
{
"userName":"string",
"email":"string"
},
{
"userName":"string",
"email":"string"
}
]
}
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 314
</signingGroupUsers>
Response
The response returns a success or failure along with the information about the added group members.
URL:
/accounts/{accountId}/signing_groups/{signingGroupId}/users
Formats:
XML, JSON
HTTP Method:
DELETE
Parameters:
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 315
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
{
"users":[
{
"userName":"string",
"email":"string"
},
{
"userName":"string",
"email":"string"
}
]
}
Response
The response returns a success or failure.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 316
URL:
/accounts/{accountId}/tab_definitions
Formats:
XML, JSON
HTTP method:
POST
Parameters:
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 317
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 318
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 319
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
{
"anchor": "string",
"anchorXOffset": "string",
"anchorYOffset": "string",
"anchorIgnoreIfNotPresent": "string",
"anchorUnits": "string",
"bold": "string",
"concealValueOnDocument": "string",
"disableAutoSize": "string",
"editable": "string",
"font": "string",
"fontColor": "string",
"fontSize": "string",
"height": "string",
"includeInEmail": "string",
"initialValue": "string",
"italic": "string",
"items": "string;string;string",
"locked": "string",
"maximumLength": "string",
"mergeField": {
"configurationType": "string",
"path": "string",
"writeBack": "string",
"allowSenderToEdit": "string"
},
"name": "string",
"required": "string",
"shared": "string",
"tabLabel": "string",
"type": "string",
"underline": "string",
"validationMessage": "string",
"validationPattern": "string",
"width": "string"
}
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 320
Response
The response returns a success of failure along with the tab information, including the custom tab ID
and information on when the tab was modified and the user that modified the tab. The custom tab ID
is used when editing the tab or using the tab.
The following example shows the response json body.
URL:
/accounts/{accountId}/tab_definitions
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 321
Formats:
XML, JSON
HTTP Method:
GET
Parameters:
No additional parameters are required, but the following optional queries can be added to the request.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
Response
The response returns information for all custom tabs associated with the account. If the
custom_tab_only=true query was included, only custom tabs are returned.
The following examples show the json response.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 322
"items": "string;string;string",
"locked": "string",
"maximumLength": "string",
"mergeField": {
"configurationType": "string",
"path": "string",
"writeBack": "string",
"allowSenderToEdit": "string"
},
"name": "string",
"required": "string",
"shared": "string",
"tabLabel": "string",
"type": "string",
"underline": "string",
"validationMessage": "string",
"validationPattern": "string",
"width": "string",
"customTabId": "string",
"lastModifiedByUserId": "string",
"lastModifiedByDisplayName": "string",
"lastModified": "string",
"createdByUserId": "string",
"createdByDisplayName": "string"
}
]
}
URL:
/accounts/{accountId}/tab_definitions/{customtabid}
Formats:
XML, JSON
HTTP Method:
GET
Parameters:
No additional parameters are required.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 323
Response
The response returns the requested custom tab.
The following examples show the json and xml responses.
URL:
/accounts/{accountId}/tab_definitions/{customtabid}
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 324
Formats:
XML, JSON
HTTP Method:
PUT
Parameters:
There are no required parameters for this request. Only information included in the request is
updated in the profile.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 325
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 326
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 327
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
{
"anchor": "string",
"anchorXOffset": "string",
"anchorYOffset": "string",
"anchorIgnoreIfNotPresent": "string",
"anchorUnits": "string",
"bold": "string",
"concealValueOnDocument": "string",
"disableAutoSize": "string",
"editable": "string",
"font": "string",
"fontColor": "string",
"fontSize": "string",
"height": "string",
"includeInEmail": "string",
"initialValue": "string",
"italic": "string",
"items": "string;string;string",
"locked": "string",
"maximumLength": "string",
"mergeField": {
"configurationType": "string",
"path": "string",
"writeBack": "string",
"allowSenderToEdit": "string"
},
"name": "string",
"required": "string",
"shared": "string",
"tabLabel": "string",
"type": "string",
"underline": "string",
"validationMessage": "string",
"validationPattern": "string",
"width": "string"
}
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 328
Response
The response returns a success of failure along with the modified tab information, including when the
tab was modified and the user that modified the tab.
The following example shows the response json body.
URLs:
/accounts/{accountId}/tab_definitions/{customtabid}
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 329
Formats:
XML, JSON
HTTP method:
DELETE
Parameters:
No additional parameters are required.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
Response
The response returns the success or failure.
URL:
/accounts/{accountId}/templates
Optional query strings: folder={string}, folder_ids={GUID, GUID}, include={string}, count={integer},
start_position={integer}, from_date={date/time}, to_date={date/time}, used_from_date={date/time},
used_to_date={date/time}, search_text={string}, order={string}, order_by={string}, user_filter={string},
shared_by_me={true/false}
Formats:
XML, JSON
HTTP Method:
GET
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 330
Parameters:
The only information needed for this is the account ID, but the following optional queries can be added
to the request.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 331
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
Response
This returns a list of templates for the user that match the query parameters. If the optional folder or
folder_id queries are used, only the templates in the specified folders are returned.
Name Description
resultSetSize The number of results returned in this response.
startPosition The index of the first element in the response set.
endPosition The index of the last element in the response set.
totalSetSize The total number of results from the call. This will always be greater
than or equal to resultSetSize.
nextUri Provides the Uri to the next chunk of records based on the search
request. If the endPosition is the entire results of the search, this is null.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 332
Name Description
previousUri Provides the Uri to the previous chunk of records based on the search
request. If this response is the first response for the search, this is null.
folders Folder information for the requested templates.
envelopeTemplates The list of requested templates.
Post Template
Saves a template definition using a multipart request.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 333
To add a recipient’s name in the subject line add the following text in the emailSubject when
creating the template or when sending an envelope from a template:
[[<roleName>_UserName]]
Example:
"emailSubject":"[[Signer 1_UserName]], Please sign this NDA",
To add a recipient’s email address in the subject line add the following text in the emailSubject
when creating the template or when sending an envelope from a template:
[[<roleName>_Email]]
Example:
"emailSubject":"[[Signer 1_Email]], Please sign this NDA",
URL:
/accounts/{accountId}/templates
Formats:
XML, JSON
HTTP Method:
POST
Parameters:
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 334
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 335
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 336
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 337
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 338
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 339
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: multipart/form-data; boundary=AAA
--AAA
Content-Type: application/json
Content-Disposition: form-data
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 340
"envelopeTemplateDefinition": {
"templateId": "String content",
"name": "String content",
"shared": "String content",
"password": "String content",
"description": "String content",
"lastModified": "String content",
"pageCount": "String content",
"folderName": "String content",
"folderId": "String content",
"owner": {
"userName": "String content",
"email": "String content",
"userId": "String content",
"userType": "String content",
"userStatus": "String content",
}
}
"allowMarkup":"String content",
"allowReassign":"String content",
"allowRecipientRecursion":"String content",
"asynchronous":"String content",
"authoritativeCopy":""String content",
"autoNavigation":"String content",
"emailBlurb":"String content",
"emailSubject":"String content",
"enableWetSign":"String content",
"enforceSignerVisibility":"String content",
"signingLocation":"String content",
"envelopeIdStamping":"String content",
"eventNotification":{
"url":"String content",
"loggingEnabled":"String content",
"requireAcknowledgment":"String content",
"useSoapInterface":"String content",
"soapNameSpace" : " String content",
"includeCertificateWithSoap" : " String content",
"signMessageWithX509Cert":"String content",
"includeDocuments":"String content",
"includeEnvelopeVoidReason": "String content",
"includeTimeZone": " String content",
"includeSenderAccountAsCustomField" : " String content",
"includeDocumentFields": " String content",
"includeCertificateOfCompletion": " String content"
"envelopeEvents" : [
{
"envelopeEventStatusCode" : "sent"
},
{
"envelopeEventStatusCode" : "completed",
"includeDocuments" : "true"
}
],
"recipientEvents" : [
{
"recipientEventStatusCode" : "Sent"
},
{
"recipientEventStatusCode" : "completed",
"includeDocuments" : "true"
}
]
},
"customFields":{
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 341
"listCustomFields":[{
"name":"String content",
"required":"String content",
"show":"String content",
"value":"String content",
"listItems":["String content"]
}],
"textCustomFields":[{
"name":"String content",
"required":"String content",
"show":"String content",
"value":"String content",
}]
},
"notification": {
"useAccountDefaults": "sample string 1",
"reminders": {
"reminderEnabled": "sample string 1",
"reminderDelay": "sample string 2",
"reminderFrequency": "sample string 3"
},
"expirations": {
"expireEnabled": "sample string 1",
"expireAfter": "sample string 2",
"expireWarn": "sample string 3"
}
},
"documents": [{
"documentId": "1",
"name": "test1.pdf"
}],
"recipients": {
"signers": [{
"accessCode": "",
"addAccessCodeToEmail": false,
"clientUserId": null,
"customFields": null,
"emailNotification": null,
"idCheckConfigurationName": null,
"idCheckInformationInput": null,
"inheritEmailNotificationConfiguration": false,
"note": "",
"phoneAuthentication": null,
"recipientAttachments": null,
"recipientId": "1",
"requireIdLookup": false,
"roleName": "Signer 1",
"routingOrder": 1,
"socialAuthentications": null,
"templateAccessCodeRequired": false,
"templateLocked": false,
"templateRequired": false,
"email": "",
"name": "",
"autoNavigation": false,
"defaultRecipient": false,
"signatureInfo": null,
"tabs": {
"approveTabs": null,
"checkboxTabs": null,
"companyTabs": null,
"dateSignedTabs": null,
"dateTabs": null,
"declineTabs": null,
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 342
"emailTabs": null,
"envelopeIdTabs": null,
"fullNameTabs": null,
"initialHereTabs": null,
"listTabs": null,
"noteTabs": null,
"numberTabs": null,
"radioGroupTabs": null,
"signHereTabs": [{
"anchorString": null,
"anchorXOffset": null,
"anchorYOffset": null,
"anchorIgnoreIfNotPresent": null,
"anchorUnits": null,
"conditionalParentLabel": null,
"conditionalParentValue": null,
"documentId": "1",
"pageNumber": "1",
"recipientId": "1",
"templateLocked": false,
"templateRequired": false,
"xPosition": "157",
"yPosition": "7",
"name": "Sign Here",
"optional": false,
"scaleValue": 1,
"tabLabel": "Signature 1"
}],
"signerAttachmentTabs": null,
"ssnTabs": null,
"textTabs": null,
"titleTabs": null,
"zipTabs": null
}
},
{
"accessCode": "",
"addAccessCodeToEmail": false,
"customFields": null,
"emailNotification": null,
"idCheckConfigurationName": null,
"idCheckInformationInput": null,
"inheritEmailNotificationConfiguration": false,
"note": "",
"phoneAuthentication": null,
"recipientAttachments": null,
"recipientCaptiveInfo": null,
"recipientId": "2",
"requireIdLookup": false,
"roleName": "Signer 2",
"routingOrder": 1,
"socialAuthentications": null,
"templateAccessCodeRequired": false,
"templateLocked": false,
"templateRequired": false,
"email": "",
"name": "",
"autoNavigation": false,
"defaultRecipient": false,
"signatureInfo": null,
"tabs": {
"approveTabs": null,
"checkboxTabs": null,
"companyTabs": null,
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 343
"dateSignedTabs": null,
"dateTabs": null,
"declineTabs": null,
"emailTabs": null,
"envelopeIdTabs": null,
"fullNameTabs": null,
"initialHereTabs": null,
"listTabs": null,
"noteTabs": null,
"numberTabs": null,
"radioGroupTabs": null,
"signHereTabs": [{
"anchorString": null,
"anchorXOffset": null,
"anchorYOffset": null,
"anchorIgnoreIfNotPresent": null,
"anchorUnits": null,
"conditionalParentLabel": null,
"conditionalParentValue": null,
"documentId": "1",
"pageNumber": "1",
"recipientId": "2",
"templateLocked": false,
"templateRequired": false,
"xPosition": "351",
"yPosition": "12",
"name": "Sign Here",
"optional": false,
"scaleValue": 1,
"tabLabel": "Signature 2"
}],
"signerAttachmentTabs": null,
"ssnTabs": null,
"textTabs": null,
"titleTabs": null,
"zipTabs": null
}
}]
},
}
--AAA
Content-Type: application/pdf
Content-Disposition: file; filename="test1.pdf"; documentId=1
Response
The response returns the template name, template ID and template uri.
The following example shows the header followed by the response json body.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 344
Get Template
This retrieves the definition of the specified template.
URL:
/accounts/{accountId}/templates/{templateId}
Formats:
XML, JSON
HTTP Method:
GET
Parameters:
The only required parameter is the template ID.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
Response
The response returns the template definition of the requested template, along with information about
when the template last modified and which user modified the template. Refer to Post Template for
information about the template parameters.
The following example shows the response json body.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 345
Modify a Template
This allows users to modify an existing template.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 346
URL:
/accounts/{accountId}/templates/{templateId}
Formats:
XML, JSON
HTTP Method:
PUT
Parameters:
This uses the same parameters as creating a new template, but only the parameters being changed
are required. Refer to Post Template for information about the template parameters.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
--AAA
Content-Type: application/json
Content-Disposition: form-data
{
"envelopeTemplateDefinition": {
"templateId": "String content",
"name": "String content",
"shared": "String content",
"password": "String content",
"description": "String content",
"lastModified": "String content",
"pageCount": "String content",
"folderName": "String content",
"folderId": "String content",
"owner": {
"userName": "String content",
"email": "String content",
"userId": "String content",
"userType": "String content",
"userStatus": "String content",
}
}
"allowMarkup":"String content",
"allowReassign":"String content",
"allowRecipientRecursion":"String content",
"asynchronous":"String content",
"authoritativeCopy":""String content",
"autoNavigation":"String content",
"emailBlurb":"String content",
"emailSubject":"String content",
"enableWetSign":"String content",
"enforceSignerVisibility":"String content",
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 347
"signingLocation":"String content",
"envelopeIdStamping":"String content",
"eventNotification":{
"url":"String content",
"loggingEnabled":"String content",
"requireAcknowledgment":"String content",
"useSoapInterface":"String content",
"soapNameSpace" : "http://DocuSignConnectListener",
"includeCertificateWithSoap" : "true",
"envelopeEvents" : [{
"envelopeEventStatusCode" : "sent"
},
{
"envelopeEventStatusCode" : "completed",
"includeDocuments" : "true"
}]
}],
"customFields":{
"listCustomFields":[{
"name":"String content",
"required":"String content",
"show":"String content",
"value":"String content",
"listItems":["String content"]
}],
"textCustomFields":[{
"name":"String content",
"required":"String content",
"show":"String content",
"value":"String content",
}]
},
"notification": {
"useAccountDefaults": "sample string 1",
"reminders": {
"reminderEnabled": "sample string 1",
"reminderDelay": "sample string 2",
"reminderFrequency": "sample string 3"
},
"expirations": {
"expireEnabled": "sample string 1",
"expireAfter": "sample string 2",
"expireWarn": "sample string 3"
}
},
"documents": [{
"documentId": "1",
"name": "test1.pdf"
}],
"recipients": {
"signers": [{
"accessCode": "",
"addAccessCodeToEmail": false,
"clientUserId": null,
"customFields": null,
"emailNotification": null,
"idCheckConfigurationName": null,
"idCheckInformationInput": null,
"inheritEmailNotificationConfiguration": false,
"note": "",
"phoneAuthentication": null,
"recipientAttachments": null,
"recipientId": "1",
"requireIdLookup": false,
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 348
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 349
"recipientCaptiveInfo": null,
"recipientId": "2",
"requireIdLookup": false,
"roleName": "Signer 2",
"routingOrder": 1,
"socialAuthentications": null,
"templateAccessCodeRequired": false,
"templateLocked": false,
"templateRequired": false,
"email": "",
"name": "",
"autoNavigation": false,
"defaultRecipient": false,
"signatureInfo": null,
"tabs": {
"approveTabs": null,
"checkboxTabs": null,
"companyTabs": null,
"dateSignedTabs": null,
"dateTabs": null,
"declineTabs": null,
"emailTabs": null,
"envelopeIdTabs": null,
"fullNameTabs": null,
"initialHereTabs": null,
"listTabs": null,
"noteTabs": null,
"numberTabs": null,
"radioGroupTabs": null,
"signHereTabs": [{
"anchorString": null,
"anchorXOffset": null,
"anchorYOffset": null,
"anchorIgnoreIfNotPresent": null,
"anchorUnits": null,
"conditionalParentLabel": null,
"conditionalParentValue": null,
"documentId": "1",
"pageNumber": "1",
"recipientId": "2",
"templateLocked": false,
"templateRequired": false,
"xPosition": "351",
"yPosition": "12",
"name": "Sign Here",
"optional": false,
"scaleValue": 1,
"tabLabel": "Signature 2"
}],
"signerAttachmentTabs": null,
"ssnTabs": null,
"textTabs": null,
"titleTabs": null,
"zipTabs": null
}
}]
},
}
--AAA
Content-Type: application/pdf
Content-Disposition: file; filename="test1.pdf"; documentId=1
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 350
Response
The response returns success or failure and the template information.
The following example shows the header followed by the response json body.
URL:
/accounts/{accountId}/templates/{templateId}/views/edit
Formats:
XML, JSON
HTTP Method:
POST
Parameters:
Note: When locking a template, the templateId is used in place of the envelopeId.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 351
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
{
"returnUrl":"String content"
}
Response
The response returns the template edit URL.
When using the response URL you can set the default UI page shown to a user by using the send
query string parameter on the end of the URL. Setting send=0 starts the user on the prepare page
where the sender can add documents and recipients, while setting send=1 starts the user on the
tagging page. The setting defaults to the prepare page.
Example: For the URL - https://docusign.net/Member/StartInSession.aspx?send=1
The user will start on the tagging page of the template view.
The following example shows the response json body.
{
"url":"string"
}
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 352
URL:
/accounts/{accountId}/templates/{templateId}/documents/{documentId}/fields
Formats:
XML, JSON
HTTP Method:
GET
Parameters:
No additional parameters are required.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
Response
The response returns the custom document field name-value pairs for the requested document ID.
Examples of the response body for json and XML are shown below.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 353
<documentFieldsInformation xmlns:i="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.docusign.com/restapi">
<documentFields>
<nameValue>
<name>sample string</name>
<value>sample string</value>
</nameValue>
<nameValue>
<name>sample string</name>
<value>sample string</value>
</nameValue>
</documentFields>
</documentFieldsInformation>
URL:
/accounts/{accountId}/templates/{templateId}/documents/{documentId}/fields
Formats:
XML, JSON
HTTP Method:
POST
Parameters:
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 354
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
{
"documentFields": [
{
"name": "sample string 1",
"value": "sample string 2",
},
{
"name": "sample string 1",
"value": "sample string 2",
}
]
}
Response
The response returns the custom document field name-value pairs added to the document and any
errors associated with the fields.
Examples of the response body for json and XML are shown below.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 355
URL:
/accounts/{accountId}/templates/{templateId}/documents/{documentId}/fields
Formats:
XML, JSON
HTTP Method:
PUT
Parameters:
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 356
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
{
"documentFields": [
{
"name": "sample string 1",
"value": "sample string 2",
},
{
"name": "sample string 1",
"value": "sample string 2",
}
]
}
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 357
Response
The response returns the modified custom document field name-value pairs for the document and any
errors associated with the fields.
Examples of the response body for json and XML are shown below.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 358
URL:
/accounts/{accountId}/templates/{templateId}/documents/{documentId}/fields
Formats:
XML, JSON
HTTP Method:
DELETE
Parameters:
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
{
"documentFields": [
{
"name": "sample string 1",
"value": "sample string 2",
},
{
"name": "sample string 1",
"value": "sample string 2",
}
]
}
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 359
Response
The response returns success or failure and any error messages. The response also returns the list
of custom document field name-value pairs that were removed from the document.
Examples of the response body for json and XML are shown below.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 360
<name>sample string</name>
<value>sample string</value>
</nameValue>
<nameValue>
<errorDetails>
<errorCode>sample string</errorCode>
<message>sample string</message>
</errorDetails>
<name>sample string</name>
<value>sample string</value>
</nameValue>
</documentFields>
</documentFieldsInformation>
URL:
/accounts/{accountId}/templates/{templateId}/groups
Formats:
XML, JSON
HTTP Method:
PUT
Parameters:
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
{
"groups":[{
"groupId":"String content",
}]
}
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 361
Response
The response returns if the API execution is successful (200 – OK) or failed. The response contains a
group structure similar to the request. If an error occurred during the PUT operation for any of the
groups, that group will contain an errorDetails node with an errorCode and message.
The following example shows the response json body.
URL:
/accounts/{accountId}/templates/{templateId}/groups
Formats:
XML, JSON
HTTP Method:
DELETE
Parameters:
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 362
{
"groups":[{
"groupId":"String content",
}]
}
Response
The response returns if the API execution is successful (200 – OK) or failed. The response contains a
group structure similar to the request. If an error occurred during the DELETE operation for any of the
groups, that group will contain an errorDetails node with an errorCode and message.
The following example shows the response json body.
URL:
/accounts/{accountId}/templates/{templateId}/recipients
Optional query items: include_tabs={true or false}, include_extended={true or false},
include_anchor_tab_locations={true or false}
Formats:
XML, JSON
HTTP Method:
GET
Parameters:
There are no required parameters, but the following optional query parameters can be added.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 363
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
Response
The response returns the recipients in the template. The recipient information includes the recipient
name, email, ID, recipient type, routing order, tab information (if included in the query), and delivery
method.
The following example shows the response json body.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 364
}]
}
URL:
/accounts/{accountId}/templates/{templateId}/recipients/{recipientId}/bulk_recipients
Formats:
XML, JSON
HTTP Method:
PUT
Parameters:
The only required parameters are the template ID and recipient ID.
The parameters listed below are the supported fields for the csv file being added to the template. The
first row of the csv file is the header row that must have the field names for the file. Each subsequent
row represents a unique recipient with the information for that recipient.
There can be a maximum of 1,000 rows in the bulk recipient csv file.
If the value you are adding has a comma or double-quotation marks (“), the value must be enclosed in
double-quotation marks (“). Example: if you have a Text tab with a tabLabel of Group and one of the
entries for a recipient is Inside Sales, NE, the would use “Inside Sales, NE” in the Group column for
that recipient.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 365
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 366
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Content-Type: application/json
Content-Disposition: file;filename={file name};fileExtension=.csv
Response
The response returns the recipient information for each row of the bulk recipient csv file, the total
number of recipients in the file, and the bulkRecipientUri.
Example Response
{
"bulkRecipients": [
{
"rowNumber": "string",
"email": "string",
"name": "string",
"note": "string",
"accessCode": "string",
"identification": "string",
"phoneNumber": "string",
"tabLabels": [
{
"name": "string,"
"value": "string"
}
]
},
{
"rowNumber": "string",
"email": "string",
"name": "string",
"note": "string",
"accessCode": "string",
"identification": "string",
"phoneNumber": "string",
"tabLabels": [
{
"name": "string,
"value": "string"
}
]
}
],
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 367
"bulkRecipientsCount": "string",
"bulkRecipientsUri": "string"
}
URL:
/accounts/{accountId}/templates/{templateId}/recipients/{recipientId}/bulk_recipients
Formats:
XML, JSON
HTTP Method:
GET
Parameters:
The only required parameters are the template ID and recipient ID.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integ
ratorKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
Response
The response returns the recipient information for each row of the bulk recipient csv file, the total
number of recipients in the file, and the bulkRecipientUri.
The following example shows the response json body.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 368
"name": "string,"
"value": "string"
}
]
},
{
"rowNumber": "string",
"email": "string",
"name": "string",
"note": "string",
"accessCode": "string",
"identification": "string",
"phoneNumber": "string",
"tabLabels": [
{
"name": "string,
"value": "string"
}
]
}
],
"bulkRecipientsCount": "string",
"bulkRecipientsUri": "string"
}
URL:
/accounts/{accountId}/templates/{templateId}/recipients/{recipientId}/bulk_recipients
Formats:
XML, JSON
HTTP Method:
DELETE
Parameters:
The only required parameters are the template ID and recipient ID.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integ
ratorKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 369
Content-Type: application/json
Response
The response returns a success or failure.
URL:
/accounts/{accountId}/templates/{templateId}/recipients/{recipientId}/tabs
Optional query item: include_anchor_tab_locations={true or false}
Formats:
XML, JSON
HTTP Method:
GET
Parameters:
There are no required parameters, but the following optional query parameters can be added.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
Response
The response returns a list of tabs associated with the recipient. The tab information includes a tabId
that can be used when deleting a tab.
The following example shows the response json body.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 370
URL:
/accounts/{accountId}/unsupported_file_types
Formats:
XML, JSON
HTTP Method:
GET
Parameters:
No additional parameters are required.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
Response
The response returns a list of the file extensions and mime types that are not supported.
The following example shows the response json body.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 371
"mimeType":"String content"
},
{
"fileExtension":"String content",
"mimeType":"String content"
}
]
}
URL:
/accounts/{accountId}/users
Formats:
XML, JSON
HTTP Method:
POST
Parameters:
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 372
userSettings:
The userSettings determine the actions users can take in the account.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 373
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 374
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 375
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 376
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
{
"newUsers":[{
"activationAccessCode":"String content",
"email":"String content",
"enableConnectForUser":"String content",
"firstName":"String content",
"forgottenPasswordInfo":{
"forgottenPasswordAnswer1":"String content",
"forgottenPasswordAnswer2":"String content",
"forgottenPasswordAnswer3":"String content",
"forgottenPasswordAnswer4":"String content",
"forgottenPasswordQuestion1":"String content",
"forgottenPasswordQuestion2":"String content",
"forgottenPasswordQuestion3":"String content",
"forgottenPasswordQuestion4":"String content"
},
"groupList": [
{
"groupId": "string content",
"groupName": "string content",
"permissionProfileId": "string content",
"groupType": "string content"
},
{
"groupId": "string content",
"groupName": "string content",
"permissionProfileId": "string content",
"groupType": "string content"
}
],
"lastName":"String content",
"middleName":"String content",
"password":"String content",
"sendActivationOnInvalidLogin":"String content",
"suffixName":"String content",
"title":"String content",
"userName":"String content",
"userSettings":[{
"name":"String content",
"value":"String content"
}]
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 377
}]
}
Response
The response returns the new user’s information.
The following example shows the response json body.
URL:
/accounts/{accountId}/users
Optional query additions: additional_info={true/false}, start_position={integer}, count={integer}
Formats:
XML, JSON
HTTP Method:
GET
Parameters:
There are no required parameters, but the following optional query can be added to provide additional
information in the response.
Name Reqd? Type Description
additional_info No Boolean When true, the full list of user information is
returned for each user in the account.
start_position No Integer Starting value for the list.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 378
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
Response
The response returns the list of users for the account along with the information about the result set. If
the additional_info query was added to the URL and set to true, the full user information is returned for
each user.
Name Description
resultSetSize Total number users returned in the result set.
totalSetSize Total number users in the account.
startPosition Starting position of the current result set.
endPosition The last position in the result set.
nextUri Provides the Uri to the next chunk of records based on the
request. If the endPosition is the entire results of the search, this
is null.
previousUri Provides the Uri to the previous chunk of records based on the
request. If this response is the first response for the search, this is
null.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 379
"userSettings": [
{
"name": "String content",
"value": "String content"
}
],
"sendActivationOnInvalidLogin": "String content",
"activationAccessCode": "String content",
"enableConnectForUser": "String content",
"forgottenPasswordInfo": {
"forgottenPasswordQuestion1": "String content",
"forgottenPasswordAnswer1": "String content",
"forgottenPasswordQuestion2": "String content",
"forgottenPasswordAnswer2": "String content",
"forgottenPasswordQuestion3": "String content",
"forgottenPasswordAnswer3": "String content",
"forgottenPasswordQuestion4": "String content",
"forgottenPasswordAnswer4": "String content"
},
"groupList": [
{
"groupId": "String content",
"groupName": "String content",
"permissionProfileId": "String content",
"groupType": "String content"
}
],
"workAddress": {
"address1": "String content",
"address2": "String content",
"city": "String content",
"stateOrProvince": "String content",
"postalCode": "String content",
"phone": "String content",
"fax": "String content",
"country": "String content"
},
"homeAddress": {},
"loginStatus": "String content",
"passwordExpiration": "String content",
"lastLogin": "String content"
"customSettings": [
{}
],
"profileImageUri": "String content",
"userProfileLastModifiedDate": " String content",
"signatureImageUri": " String content",
"initialsImageUri": " String content"
}
],
"resultSetSize": "String Content",
"totalSetSize": "String Content",
"startPosition": "String Content",
"endPosition": "String Content",
"nextUri": "String Content",
"previousUri": "String Content"
}
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 380
Close a User
This closes one or more user records in the account. Users are never deleted from an account, but
closing a user prevents them from using account functions.
URL:
/accounts/{accounted}/users
Formats:
XML, JSON
HTTP Method:
DELETE
Parameters:
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
{
"users":[{
"userId":"String content",
"userName":"String content"
}]
}
Response
The response returns if the API execution is successful (200 – OK) or failed. The response contains a
user structure similar to the request and includes the user changes. If an error occurred during the
DELETE operation for any of the users, that user will contain an errorDetails node with an errorCode
and message.
The following example shows the response json body.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 381
URL:
/accounts/{accountId}/users/{userId}
Optional query string: additional_info={true/false}
Formats:
XML, JSON
HTTP Method:
GET
Parameters:
There are no required parameters, but the following optional query can be added to provide additional
information in the response.
Name Reqd? Type Description
additional_info No Boolean When true, the full list of user information is
returned for the user. This includes when a
user last logged on to the system, when the
user’s password will expire (if the account
has set expiration times), and the user’s
current password status in the response.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 382
Content-Type: application/json
Response
The response returns the user information.
If the query string additional_info=true is included, the following user information is included in the
response.
The following example shows the response json body with the query string additional_info=true.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 383
URL:
/accounts/{accountId}/users/{userId}/cloud_storage
Optional query parameter: redirectUrl={someURL}
Formats:
XML, JSON
HTTP Method:
GET
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 384
Parameters:
There are no required parameters, but the following optional query parameter can be added to the
request.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
Response
The response provides a list of the cloud storage providers for the user and shows if the user has
passed authentication with provider.
Value Description
serviceId The DocuSign generated ID for the cloud storage provider.
This information is only included in the response if the user has
passed authentication for the cloud storage provider.
service The service name for the cloud storage provider.
authenticationUrl The authentication URL used for the cloud storage provider.
This information is only included in the response if the user has
not passed authentication for the cloud storage provider.
If the redirectUrl query string is provided, the returnUrl is
appended to the authenticationUrl.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 385
"serviceId": "4136",
"service": "DropBox"
},
{
"service": "Box",
"authenticationUrl": "BoxAuthenticationUrl"
}
]
}
URL:
/accounts/{accountId}/users/{userId}/cloud_storage
Formats:
XML, JSON
HTTP Method:
POST
Parameters:
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
{
"storageProviders": [
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 386
{
"service": "string",
"redirectUrl": "string"
},
{
"service": "string",
"redirectUrl": "string"
}
]
}
Response
The response returns a success or failure, along with the serviceId and authenticationUrl for the cloud
storage providers.
The following example shows the response json body.
URL:
/accounts/{accountId}/users/{userId}/cloud_storage
Formats:
XML, JSON
HTTP Method:
DELETE
Parameters:
Either service or serviceId must be included. Using “all” in service or serviceId deletes the user
authentication information for all cloud storage providers.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 387
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
{
"storageProviders": [
{
"serviceId": "4136"
},
{
"service": "Box"
}
]
}
Response
The response returns the list of cloud storage providers for which authentication has been removed.
The following example shows the response json body.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 388
URL:
/accounts/{accountId}/users/{userId}/cloud_storage/{serviceId}
Optional query parameter: redirectUrl={someURL}
Note: The {serviceId} can be either the service name or serviceId.
Formats:
XML, JSON
HTTP Method:
GET
Parameters:
There are no required parameters. The following optional query parameter can be added to the
request.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
Response
The response returns the cloud storage provider information for the user and shows if the user has
passed authentication with provider.
Value Description
serviceId The DocuSign generated ID for the cloud storage provider.
This information is only included in the response if the user has
passed authentication for the cloud storage provider.
service The service name for the cloud storage provider.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 389
Value Description
authenticationUrl The authentication URL used for the cloud storage provider.
This information is only included in the response if the user has
not passed authentication for the cloud storage provider.
If the redirectUrl query string is provided, the returnUrl is
appended to the authenticationUrl.
URL:
/accounts/{accountId}/users/{userId}/cloud_storage/{serviceId}
Note: The {serviceId} can be either the service name or serviceId.
Formats:
XML, JSON
HTTP Method:
DELETE
Parameters:
Using “all” in service or serviceId deletes the user authentication information for all cloud storage
providers.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 390
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
{
"storageProviders": [
{
"serviceId": "4136"
}
]
}
Response
The response returns the cloud storage provider for which authentication has been removed.
The following example shows the response json body.
URL:
/accounts/{accountId}/users/{userId}/cloud_storage/{serviceId}/folders
Optional query parameters: cloud_storage_folder_path={comma separated list of folder IDs},
start_position={integer}, count={integer}, order={asc/desc}, order_by={modified/name}
Note: The {serviceId} can be either the service name or serviceId.
Formats:
XML, JSON
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 391
HTTP Method:
GET
Parameters:
There are no required parameters, but the following optional query parameter can be added to the
request.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
Response
The response returns a list of all items in all folders with the selected cloud storage provider.
Value Description
name The name of the searched location.
id The cloud storage provider ID for the searched location.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 392
Value Description
totalSetSize The total number of items in the searched location.
resultSetSize The number of items returned in the current request.
startPosition The starting position of the current result set.
endPosition The end position of the current result set.
Items This is a list of the items in the searched location. The list can
include the following information:
Note: The information presented depends on the item type.
Additionally, some cloud storage providers do not provide all
the information.
name: The name of the item.
id: The cloud storage provider ID for the item. This is the
information used as the remoteUrl when trying to add the
file as a document to an envelope.
date: The date the item was last modified.
type: Shows if the item is a file or a folder.
uri: The uri for the item.
size: The size (in bytes) of the item.
supported: A true or false value. When false the file type is
included in the list of unsupported file types and cannot be
included in a DocuSign envelope. When true, the file type
is not included in the list of unsupported file types and might
be able to be included in a DocuSign envelope.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 393
{
"name": "parking.pdf",
"id": "1911:26490ea3-f725-4cb1-8e86-8275d93a1712:parking.pdf",
"date": "2014-03-12T08:32:00.0000000Z",
"type": "file",
"size": "233400",
"supported": "true"
}
]
}
URL:
/accounts/{accountId}/users/{userId}/cloud_storage/{serviceId}/folders/{folderId}
Optional query parameters: start_position={integer}, count={integer}, order={asc/desc},
order_by={modified/name}
Note: The {serviceId} can be either the service name or serviceId. The {folderId} can be a folder
ID or “allfilesandfolders” to retrieve all items.
Formats:
XML, JSON
HTTP Method:
GET
Parameters:
There are no required parameters, but the following optional query parameter can be added to the
request.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 394
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
Response
The response returns a list of all items in all folders with the selected cloud storage provider.
Value Description
name The name of the searched location.
id The cloud storage provider ID for the searched location.
totalSetSize The total number of items in the searched location.
resultSetSize The number of items returned in the current request.
startPosition The starting position of the current result set.
endPosition The end position of the current result set.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 395
Value Description
Items This is a list of the items in the searched location. The list can
include the following information:
Note: The information presented depends on the item type.
Additionally, some cloud storage providers do not provide all
the information.
name: The name of the item.
id: The cloud storage provider ID for the item. This is the
information used as the remoteUrl when trying to add the
file as a document to an envelope.
date: The date the item was last modified.
type: Shows if the item is a file or a folder.
uri: The uri for the item.
size: The size (in bytes) of the item.
supported: A true or false value. When false the file type is
included in the list of unsupported file types and cannot be
included in a DocuSign envelope. When true, the file type
is not included in the list of unsupported file types and might
be able to be included in a DocuSign envelope.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 396
URL:
/accounts/{accountId}/users/{userId}/custom_settings
Formats:
XML, JSON
HTTP Method:
GET
Parameters:
No additional parameters are required.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
Response
The response returns the list of the custom name/value pairs for the specified user that are not in a
group.
The following example shows the response json body.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 397
URL:
/accounts/{accountId}/users/{userId}/custom_settings
Formats:
XML, JSON
HTTP Method:
PUT
Parameters:
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 398
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
X-DocuSign-User-Settings-Key:group_name
{
"customSettings":[{
"name":"String content",
"value":"String content",
},
{
"name":"String content",
"value":"String content"
}]
}
Response
The response returns a success or failure message and a list of the added or updated user custom
settings.
The following example shows the response json body.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 399
URL:
/accounts/{accountId}/users/{userId}/custom_settings
Formats:
XML, JSON
HTTP Method:
DELETE
Parameters:
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
{
"customSettings":[{
"name":"String content",
"value":"String content",
},
{
"name":"String content",
"value":"String content"
}]
}
Response
The response returns a success or failure and the list of the custom name/value pairs that were
deleted.
The following example shows the response json body.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 400
URL:
/accounts/{accountId}/users/{userId}/profile
Note: The userId specified in the uri must match the authenticated user’s userId and the user
must be a member of the account.
Formats:
XML, JSON
HTTP Method:
GET
Parameters:
No additional parameters are required.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
Response
The response returns the user profile information from the user’s ID card. The User Profile contains
the following information.
Name Description
address The user’s address information. A complex element consisting
of the optional elements: address1, address2, city, country, fax,
phone, postalCode, stateOrProvince.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 401
displayProfile When true, the user’s ID card can be viewed from signed
documents and envelope history.
displayUsageHistory When true, the user’s usage information is shown on the ID
card.
title The user’s Title information.
usageHistory A complex element consisting of:
lastSentDateTime – the date and time the user last sent an
envelope.
lastSignedDateTime – the date and time the user last
signed an envelope.
sentCount – the number of envelopes the user has sent.
signedCount – the number of enevelopes the user has
signed.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 402
}
"userDetails":{
"firstName":"String content",
"lastName":"String content",
"middleName":"String content",
"suffixName":"String content",
"title":"String content",
}
}
URL:
/accounts/{accountId}/users/{userId}/profile
Note: The userId specified in the uri must match the authenticated user’s userId and the user
must be a member of the account.
Formats:
XML, JSON
HTTP Method:
PUT
Parameters:
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 403
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 404
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
{
"address":{
"address1":"String content",
"address2":"String content",
"city":"String content",
"country":"String content",
"fax":"String content",
"phone":"String content",
"postalCode":"String content",
"stateOrProvince":"String content"
},
"authenticationMethods":[{
"authenticationType":"String content",
"lastProvider":"String content",
"lastTimestamp":"String content",
"totalCount":2147483647
}],
"companyName":"String content",
"displayOrganizationInfo":"String content",
"displayPersonalInfo":"String content",
"displayProfile":"String content",
"displayUsageHistory":"String content",
"title":"String content",
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 405
"usageHistory":{
"lastSentDateTime":"String content",
"lastSignedDateTime":"String content",
"sentCount":2147483647,
"signedCount":2147483647
}
"userDetails":{
"firstName":"String content",
"lastName":"String content",
"middleName":"String content",
"suffixName":"String content",
"title":"String content",
"userName":"String content"
}
}
Response
The response returns success or failure.
URL:
/accounts/{accountId}/users/{userId}/profile/image
Note: The userId specified in the uri must match the authenticated user’s userId and the user
must be a member of the account.
Formats:
XML, JSON
HTTP Method:
GET
Parameters:
No additional parameters are required.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 406
Response
If successful, the response returns a 200 – OK and the user profile image.
URL:
/accounts/{accountId}/users/{userId}/profile/image
Note: The userId specified in the uri must match the authenticated user’s userId and the user
must be a member of the account.
Formats:
XML, JSON
HTTP Method:
PUT
Parameters:
The only item needed is the image.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: image/x-ms-bmp
<image removed>
Response
The response returns a success (200 – OK) or failure.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 407
URL:
/accounts/{accountId}/users/{userId}/profile/image
Note: The userId specified in the uri must match the authenticated user’s userId and the user
must be a member of the account.
Formats:
XML, JSON
HTTP Method:
DELETE
Parameters:
No additional parameters are required.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Response
The response returns a success (200 – OK) or failure.
URL:
/accounts/{accountId}/users/{userId}/settings
Formats:
XML, JSON
HTTP Method:
GET
Parameters:
No additional parameters are required.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 408
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Response
The response returns the account setting name/value information and the email notification settings
for the specified user. See the userSettings list for more information about the different user settings.
The following example shows the response json body.
URL:
/accounts/{accountId}/users/{userId}/settings
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 409
Formats:
XML, JSON
HTTP Method:
PUT
Parameters:
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 410
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
{
"userSettings": [
{
"name": "string",
"value": "string",
}
],
"signerEmailNotifications": {
"envelopeActivation": " string ",
"envelopeComplete": " string",
"carbonCopyNotification": "string",
"certifiedDeliveryNotification": "string",
"envelopeDeclined": "string",
"envelopeVoided": "string",
"envelopeCorrected": "string",
"reassignedSigner": "string",
"purgeDocuments": "string",
"faxReceived": "string",
"documentMarkupActivation": "string",
"agentNotification": "string"
},
"senderEmailNotifications": {
"envelopeComplete": "string",
"changedSigner": "string",
"senderEnvelopeDeclined": "string",
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 411
"withdrawnConsent": "string",
"recipientViewed": "string",
"deliveryFailed": "string"
}
}
Response
The response returns success or failure.
URL:
/accounts/{accountId}/users/{userId}/signatures
Note: The userId specified in the uri must match the authenticated user’s userId and the user
must be a member of the account.
Since the {signatureName} is a string name of a user that likely includes spaces, you might need
to URL encode the signatureName before using the URL.
For example: "Bob Smith" to "Bob%20Smith"
Formats:
XML, JSON
HTTP Method:
GET
Parameters:
No additional parameters are required.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Response
The response returns a list of signatures for the user and shows which signature is the default
signature for the user.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 412
}]
[{
"signatureId":"String content",
"adoptedDateTime":"String content",
"createdDateTime":"String content",
"initialsImageUri":"String content",
"signatureFont":"String content",
"signatureImageUri":"String content",
"signatureInitials":"String content",
"signatureName":"String content",
"signatureType":"String content",
"signature150ImageId":"String content",
"initials150ImageId":"String content",
"isDefault": "String content"
}]
}
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 413
URL:
/accounts/{accountId}/users/{userId}/signatures
Note: The userId specified in the uri must match the authenticated user’s userId and the user
must be a member of the account.
Formats:
XML, JSON
HTTP Method:
POST
Parameters:
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
{
"userSignatures": [{
"signatureFont": "7_DocuSign",
"signatureInitials": "R T20121127083847",
"signatureName": "Ron Test20121127083847",
}]
}
POST https://{server}/restapi/{apiVersion}/accounts/{accountId}/users/{userId}/
signatures
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 414
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: multipart/form-data; boundary=AAA
-AAA
Content-Type: application/json
Content-Disposition: form-data
{
"userSignatures":[{
"signatureFont":"7_DocuSign",
"signatureInitials":"R T20121127083900",
"signatureName":"Ron Test20121127083900"
]}
}
-AAA
Content-Type: image/gif
Content-Disposition: file;filename="Ron Test20121127083900"
Content-Transer-Encoding: base64
Response
The response returns a success or failure and signature information.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 415
URL:
/accounts/{accountId}/users/{userId}/signatures/{signatureIdOrName}
Note: The userId specified in the uri must match the authenticated user’s userId and the user
must be a member of the account.
The {signatureIdOrName} accepts signature ID or signature name. DocuSign recommends you
use signature ID (signatureId), since some names contain characters that don’t properly URL
encode. If you use the user name, it is likely that the name includes spaces and you might need
to URL encode the name before using the URL. For example: "Bob Smith" to "Bob%20Smith"
Formats:
XML, JSON
HTTP Method:
GET
Parameters:
No additional parameters are required.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Response
The response returns information for the request user signature. The following example shows the
response json body.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 416
URL:
/accounts/{accountId}/users/{userId}/signatures/{signatureIdOrName}
Optional query string: close_existing_signature={true or false} when true, this will close the current
signature.
Note: The userId specified in the uri must match the authenticated user’s userId and the user
must be a member of the account.
The {signatureIdOrName} accepts signature ID or signature name. DocuSign recommends you
use signature ID (signatureId), since some names contain characters that don’t properly URL
encode. If you use the user name, it is likely that the name includes spaces and you might need
to URL encode the name before using the URL. For example: "Bob Smith" to "Bob%20Smith"
Formats:
XML, JSON
HTTP Method:
PUT
Parameters:
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 417
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
{
"signatureFont":"String content",
"signatureId":"String content",
"signatureInitials":"String content",
"signatureName":"String content"
}
Response
The response returns a success or failure and signature name information.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 418
URL:
/accounts/{accountId}/users/{userId}/signatures/{signatureIdOrName}
Note: The userId specified in the uri must match the authenticated user’s userId and the user
must be a member of the account.
The {signatureIdOrName} accepts signature ID or signature name. DocuSign recommends you
use signature ID (signatureId), since some names contain characters that don’t properly URL
encode. If you use the user name, it is likely that the name includes spaces and you might need
to URL encode the name before using the URL. For example: "Bob Smith" to "Bob%20Smith"
Formats:
XML, JSON
HTTP Method:
DELETE
Parameters:
No additional parameters are required.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Response
The response returns a success or failure.
URL:
/accounts/{accountId}/users/{userId}/signatures/{signatureIdOrName}/initials_image
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 419
Note: The userId specified in the uri must match the authenticated user’s userId and the user
must be a member of the account.
The {signatureIdOrName} accepts signature ID or signature name. DocuSign recommends you
use signature ID (signatureId), since some names contain characters that don’t properly URL
encode. If you use the user name, it is likely that the name includes spaces and you might need
to URL encode the name before using the URL. For example: "Bob Smith" to "Bob%20Smith"
Optional request string: include_chrome={true} to include chrome, the default value is false.
Note: Older envelopes might only have chromed images. If getting the non-chromed image fails,
try getting the chromed image.
Formats:
XML, JSON
HTTP Method:
GET
Parameters:
No additional parameters are required.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Response
The response returns the initials image file.
URL:
/accounts/{accountId}/users/{userId}/signatures/{signatureIdOrName}/initials_image
Note: The userId specified in the uri must match the authenticated user’s userId and the user
must be a member of the account.
The {signatureIdOrName} accepts signature ID or signature name. DocuSign recommends you
use signature ID (signatureId), since some names contain characters that don’t properly URL
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 420
encode. If you use the user name, it is likely that the name includes spaces and you might need
to URL encode the name before using the URL. For example: "Bob Smith" to "Bob%20Smith"
Formats:
XML, JSON
HTTP Method:
PUT
Parameters:
No additional parameters are required.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Content-Type: image/gif
<image removed>
Response
The response returns a success or failure and information about the user initials and signature.
The following example shows the response json body.
{
"adoptedDateTime":"String content",
"createdDateTime":"String content",
"initials150ImageId":"String content",
"initialsImageUri":"String content",
"signature150ImageId":"String content",
"signatureFont":"String content",
"signatureId":"String content",
"signatureImageUri":"String content",
"signatureInitials":"String content",
"signatureName":"String content",
"signatureType":"String content"
}
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 421
URL:
/accounts/{accountId}/users/{userId}/signatures/{signatureIdOrName}/initials_image
Note: The userId specified in the uri must match the authenticated user’s userId and the user
must be a member of the account.
The {signatureIdOrName} accepts signature ID or signature name. DocuSign recommends you
use signature ID (signatureId), since some names contain characters that don’t properly URL
encode. If you use the user name, it is likely that the name includes spaces and you might need
to URL encode the name before using the URL. For example: "Bob Smith" to "Bob%20Smith"
Formats:
XML, JSON
HTTP Method:
DELETE
Parameters:
No additional parameters are required.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Response
The response returns a success or failure and information about the user initials and signature.
The following example shows the response json body.
{
"adoptedDateTime":"String content",
"createdDateTime":"String content",
"initials150ImageId":"String content",
"initialsImageUri":"String content",
"signature150ImageId":"String content",
"signatureFont":"String content",
"signatureId":"String content",
"signatureImageUri":"String content",
"signatureInitials":"String content",
"signatureName":"String content",
"signatureType":"String content"
}
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 422
URL:
/accounts/{accountId}/users/{userId}/signatures/{signatureIdOrName}/signature_image
Note: The userId specified in the uri must match the authenticated user’s userId and the user
must be a member of the account.
The {signatureIdOrName} accepts signature ID or signature name. DocuSign recommends you
use signature ID (signatureId), since some names contain characters that don’t properly URL
encode. If you use the user name, it is likely that the name includes spaces and you might need
to URL encode the name before using the URL. For example: "Bob Smith" to "Bob%20Smith"
Optional request string: include_chrome={true} to include chrome, the default value is false.
Note: Older envelopes might only have chromed images. If getting the non-chromed image fails,
try getting the chromed image.
Formats:
XML, JSON
HTTP Method:
GET
Parameters:
No additional parameters are required.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Response
The response returns the signature image as a GIF file.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 423
URL:
/accounts/{accountId}/users/{userId}/signatures/{signatureIdOrName}/signature_image
Note: The userId specified in the uri must match the authenticated user’s userId and the user
must be a member of the account.
The {signatureIdOrName} accepts signature ID or signature name. DocuSign recommends you
use signature ID (signatureId), since some names contain characters that don’t properly URL
encode. If you use the user name, it is likely that the name includes spaces and you might need
to URL encode the name before using the URL. For example: "Bob Smith" to "Bob%20Smith"
Formats:
XML, JSON
HTTP Method:
PUT
Parameters:
No additional parameters are required.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Content-Type: image/gif
Response
The response returns a success or failure and information about the user signature and initials.
The following example shows the response json body.
{
"adoptedDateTime":"String content",
"createdDateTime":"String content",
"initials150ImageId":"String content",
"initialsImageUri":"String content",
"signature150ImageId":"String content",
"signatureFont":"String content",
"signatureId":"String content",
"signatureImageUri":"String content",
"signatureInitials":"String content",
"signatureName":"String content",
"signatureType":"String content"
}
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 424
URL:
/accounts/{accountId}/users/{userId}/signatures/{signatureIdOrName}/signature_image
Note: The userId specified in the uri must match the authenticated user’s userId and the user
must be a member of the account.
The {signatureIdOrName} accepts signature ID or signature name. DocuSign recommends you
use signature ID (signatureId), since some names contain characters that don’t properly URL
encode. If you use the user name, it is likely that the name includes spaces and you might need
to URL encode the name before using the URL. For example: "Bob Smith" to "Bob%20Smith"
Formats:
XML, JSON
HTTP Method:
DELETE
Parameters:
No additional parameters are required.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Response
The response returns a success or failure and information about the user signature and initials.
The following example shows the response json body.
{
"adoptedDateTime":"String content",
"createdDateTime":"String content",
"initials150ImageId":"String content",
"initialsImageUri":"String content",
"signature150ImageId":"String content",
"signatureFont":"String content",
"signatureId":"String content",
"signatureImageUri":"String content",
"signatureInitials":"String content",
"signatureName":"String content",
"signatureType":"String content"
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 425
URL:
/accounts/{accountId}/users/{userId}/social
Formats:
XML, JSON
HTTP Method:
PUT
Parameters:
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
{
"provider":"String content",
"email":"String content",
"userName":"String content"
}
Response
The response returns if the API execution is successful (200 – OK) or failed.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 426
URL:
/accounts/{accountId}/users/{userId}/social
Formats:
XML, JSON
HTTP Method:
GET
Parameters:
No additional parameters are required.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
Response
The response returns the list of social account information for the user and the userId for the user.
The following example shows the response json body.
URL:
/accounts/{accountId}/users/{userId}/social
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 427
Formats:
XML, JSON
HTTP Method:
DELETE
Parameters:
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
{
"provider":"String content",
"email":"String content",
"userName":"String content"
}
Response
The response returns if the API execution is successful (200 – OK) or failed.
URL:
/accounts/{accountId}/views/console
Formats:
XML, JSON
HTTP Method:
POST
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 428
Parameters:
No parameters are required, but an optional envelopeId and returnUrl can be included in the request.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
{"envelopeId":"10d60706-5d90-4a83-8035-7079cacfc38a",
"returnUrl":"http://www.google.com"}
Response
The response returns the authentication view url.
The following example shows the header followed by the response json body.
{
"url":"String content"
}
URL:
/accounts/provisioning
Formats:
XML, JSON
HTTP Method:
GET
Parameters:
This request requires a DocuSign Integrator Key and the DocuSign AppToken information. The
AppToken is used to determine the account provisioning information that is returned and is provided
by the group provisioning the account.
X-DocuSign-Authentication:
<DocuSignCredentials><IntegratorKey>{integrator_key}</IntegratorKey>
</DocuSignCredentials>
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 429
Accept: application/json
Content-Type: application/json
X-DocuSign-AppToken: {AppToken}
Response
The response returns the account provisioning information.
The following example shows the response json body.
URL:
/billing_plans
Formats:
XML, JSON
HTTP Method:
GET
Parameters:
No additional parameters are required.
Response
The response returns the billing plan information.
The following example shows the response json body.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 430
"billingPlans":[{
"currencyPlanPrices":[{
"currencyCode":"String content",
"currencySymbol":"String content",
"perSeatPrice":"String content",
"supportIncidentFee":"String content",
"supportPlanFee":"String content"
}],
"enableSupport":"String content",
"includedSeats":"String content",
"otherDiscountPercent":"String content",
"paymentCycle":"String content",
"paymentMethod":"String content",
"perSeatPrice":"String content",
"planFeatureSets":[{
"currencyFeatureSetPrices":[{
"currencyCode":"String content",
"currencySymbol":"String content",
"envelopeFee":"String content",
"fixedFee":"String content",
"seatFee":"String content"
}],
"envelopeFee":"String content",
"featureSetId":"String content",
"fixedFee":"String content",
"isActive":"String content",
"isEnabled":"String content",
"name":"String content",
"seatFee":"String content"
}],
"planId":"String content",
"planName":"String content",
"seatDiscounts":[{
"beginSeatCount":"String content",
"discountPercent":"String content",
"endSeatCount":"String content"
}],
"supportIncidentFee":"String content",
"supportPlanFee":"String content"
}]
}
URL:
/billing_plans/{billingPlanId}
Formats:
XML, JSON
HTTP Method:
GET
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 431
Parameters:
No additional parameters are required.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Response
The response returns the Billing plan and Successor plan details. The plan details are described
below.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 432
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 433
"planFeatureSets":[{
"currencyFeatureSetPrices":[{
"currencyCode":"String content",
"currencySymbol":"String content",
"envelopeFee":"String content",
"fixedFee":"String content",
"seatFee":"String content"
}],
"envelopeFee":"String content",
"featureSetId":"String content",
"fixedFee":"String content",
"isActive":"String content",
"isEnabled":"String content",
"name":"String content",
"seatFee":"String content"
}],
"planId":"String content",
"planName":"String content",
"seatDiscounts":[{
"beginSeatCount":"String content",
"discountPercent":"String content",
"endSeatCount":"String content"
}],
"supportIncidentFee":"String content",
"supportPlanFee":"String content"
},
"successorPlans":[{
"currencyPlanPrices":[{
"currencyCode":"String content",
"currencySymbol":"String content",
"perSeatPrice":"String content",
"supportIncidentFee":"String content",
"supportPlanFee":"String content"
"supportedCardTypes": {
"cardTypes": [
"string",
"string"
]
}
}],
"enableSupport":"String content",
"includedSeats":"String content",
"otherDiscountPercent":"String content",
"paymentCycle":"String content",
"paymentMethod":"String content",
"perSeatPrice":"String content",
"planFeatureSets":[{
"currencyFeatureSetPrices":[{
"currencyCode":"String content",
"currencySymbol":"String content",
"envelopeFee":"String content",
"fixedFee":"String content",
"seatFee":"String content"
}],
"envelopeFee":"String content",
"featureSetId":"String content",
"fixedFee":"String content",
"isActive":"String content",
"isEnabled":"String content",
"name":"String content",
"seatFee":"String content"
}],
"planId":"String content",
"planName":"String content",
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 434
"seatDiscounts":[{
"beginSeatCount":"String content",
"discountPercent":"String content",
"endSeatCount":"String content"
}],
"supportIncidentFee":"String content",
"supportPlanFee":"String content"
}]
}
URL:
/diagnostics/settings
Formats:
XML, JSON
HTTP Method:
PUT
Parameters:
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 435
Content-Type: application/json
{
"apiRequestLogging": "true"
}
Response
The response returns a success or failure, along with the current API request logging settings for the
user.
URL:
/diagnostics/settings
Formats:
XML, JSON
HTTP Method:
GET
Parameters:
No additional parameters are required.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
Response
The response returns the current API request logging setting for the user, along with the maximum log
entries and remaining log entries.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 436
URL:
/diagnostics/request_logs
Formats:
XML, JSON
HTTP Method:
GET
Parameters:
No additional parameters are required. If the Accept header is set to application/zip, the response will
be a zip file containing individual text files, each representing an API request.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
Response
If the Accept header is set to application/zip, the response will be a zip file containing individual text
files, each representing an API request.
If the Accept header is set to application/json or application/xml, the response returns list of log entries
in either json or XML. An example json response body is shown below.
{
"apiRequestLogs": [
{
"status": "OK",
"description": "GetAccountInformation",
"createdDateTime": "2014-06-03T04:19:01.4200000Z",
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 437
"requestLogId": "90eb155a-9871-4fae-92dd-3aafcfff1d0f"
},
{
"status": "OK",
"description": "GetAccountInformation",
"createdDateTime": "2014-06-03T04:19:01.1830000Z",
"requestLogId": "6762c5fc-c476-4873-8a90-978729ae3b4f"
}
]
}
URL:
/diagnostics/request_logs/{requestLogId}
Formats:
XML, JSON
HTTP Method:
GET
Parameters:
No additional parameters are required. The requestLogfId can be retrieved by getting the list of log
entries. The Content-Transfer-Encoding header can be set to base64 to retrieve the API
request/response as base 64 string. Otherwise the bytes of the request/response are returned.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
Content-Transfer-Encoding: base64
Response
The response returns the bytes of the request/response. If the Content-Transfer-Encoding header
was set to base64, the log is returned as base 64 string.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 438
Note: The full set of logs for this user is deleted with this call. Individual logs may not be deleted.
URL:
/diagnostics/request_logs
Formats:
XML, JSON
HTTP Method:
DELETE
Parameters:
No additional parameters are required.
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
Response
The response returns a success or failure.
URL:
/oauth2/revoke
Formats:
XML, JSON
HTTP Method:
POST
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 439
Parameters:
The call must have “token_type” and “access_token” for the server token to be revoked in the
Authorization.
Authorization:<token_type><access_token>
Accept: application/json
Content-Type: application/json
Response
The response returns if the API execution is successful (200 – OK) or failed.
URL:
/oauth2/token
Formats:
XML, JSON
HTTP Method:
POST
Parameters:
The call uses a request with the
Accept: application/json
Content-Type: application/x-www-form-urlencoded
grant_type=password&client_id={integrator_key}&username={name}&password={password}&scope=
api
Response
The response returns if the API execution is successful (200 – OK) or failed. If successful, the
response will contain the server token information.
Name Description
access_token Access token information.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 440
Name Description
scope This should always be “api”
token_type This should always be “bearer”
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 441
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 442
}],
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 443
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 444
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 445
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 446
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 447
addressInformationInput: Used to
set recipient address information
and consists of:
addressInformation: consists
of six elements, with street2
and zipPlus4 being optional.
The elements are: street1,
street2, city, state, zip,
zipPlus4. The maximum
number of characters in each
element are: street1/street2 =
150 characters, city = 50
characters, state = 2
characters, and zip/zipPlus4
= 20 characters.
displayLevelCode: Specifies
the display level for the
recipient. Values are:
ReadOnly, Editable, or
DoNotDisplay.
receiveInResponse: A
Boolean element that
specifies if the information
needs to be returned in the
response.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 448
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 449
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 450
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 451
"email": "[email protected]",
"name": "recipient name",
"accessCode": "",
"addAccessCodeToEmail": false,
"clientUserId": null,
"embeddedRecipientStartURL": "string",
"customFields": {
"sample string 1",
"sample string 2"
},
"emailNotification": {
"emailBody":" ",
"emailSubject":" ",
"supportedLanguage":" "
},
"excludedDocuments": ["2", "4"]
"idCheckConfigurationName": null,
"idCheckInformationInput": {
"addressInformationInput": {
"addressInformation": {
"street1": "sample string 1",
"street2": "sample string 2",
"city": "sample string 3",
"state": "sample string 4",
"zip": "sample string 5",
"zipPlus4": "sample string 6"
},
"displayLevelCode": "sample string 1",
"receiveInResponse": "sample string 2"
},
"dobInformationInput": {
"dateOfBirth": "sample string 1",
"displayLevelCode": "sample string 2",
"receiveInResponse": "sample string 3"
},
"ssn4InformationInput": {
"ssn4": "sample string 1",
"displayLevelCode": "sample string 2",
"receiveInResponse": "sample string 3"
},
"ssn9InformationInput": {
"ssn9": "sample string 1",
"displayLevelCode": "sample string 2"
}
},
"inheritEmailNotificationConfiguration": false,
"note": "",
"phoneAuthentication": {
"recipMayProvideNumber": "sample string 1",
"validateRecipProvidedNumber": "sample string 2",
"recordVoicePrint": "sample string 3",
"senderProvidedNumbers": [
"sample string 1",
"sample string 2"
]
},
"recipientAttachment": null,
"recipientId": "1",
"requireIdLookup": false,
"roleName": "",
"routingOrder": 3,
"samlAuthentication": {
"samlAssertionAttributes": [
{
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 452
"name": "string",
"value": "string"
},
{
"name": "string",
"value": "string"
}
]
},
"smsAuthentication": {
"senderProvidedNumbers":[
"sample string 1",
"sample string 2"
]
},
"socialAuthentications": null,
"templateAccessCodeRequired": false,
"templateLocked": false,
"templateRequired": false,
"signingGroupId": null
}],
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 453
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 454
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 455
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 456
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 457
addressInformationInput: Used to
set recipient address information
and consists of:
addressInformation: consists
of six elements, with street2
and zipPlus4 being optional.
The elements are: street1,
street2, city, state, zip,
zipPlus4. The maximum
number of characters in each
element are: street1/street2 =
150 characters, city = 50
characters, state = 2
characters, and zip/zipPlus4
= 20 characters.
displayLevelCode: Specifies
the display level for the
recipient. Values are:
ReadOnly, Editable, or
DoNotDisplay.
receiveInResponse: A
Boolean element that
specifies if the information
needs to be returned in the
response.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 458
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 459
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 460
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 461
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 462
},
"smsAuthentication": {
"senderProvidedNumbers":[
"sample string 1",
"sample string 2"
]
},
"socialAuthentications": null,
"templateAccessCodeRequired": false,
"templateLocked": false,
"templateRequired": false,
"signingGroupId": null
}],
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 463
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 464
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 465
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 466
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 467
addressInformationInput: Used to
set recipient address information
and consists of:
addressInformation: consists
of six elements, with street2
and zipPlus4 being optional.
The elements are: street1,
street2, city, state, zip,
zipPlus4. The maximum
number of characters in each
element are: street1/street2 =
150 characters, city = 50
characters, state = 2
characters, and zip/zipPlus4
= 20 characters.
displayLevelCode: Specifies
the display level for the
recipient. Values are:
ReadOnly, Editable, or
DoNotDisplay.
receiveInResponse: A
Boolean element that
specifies if the information
needs to be returned in the
response.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 468
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 469
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 470
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 471
"clientUserId": null,
"embeddedRecipientStartURL": "string",
"customFields": {
"sample string 1",
"sample string 2"
},
"emailNotification": {
"emailBody":" ",
"emailSubject":" ",
"supportedLanguage":" "
},
"excludedDocuments": ["2", "4"]
"idCheckConfigurationName": null,
"idCheckInformationInput": {
"addressInformationInput": {
"addressInformation": {
"street1": "sample string 1",
"street2": "sample string 2",
"city": "sample string 3",
"state": "sample string 4",
"zip": "sample string 5",
"zipPlus4": "sample string 6"
},
"displayLevelCode": "sample string 1",
"receiveInResponse": "sample string 2"
},
"dobInformationInput": {
"dateOfBirth": "sample string 1",
"displayLevelCode": "sample string 2",
"receiveInResponse": "sample string 3"
},
"ssn4InformationInput": {
"ssn4": "sample string 1",
"displayLevelCode": "sample string 2",
"receiveInResponse": "sample string 3"
},
"ssn9InformationInput": {
"ssn9": "sample string 1",
"displayLevelCode": "sample string 2"
}
},
"inheritEmailNotificationConfiguration": false,
"note": "",
"phoneAuthentication": {
"recipMayProvideNumber": "sample string 1",
"validateRecipProvidedNumber": "sample string 2",
"recordVoicePrint": "sample string 3",
"senderProvidedNumbers": [
"sample string 1",
"sample string 2"
]
},
"recipientAttachment": null,
"recipientId": "1",
"requireIdLookup": false,
"roleName": "",
"routingOrder": 1,
"samlAuthentication": {
"samlAssertionAttributes": [
{
"name": "string",
"value": "string"
},
{
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 472
"name": "string",
"value": "string"
}
]
},
"smsAuthentication": {
"senderProvidedNumbers":[
"sample string 1",
"sample string 2"
]
},
"socialAuthentications": null,
"templateAccessCodeRequired": false,
"templateLocked": false,
"templateRequired": false,
"canEditRecipientEmails": false,
"canEditRecipientNames": false,
"signingGroupId": null
}],
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 473
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 474
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 475
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 476
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 477
addressInformationInput: Used to
set recipient address information
and consists of:
addressInformation: consists
of six elements, with street2
and zipPlus4 being optional.
The elements are: street1,
street2, city, state, zip,
zipPlus4. The maximum
number of characters in each
element are: street1/street2 =
150 characters, city = 50
characters, state = 2
characters, and zip/zipPlus4
= 20 characters.
displayLevelCode: Specifies
the display level for the
recipient. Values are:
ReadOnly, Editable, or
DoNotDisplay.
receiveInResponse: A
Boolean element that
specifies if the information
needs to be returned in the
response.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 478
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 479
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 480
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 481
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 482
}
},
"inheritEmailNotificationConfiguration": false,
"note": "",
"phoneAuthentication": {
"recipMayProvideNumber": "sample string 1",
"validateRecipProvidedNumber": "sample string 2",
"recordVoicePrint": "sample string 3",
"senderProvidedNumbers": [
"sample string 1",
"sample string 2"
]
},
"recipientAttachment": null,
"recipientId": "2",
"requireIdLookup": false,
"requireSignerCertificate": "string",
"requireSignOnPaper": "sample string",
"roleName": "",
"routingOrder": 1,
"samlAuthentication": {
"samlAssertionAttributes": [
{
"name": "string",
"value": "string"
},
{
"name": "string",
"value": "string"
}
]
},
"smsAuthentication": {
"senderProvidedNumbers":[
"sample string 1",
"sample string 2"
]
},
"socialAuthentications": null,
"templateAccessCodeRequired": false,
"templateLocked": false,
"templateRequired": false,
"autoNavigation": false,
"defaultRecipient": false,
"signInEachLocation": false,
"signatureInfo": null,
"signerEmail": "[email protected]",
"signerName": "MC Clap Your Hands",
"tabs": {
"approveTabs": null,
"checkboxTabs": null,
"companyTabs": null,
"dateSignedTabs": null,
"dateTabs": null,
"declineTabs": null,
"emailTabs": null,
"envelopeIdTabs": null,
"fullNameTabs": null,
"initialHereTabs": null,
"listTabs": null,
"noteTabs": null,
"numberTabs": null,
"radioGroupTabs": null,
"signHereTabs": [{
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 483
"signerAttachmentTabs": null,
"ssnTabs": null,
"textTabs": null,
"titleTabs": null,
"zipTabs": null
}
}],
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 484
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 485
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 486
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 487
addressInformationInput: Used to
set recipient address information
and consists of:
addressInformation: consists of
six elements, with street2 and
zipPlus4 being optional. The
elements are: street1, street2,
city, state, zip, zipPlus4. The
maximum number of characters
in each element are:
street1/street2 = 150
characters, city = 50
characters, state = 2
characters, and zip/zipPlus4 =
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 488
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 489
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 490
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 491
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 492
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 493
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 494
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 495
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 496
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 497
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 498
addressInformationInput: Used to
set recipient address information
and consists of:
addressInformation: consists
of six elements, with street2
and zipPlus4 being optional.
The elements are: street1,
street2, city, state, zip,
zipPlus4. The maximum
number of characters in each
element are: street1/street2 =
150 characters, city = 50
characters, state = 2
characters, and zip/zipPlus4
= 20 characters.
displayLevelCode: Specifies
the display level for the
recipient. Values are:
ReadOnly, Editable, or
DoNotDisplay.
receiveInResponse: A
Boolean element that
specifies if the information
needs to be returned in the
response.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 499
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 500
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 501
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 502
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 503
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 504
"tabs": {
"approveTabs": null,
"checkboxTabs": null,
"companyTabs": null,
"dateSignedTabs": null,
"dateTabs": null,
"declineTabs": null,
"emailTabs": null,
"envelopeIdTabs": null,
"fullNameTabs": null,
"initialHereTabs": null,
"listTabs": null,
"noteTabs": null,
"numberTabs": null,
"radioGroupTabs": null,
"signHereTabs": [{
"signerAttachmentTabs": null,
"ssnTabs": null,
"textTabs": null,
"titleTabs": null,
"zipTabs": null
}
"deliveryMethod":" ",
"deliveredDateTime":"String Content",
"signedDateTime":"String Content",
"offlineAttributes":{
"deviceName":"String Content",
"deviceModel":"String Content",
"gpsLatitude":"String Content",
"gpsLongitude":"String Content",
"accountEsignId":"String Content"
}
"signingGroupId": null
"recipientSignatureProviders": [
{
"signatureProviderId": "2",
"recipientSignatureProviderOptions": [
{
"signatureProviderOptionId": "1",
"signatureProviderOptionName": "sms",
"signatureProviderOptionValue": "+1NNN-NNN-NNNN"
}
]
}
]
}],
--[Multipart boundary]
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 505
[parameters]
</signer>
</signers>
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 506
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 507
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 508
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 509
addressInformationInput: Used to
set recipient address information
and consists of:
addressInformation: consists of
six elements, with street2 and
zipPlus4 being optional. The
elements are: street1, street2,
city, state, zip, zipPlus4. The
maximum number of characters
in each element are:
street1/street2 = 150
characters, city = 50
characters, state = 2
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 510
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 511
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 512
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 513
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 514
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 515
A SMS Authentication or Access Code authentication check must be included for the
OpenTrust signer.
All recipients must be the only recipient in their routing order.
The OpenTrust signer must have at least one required Signature or Initials tag in the envelope
(the envelope cannot be sent for Free-Form signing). Additionally, the signer cannot have
more than 5 OpenTrust Signature tabs in the envelope.
When a signer in the envelope is required to apply a digital signature, then all subsequent
signers that have Signature or Initial tags are required to use a digital signature. Note that
other recipient types can be used and subsequent signers can use other tab types.
Downloading documents individually or as a combined PDF is allowed. However, downloading
the combined PDF of all documents might cause the digital signatures to appear invalid due to
the process of combining the documents. This is a known issue and each document can be
downloaded individually to verify the digital signature.
Other restrictions that apply to envelopes:
Envelopes cannot be corrected if at least one OpenTrust signer has signed the envelope.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 516
Anchoring Tabs
The tab anchoring option allows you to send documents for signature that do not have a fixed layout
or format. In these documents, you might not know the absolute location of the tabs when you design
your API client application because the tabs must move with text. As an alternative to sending X and
Y coordinates for tabs, the DocuSign Service can derive an anchor location for the tab by correlating
anchor information to data within the document.
When the DocuSign Service receives a request that contains tabs with anchor information, it searches
the document for instances of the anchorString. When found, it places a tab of the specified type for
the designated recipient. Tab have a default positioning, but this can be changed using the offset
settings for the tab.
When you apply tabs to the document, DocuSign does not remove or replace the anchorString text.
You can hide codified anchors by using the same font color as the background of the document. So
the anchor can be used by DocuSign processes and it will not be visible on the document.
To use an anchoring option:
1. Identify the location in the document by text string. You can use a pre-existing text string or
add a new one.
For best performance DocuSign recommends using single word anchor strings when possible,
especially when there are a large number of pages in the envelope.
For example, you might want to add a Sign Here tab to the “Borrower’s Signature” lines in a
document, but that phrase might occur in places in the document where you don't want to tab
to appear. In this case, you could add the text “BorrowerSignHere” in white font color (so that
isn't visible in the document) to all the places you want Sign Here tabs to appear and use
"BorrowerSignHere" as the anchor string.
2. Reference the anchor through the anchorString element of the tab.
3. Determine the offset from the anchorString location to where the tab should be placed.
Positive anchorXOffset values move the tab right on the page and positive anchorYoffset
values move the tab down the page. The anchorUnits specifies the units used for the offsets
and the default unit is pixels.
For Sign Here and Initial Here tabs the bottom-left of the anchorString is equivalent to position
(0,0), and the bottom-left of the tab graphic is placed relative to that.
For all other tabs the bottom-left of the anchorString is equivalent to position (0,0), and the top-
left of the tab graphic is placed relative to that.
DocuSign does not currently provide tools to derive the offset values. Determination of the
proper offset will likely require some trial-and-error.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 517
You set the text of the anchorString. DocuSign tabs are created for each instance of the
anchorString within the document, so special care must be taken to establish unique
anchorStrings that do not result in unintentional tabs.
You cannot use the same anchored tab for different recipients for the same document.
The DocuSign system cannot search for text that is embedded in an image when checking for
anchorStrings.
X or Y offsets supplied for a tab apply to all instances of the tab in the document. To use
different offsets at different locations in the document for the same recipient, create multiple,
unique anchor tabs.
If an anchorString Y offset value would force a tab outside of the page boundaries, the tag will
be placed at the page boundary. If the X offset value places a tab outside of the page
boundaries, the error message “Invalid_User_Offset” is sent. The error message includes the
X offset that resulted in the error.
The system does not support an anchorString embedded in the form of a PDF X-object in the
document.
The system does not re-flow the text that surrounds the anchor tabs. It is the responsibility of
the document author to provide sufficient whitespace to contain the potential width of the
ultimate tab value.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 518
Example: In the JSON example below, the Text tabs “StudentLastName” and
“StudentFirstName” will be auto-populated as specified (“Doe” and “John”) each place they
appear throughout the envelope.
"tabs": {
"textTabs": [
{
"tabLabel": "\\*StudentLastName",
"value": "Doe"
},
{
"tabLabel": "\\*StudentFirstName",
"value": "John"
}]
}
Approve Tab
Place this tag on the document where you want the recipient to approve documents in an envelope
without placing a signature or initials on the document. If the recipient clicks the Approve tag during
the signing process, the recipient is considered to have signed the document. No information is
shown on the document for the approval, but it is recorded as a signature in the envelope history.
An example Approve tab json layout is shown below:
"approveTabs": [{
"anchorString": null,
"anchorXOffset": null,
"anchorYOffset": null,
"anchorIgnoreIfNotPresent": null,
"anchorUnits": null,
"anchorCaseSensitive": null,
"anchorMatchWholeWord": null,
"anchorHorizontalAlignment": null,
"conditionalParentLabel": null,
"conditionalParentValue": null,
"customTabId": null,
"documentId": "1",
"pageNumber": "1",
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 519
"recipientId": "1",
"templateLocked": false,
"templateRequired": false,
"xPosition": "300",
"yPosition": "100",
"bold": false,
"font": "lucidaconsole",
"fontColor": null,
"fontSize": "size9",
"italic": false,
"tabLabel": "Approve 11",
"underline": false,
"buttonText": "Approve",
"height": 18,
"width": 60,
"mergeField": {},
"tabOrder": {}
}],
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 520
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 521
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 522
Checkbox Tab
Place this tag on the document in a location where the recipient can select an option.
An example Checkbox tab json layout is shown below:
"checkboxTabs": [{
"anchorString": null,
"anchorXOffset": null,
"anchorYOffset": null,
"anchorIgnoreIfNotPresent": null,
"anchorUnits": null,
"anchorCaseSensitive": null,
"anchorMatchWholeWord": null,
"anchorHorizontalAlignment": null,
"conditionalParentLabel": null,
"conditionalParentValue": null,
"customTabId": null,
"documentId": "1",
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 523
"pageNumber": "1",
"recipientId": "1",
"templateLocked": false,
"templateRequired": false,
"xPosition": "144",
"yPosition": "155",
"name": "Checkbox",
"requireInitialOnSharedChange": false,
"selected": false,
"shared": false,
"tabLabel": "Check Box 14",
"mergeField": {},
"tabOrder": {}
}],
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 524
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 525
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 526
Company Tab
Place this tag on the document where you want the recipient’s company name to appear.
Note: When getting information that includes this tab type, the original value of the tab when the
associated envelope was sent is included in the response.
An example Company tab json layout is shown below:
"companyTabs": [{
"anchorString": null,
"anchorXOffset": null,
"anchorYOffset": null,
"anchorIgnoreIfNotPresent": null,
"anchorUnits": null,
"anchorCaseSensitive": null,
"anchorMatchWholeWord": null,
"anchorHorizontalAlignment": null,
"conditionalParentLabel": null,
"conditionalParentValue": null,
"customTabId": null,
"documentId": "1",
"maxLength": null,
"pageNumber": "1",
"recipientId": "1",
"templateLocked": false,
"templateRequired": false,
"xPosition": "394",
"yPosition": "65",
"bold": false,
"font": "arial",
"fontColor": null,
"fontSize": null,
"italic": false,
"tabLabel": "Company",
"underline": false,
"concealValueOnDocument": false,
"disableAutoSize": false,
"locked": false,
"name": "Company",
"required": true,
"value": "Ro Corp 2",
"width": 42,
"mergeField": {},
"tabOrder": {}
}],
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 527
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 528
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 529
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 530
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 531
"documentId": "1",
"pageNumber": "1",
"recipientId": "1",
"templateLocked": false,
"templateRequired": false,
"xPosition": "147",
"yPosition": "103",
"bold": false,
"font": "arial",
"fontColor": null,
"fontSize": null,
"italic": false,
"tabLabel": "Date Signed",
"underline": false,
"name": "Date Signed",
"value": ""
"mergeField": {},
"tabOrder": {}
}],
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 532
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 533
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 534
Date Tab
Place this tag on the document where you want the recipient to enter a date. Date tabs are single-line
fields that allow date information to be entered in any format. The tooltip for this tab recommends
entering the date as MM/DD/YYYY, but this is not enforced. The format entered by the signer is
retained. If you need a particular date format enforced, DocuSign recommends using a Regex Pattern
and Validation Error to enforce the format.
Note: When getting information that includes this tab type, the original value of the tab when the
associated envelope was sent is included in the response.
An example Date tab json layout is shown below:
"dateTabs": [{
"anchorString": null,
"anchorXOffset": null,
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 535
"anchorYOffset": null,
"anchorIgnoreIfNotPresent": null,
"anchorUnits": null,
"anchorCaseSensitive": null,
"anchorMatchWholeWord": null,
"anchorHorizontalAlignment": null,
"conditionalParentLabel": null,
"conditionalParentValue": null,
"customTabId": null,
"documentId": "1",
"maxLength": null,
"pageNumber": "1",
"recipientId": "1",
"templateLocked": false,
"templateRequired": false,
"xPosition": "24",
"yPosition": "153",
"bold": false,
"font": "arial",
"fontColor": null,
"fontSize": null,
"italic": false,
"tabLabel": "Date Field 13",
"underline": false,
"concealValueOnDocument": false,
"disableAutoSize": false,
"locked": false,
"name": "Text",
"required": true,
"value": "",
"width": 42,
"requireAll": false,
"requireInitialOnSharedChange": false,
"shared": false,
"height": 11,
"validationMessage": ""
"validationPattern": ""
"mergeField": {},
"tabOrder": {}
}],
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 536
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 537
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 538
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 539
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 540
Decline Tab
Place this tag on the document where you want to give the recipient the option of declining an
envelope. If the recipient clicks the Decline tag during the signing process, the envelope is voided.
An example Decline tab json layout is shown below:
"declineTabs": [{
"anchorString": null,
"anchorXOffset": null,
"anchorYOffset": null,
"anchorIgnoreIfNotPresent": null,
"anchorUnits": null,
"anchorCaseSensitive": null,
"anchorMatchWholeWord": null,
"anchorHorizontalAlignment": null,
"conditionalParentLabel": null,
"conditionalParentValue": null,
"customTabId": null,
"documentId": "1",
"pageNumber": "1",
"recipientId": "1",
"templateLocked": false,
"templateRequired": false,
"xPosition": "408",
"yPosition": "105",
"bold": false,
"font": "lucidaconsole",
"fontColor": null,
"fontSize": "size9",
"italic": false,
"tabLabel": "Decline 12",
"underline": false,
"buttonText": "Decline",
"height": 18,
"width": 60,
"mergeField": {},
"tabOrder": {}
}],
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 541
</decline>
</declineTabs>
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 542
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 543
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 544
Email Tab
Place this tag on the document where you want the recipient to enter an email. Email tags are single-
line fields that accept any characters. The system checks that a valid email format (i.e. [email protected])
is entered in the tag. It uses the same parameters as a Text tab, with the validation message and
pattern set for email information.
Note: When getting information that includes this tab type, the original value of the tab when the
associated envelope was sent is included in the response.
An example Email tab json layout is shown below:
"emailTabs": [{
"anchorString": null,
"anchorXOffset": null,
"anchorYOffset": null,
"anchorIgnoreIfNotPresent": null,
"anchorUnits": null,
"anchorCaseSensitive": null,
"anchorMatchWholeWord": null,
"anchorHorizontalAlignment": null,
"conditionalParentLabel": null,
"conditionalParentValue": null,
"customTabId": null,
"documentId": "1",
"maxLength": null,
"pageNumber": "1",
"recipientId": "1",
"templateLocked": false,
"templateRequired": false,
"xPosition": "24",
"yPosition": "153",
"bold": false,
"font": "arial",
"fontColor": null,
"fontSize": null,
"italic": false,
"tabLabel": "Email Field 3",
"underline": false,
"concealValueOnDocument": false,
"disableAutoSize": false,
"locked": false,
"name": "Text",
"required": true,
"value": "",
"width": 42,
"requireAll": false,
"requireInitialOnSharedChange": false,
"shared": false,
"height": 11,
"validationMessage": ""
"validationPattern": ""
"mergeField": {},
"tabOrder": {}
}],
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 545
</emailTabs>
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 546
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 547
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 548
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 549
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 550
"customTabId": null,
"documentId": "1",
"pageNumber": "1",
"recipientId": "1",
"templateLocked": false,
"templateRequired": false,
"xPosition": "399",
"yPosition": "35",
"bold": false,
"font": "arial",
"fontColor": null,
"fontSize": null,
"italic": false,
"tabLabel": "Email Address",
"underline": false,
"name": " Email Address"
"mergeField": {},
"tabOrder": {}
}],
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 551
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 552
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 553
Envelope ID Tab
Place this tag on the document where you want the envelope ID for to appear. Recipients cannot
enter or change the information in this tab, it is for informational purposes only.
An example Envelope ID tab json layout is shown below:
"envelopeIdTabs": [{
"anchorString": null,
"anchorXOffset": null,
"anchorYOffset": null,
"anchorIgnoreIfNotPresent": null,
"anchorUnits": null,
"anchorCaseSensitive": null,
"anchorMatchWholeWord": null,
"anchorHorizontalAlignment": null,
"customTabId": null,
"documentId": "1",
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 554
"pageNumber": "1",
"xPosition": "24",
"yPosition": "153",
"tabLabel": "Envelope ID,
"mergeField": {},
}],
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 555
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 556
"anchorMatchWholeWord": null,
"anchorHorizontalAlignment": null,
"conditionalParentLabel": null,
"conditionalParentValue": null,
"customTabId": null,
"documentId": "1",
"pageNumber": "1",
"recipientId": "1",
"templateLocked": false,
"templateRequired": false,
"xPosition": "399",
"yPosition": "35",
"bold": false,
"font": "arial",
"fontColor": null,
"fontSize": null,
"italic": false,
"tabLabel": "First Name",
"underline": false,
"name": "First Name"
"mergeField": {},
"tabOrder": {}
}],
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 557
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 558
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 559
Formula Tab
This tag is used to add a calculated field to a document. Envelope recipients cannot directly enter
information into the tag; the formula tab calculates and displays a new value when changes are made
to the reference tag values. The reference tag information and calculation operations are entered in
the “formula” element. See the Using the Calculated Fields Feature quick start guide or DocuSign
Service User Guide for more information about formulas.
An example Formula tab json layout is shown below:
"formulaTabs": [{
"formula": " [Line1]+[Line2]+[Tax] ",
"isPaymentAmount": false
"anchorString": null,
"anchorXOffset": null,
"anchorYOffset": null,
"anchorIgnoreIfNotPresent": null,
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 560
"anchorUnits": null,
"anchorCaseSensitive": null,
"anchorMatchWholeWord": null,
"anchorHorizontalAlignment": null,
"customTabId": null,
"documentId": "1",
"pageNumber": "1",
"recipientId": "1",
"roundDecimalPlaces": "2",
"templateLocked": false,
"templateRequired": false,
"xPosition": "24",
"yPosition": "153",
"bold": false,
"font": "arial",
"fontColor": null,
"fontSize": null,
"italic": false,
"tabLabel": "Data Field 13",
"underline": false,
"concealValueOnDocument": false,
"disableAutoSize": false,
"locked": true,
"name": "Formula",
"required": true,
"value": "",
"width": 42,
"height": 11,
"validationMessage": "",
"validationPattern": "",
"mergeField": {},
"tabOrder": {}
}],
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 561
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 562
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 563
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 564
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 565
"fullNameTabs": [{
"anchorString": null,
"anchorXOffset": null,
"anchorYOffset": null,
"anchorIgnoreIfNotPresent": null,
"anchorUnits": null,
"anchorCaseSensitive": null,
"anchorMatchWholeWord": null,
"anchorHorizontalAlignment": null,
"conditionalParentLabel": null,
"conditionalParentValue": null,
"customTabId": null,
"documentId": "1",
"pageNumber": "1",
"recipientId": "1",
"templateLocked": false,
"templateRequired": false,
"xPosition": "399",
"yPosition": "35",
"bold": false,
"font": "arial",
"fontColor": null,
"fontSize": null,
"italic": false,
"tabLabel": "Full Name",
"underline": false,
"name": "Full Name",
"mergeField": {},
"tabOrder": {}
}],
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 566
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 567
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 568
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 569
"customTabId": null,
"documentId": "1",
"pageNumber": "1",
"recipientId": "1",
"templateLocked": false,
"templateRequired": false,
"xPosition": "249",
"yPosition": "15",
"name": "Initial Here",
"optional": false,
"scaleValue": 1,
"tabLabel": "Initial 5"
"mergeField": {},
"tabOrder": {}
}],
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 570
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 571
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 572
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 573
</lastNameTabs>
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 574
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 575
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 576
List Tab
Use this tag to give your recipient a list of options, presented as a drop-down list, from which they can
select.
An example List tab json layout is shown below:
"listTabs": [{
"anchorString": null,
"anchorXOffset": null,
"anchorYOffset": null,
"anchorIgnoreIfNotPresent": null,
"anchorUnits": null,
"anchorCaseSensitive": null,
"anchorMatchWholeWord": null,
"anchorHorizontalAlignment": null,
"conditionalParentLabel": null,
"conditionalParentValue": null,
"customTabId": null,
"documentId": "1",
"pageNumber": "1",
"recipientId": "1",
"templateLocked": false,
"templateRequired": false,
"xPosition": "286",
"yPosition": "163",
"bold": false,
"font": "arial",
"fontColor": null,
"fontSize": null,
"italic": false,
"tabLabel": "Drop Down 16",
"underline": false,
"listItems": [{
"selected": false,
"text": "Peach",
"value": "peachValue"
},
{
"selected": true,
"text": "Pear",
"value": "PearValue"
},
{
"selected": false,
"text": "Dog",
"value": "DogValue"
}],
"locked": false,
"mergeFieldXml": "",
"required": false,
"requireAll": false,
"requireInitialOnSharedChange": false,
"senderRequired": false,
"shared": false,
"value": "Pear",
"width": 48,
"mergeField": {},
"tabOrder": {}
}],
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 577
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 578
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 579
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 580
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 581
Note Tab
Place this tag on the document where you want to place additional information, in the form of a note,
on a document for a recipient.
An example Note tab json layout is shown below:
"noteTabs": [{
"anchorString": null,
"anchorXOffset": null,
"anchorYOffset": null,
"anchorIgnoreIfNotPresent": null,
"anchorUnits": null,
"anchorCaseSensitive": null,
"anchorMatchWholeWord": null,
"anchorHorizontalAlignment": null,
"conditionalParentLabel": null,
"conditionalParentValue": null,
"customTabId": null,
"documentId": "1",
"name": "Note1",
"pageNumber": "1",
"recipientId": "1",
"templateLocked": false,
"templateRequired": false,
"xPosition": "384",
"yPosition": "154",
"bold": false,
"font": "arial",
"fontColor": null,
"fontSize": null,
"italic": false,
"tabLabel": "Note 17",
"underline": false,
"height": 33,
"shared": false,
"value": "This is a test note",
"width": 66,
"mergeField": {},
"tabOrder": {}
}],
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 582
<note>
[parameters]
</note>
</noteTabs>
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 583
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 584
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 585
Number Tab
Place this tag on the document where you want the recipient to enter a number. It uses the same
parameters as a Text tab, with the validation message and pattern set for number information.
Note: When getting information that includes this tab type, the original value of the tab when the
associated envelope was sent is included in the response.
An example Number tab json layout is shown below:
"numberTabs": [{
"anchorString": null,
"anchorXOffset": null,
"anchorYOffset": null,
"anchorIgnoreIfNotPresent": null,
"anchorUnits": null,
"anchorCaseSensitive": null,
"anchorMatchWholeWord": null,
"anchorHorizontalAlignment": null,
"conditionalParentLabel": null,
"conditionalParentValue": null,
"customTabId": null,
"documentId": "1",
"maxLength": null,
"pageNumber": "1",
"recipientId": "1",
"templateLocked": false,
"templateRequired": false,
"xPosition": "24",
"yPosition": "153",
"bold": false,
"font": "arial",
"fontColor": null,
"fontSize": null,
"italic": false,
"tabLabel": "Number Field 13",
"underline": false,
"concealValueOnDocument": false,
"disableAutoSize": false,
"locked": false,
"name": "Text",
"required": true,
"value": "",
"width": 42,
"requireAll": false,
"requireInitialOnSharedChange": false,
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 586
"shared": false,
"height": 11,
"validationMessage": "",
"validationPattern": "",
"isPaymentAmount": false,
"mergeField": {},
"tabOrder": {}
}],
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 587
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 588
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 589
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 590
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 591
"anchorUnits": null,
"anchorCaseSensitive": null,
"anchorMatchWholeWord": null,
"anchorHorizontalAlignment": null,
"locked": false,
"pageNumber": "1",
"required": false,
"selected": false,
"value": "Radio",
"xPosition": "234",
"yPosition": "159",
"tabOrder": {}
},
{
"anchorString": null,
"anchorXOffset": null,
"anchorYOffset": null,
"anchorIgnoreIfNotPresent": null,
"anchorUnits": null,
"anchorCaseSensitive": null,
"anchorMatchWholeWord": null,
"anchorHorizontalAlignment": null,
"locked": false,
"pageNumber": "1",
"required": false,
"selected": true,
"value": "Radio",
"xPosition": "236",
"yPosition": "190",
"tabOrder": {}
}],
"recipientId": "1",
"requireInitialOnSharedChange": false,
"shared": false,
"templateLocked": false,
"templateRequired": false,
}],
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 592
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 593
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 594
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 595
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 596
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 597
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 598
"customTabId": null,
"documentId": "1",
"optional": "false",
"pageNumber": "1",
"recipientId": "1",
"templateLocked": false,
"templateRequired": false,
"xPosition": "24",
"yPosition": "153",
"tabLabel": "Attachment 10",
"required": true,
"scaleValue": "1.0",
"mergeField": {},
"tabOrder": {}
}],
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 599
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 600
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 601
SSN Tab
Place this tag on the document where you want the recipient to enter a Social Security Number
(SSN). A SSN can be typed with or without dashes. It uses the same parameters as a Text tab, with
the validation message and pattern set for SSN information.
Note: When getting information that includes this tab type, the original value of the tab when the
associated envelope was sent is included in the response.
An example SSN tab json layout is shown below:
"ssnTabs": [{
"anchorString": null,
"anchorXOffset": null,
"anchorYOffset": null,
"anchorIgnoreIfNotPresent": null,
"anchorUnits": null,
"anchorCaseSensitive": null,
"anchorMatchWholeWord": null,
"anchorHorizontalAlignment": null,
"conditionalParentLabel": null,
"conditionalParentValue": null,
"customTabId": null,
"documentId": "1",
"maxLength": null,
"pageNumber": "1",
"recipientId": "1",
"templateLocked": false,
"templateRequired": false,
"xPosition": "24",
"yPosition": "153",
"bold": false,
"font": "arial",
"fontColor": null,
"fontSize": null,
"italic": false,
"tabLabel": "SSN Field 13",
"underline": false,
"concealValueOnDocument": false,
"disableAutoSize": false,
"locked": false,
"name": "Text",
"required": true,
"value": "",
"width": 42,
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 602
"requireAll": false,
"requireInitialOnSharedChange": false,
"shared": false,
"height": 11,
"validationMessage": "",
"validationPattern": "",
"mergeField": {},
"tabOrder": {}
}],
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 603
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 604
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 605
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 606
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 607
Text Tab
This tag is an adaptable field that allows the recipient to enter different text information.
Note: When getting information that includes this tab type, the original value of the tab when the
associated envelope was sent is included in the response.
An example Text tab json layout is shown below:
"textTabs": [{
"anchorString": null,
"anchorXOffset": null,
"anchorYOffset": null,
"anchorIgnoreIfNotPresent": null,
"anchorUnits": null,
"anchorCaseSensitive": null,
"anchorMatchWholeWord": null,
"anchorHorizontalAlignment": null,
"conditionalParentLabel": null,
"conditionalParentValue": null,
"customTabId": null,
"documentId": "1",
"maxLength": null,
"pageNumber": "1",
"recipientId": "1",
"templateLocked": false,
"templateRequired": false,
"xPosition": "24",
"yPosition": "153",
"bold": false,
"font": "arial",
"fontColor": null,
"fontSize": null,
"italic": false,
"tabLabel": "Data Field 13",
"underline": false,
"concealValueOnDocument": false,
"disableAutoSize": false,
"locked": false,
"name": "Text",
"required": true,
"value": "",
"width": 42,
"requireAll": false,
"requireInitialOnSharedChange": false,
"senderRequired": false,
"shared": false,
"validationMessage": "",
"validationPattern": "",
"height": 11,
"isPaymentAmount": false
"validationPattern": "",
"validationMessage": "",
"mergeField": {},
"tabOrder": {}
}],
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 608
</text>
</textTabs>
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 609
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 610
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 611
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 612
Title Tab
Place this tag on the document where you want the recipient’s title to appear.
Note: When getting information that includes this tab type, the original value of the tab when the
associated envelope was sent is included in the response.
An example Title tab json layout is shown below:
"titleTabs": [{
"anchorString": null,
"anchorXOffset": null,
"anchorYOffset": null,
"anchorIgnoreIfNotPresent": null,
"anchorUnits": null,
"anchorCaseSensitive": null,
"anchorMatchWholeWord": null,
"anchorHorizontalAlignment": null,
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 613
"conditionalParentLabel": null,
"conditionalParentValue": null,
"customTabId": null,
"documentId": "1",
"maxLength": null,
"pageNumber": "1",
"recipientId": "1",
"templateLocked": false,
"templateRequired": false,
"xPosition": "30",
"yPosition": "103",
"bold": false,
"font": "arial",
"fontColor": null,
"fontSize": null,
"italic": false,
"tabLabel": "Title",
"underline": false,
"concealValueOnDocument": false,
"disableAutoSize": false,
"locked": false,
"name": "Title",
"required": true,
"value": "Regular Guy",
"width": 42,
"mergeField": {},
"tabOrder": {}
}],
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 614
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 615
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 616
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 617
Zip Tab
Place this tag on the document where you want the recipient to enter a ZIP code. The ZIP code can
be a five numbers or the ZIP+4 format with nine numbers. The zip code can be typed with or without
dashes. It uses the same parameters as a Text tab, with the validation message and pattern set for
ZIP code information.
Note: When getting information that includes this tab type, the original value of the tab when the
associated envelope was sent is included in the response.
An example Zip tab json layout is shown below:
"zipTabs": [{
"anchorString": null,
"anchorXOffset": null,
"anchorYOffset": null,
"anchorIgnoreIfNotPresent": null,
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 618
"anchorUnits": null,
"anchorCaseSensitive": null,
"anchorMatchWholeWord": null,
"anchorHorizontalAlignment": null,
"conditionalParentLabel": null,
"conditionalParentValue": null,
"customTabId": null,
"documentId": "1",
"maxLength": null,
"pageNumber": "1",
"recipientId": "1",
"templateLocked": false,
"templateRequired": false,
"xPosition": "24",
"yPosition": "153",
"bold": false,
"font": "arial",
"fontColor": null,
"fontSize": null,
"italic": false,
"tabLabel": "Zip Field 13",
"underline": false,
"concealValueOnDocument": false,
"disableAutoSize": false,
"locked": false,
"name": "Text",
"required": true,
"value": "",
"width": 42,
"requireAll": false,
"requireInitialOnSharedChange": false,
"shared": false,
"height": 11,
"useDash4": ""
"validationMessage": "",
"validationPattern": "",
"mergeField": {},
"tabOrder": {}
}],
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 619
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 620
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 621
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 622
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 623
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 624
{
// call was processed but the resource being accessed was not found
// envelope doesn’t exist, user doesn’t exist, etc. There may not be any more details
in the errorDetails response.
}
else // other errors
{
var errorDetails = Json.Decode(response.body);
if (errorDetails!= null)
{
// process errorDetails.errorCode - See table of error codes
if (errorDetails.message != null)
{
// use errorDetails.message to get more information in textual form.
}
}
}
Error Response Handling for API calls that Support Multiple Items
The DocuSign REST API supports many calls that operate on multiple items, such as adding one or
more users to an account or adding one or more documents to a draft envelope. This is done to
decrease the number of web callouts required to perform some common operations. For API calls
that support multiple items, the overall HTTP response code will be 200 (OK) or 201 (Created) if the
API call has run to completion, which means all items in the request structure were able to be
processed. This response code is returned even if there were failures for individual items in the array.
The response body contains information about each item processed and the structure for each item
contains a non-null errorDetails structure if that item was not successfully processed. The caller is
responsible for checking for the errorDetails structure for each item in the array to perform proper
error handling.
The general response processing logic for these types of API’s is:
if (statusCode == 200 || statusCode == 201)
{
// check for errors with each item processed.
var itemsArray = Json.Decode(response.body);
foreach(var item in itemsArray)
{
if (item.errorDetails != null)
{
// an error occurred during processing - handle it
string errorCode = item.errorDetails.errorCode;
string errorMessage = item.errorDetails.message;
// perform error handling based on errorCode
}
else
{
// item processing was successful
}
}
}
else
{
// statusCode indicated overall error with the request.
}
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 625
DocuSign's SOAP and REST APIs use the same error list. The REST API shows the upper-case error
code and the message text, while the SOAP API shows the error number and the message text. In
many cases additional information is added to the message string.
Error Code Message (Base)
ACCESS_CODE_IN_WRONG_FORMAT Access Code provided is not in the correct
format.
ACCOUNT_DOES_NOT_EXIST_IN_SYSTEM The AccountID did not identify an Account in
the system.
ACCOUNT_HAS_BEEN_SUSPENDED The specified Account is suspended
ACCOUNT_IS_NOT_MANAGED_BY_DISTRIBUTOR The account is not managed by the
distributor.
ACCOUNT_LACKS_CUSTOM_TAB_PERMISSION This Account lacks sufficient permissions to
use custom tab.
ACCOUNT_LACKS_PERMISSION_TO_CORRECT_ The account lacks sufficient permissions to
TABS correct tabs.
ACCOUNT_LACKS_PERMISSIONS This Account lacks sufficient permissions.
ACCOUNT_LACKS_PRICING_PLAN The specified Account lacks an Account
Pricing Plan
ACCOUNT_NOT_AUTHORIZED_FOR_ ENVELOPE This account is not authorized to access the
requested envelope.
ACCOUNT_PLAN_DOES_NOT_EIXST_IN_SYSTEM The Current Account Plan does not exist in
the system.
ACCOUNT_PROVISIONER_INSUFFICIENT_SEATS Insufficient Account Provisioning Distributor
Seats.
ACCOUNT_PROVISIONER_INVALID_ADMIN_NRD Invalid Admin NRDS ID
S
ACCOUNT_SPECIFIED_INVALID The account id provided does not exist, or is
improperly formatted.
ACTIVATION_FAILED The token for a recipient that has failed
activation cannot be generated.
ADDRESS_DOES_NOT_EXIST_IN_SYSTEM The Address Id did not identify an Address in
the system.
ADDRESS_UPDATE_FAILED The address update failed.
ADDRESSBOOK_ACCOUNTNAME_INVALID The account name provided does not exist or
is null or empty.
ADDRESSBOOK_ATTEMPTED_UPDATE_FAILED Attempting to update the address book failed.
ADDRESSBOOK_CANTSHARE Invalid address book share permissions.
ADDRESSBOOK_CONTACTID_INVALID The contact id provided does not exist in the
address book, or is improperly formatted.
ADDRESSBOOK_DESIGNATION_INVALID Address Book Designation is not valid.
ADDRESSBOOK_EMAIL_INVALID Invalid Email for the address book entry.
ADDRESSBOOK_ID_INVALID Invalid ID for the address book entry.
ADDRESSBOOK_INVALID_RESULT_STATE The address book action resulted in an
invalid state.
ADDRESSBOOK_INVALID_SEARCH_CRITERIA The search criteria provided are invalid.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 626
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 627
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 628
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 629
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 630
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 631
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 632
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 633
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 634
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 635
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 636
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 637
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 638
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 639
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 640
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 641
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 642
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 643
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 644
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 645
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 646
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 647
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 648
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 649
Account Settings
There are a number of account settings that determine the time zone and date/time format used for an
account. These options are set in the DocuSign web console Preferences – Features; some can be
set through the API account settings.
Default Account Time Zone: This option selects the default time zone to be used in the User
Interface display. A member of the account can set their own time zone preference to override
the account default if the Allow account member to set their own unique time zone option (see
below) is enabled.
Time Zone Used For API: This option selects the default time zone used for DocuSign SOAP
API operations.
Format for Date Signed: This option selects the date format applied to the Date Signed tags.
Format for Time Signed: This option selects the time format applied to the Date Signed tags.
You can also select to Include AM/PM designation for the time format.
Allow account member to set their own unique time zone: When selected, account
members can set their own personal time zone, which can be different that the default account
time zone.
If the Allow account member to set their own unique time zone option is selected, there are two
options the account members can set by a user:
My local time zone: This option selects the default time zone to be used in the account
member’s DocuSign web console.
Format my local date and time: This option selects the date/time format used in the account
member’s DocuSign web console and the format used when the account member signs
envelopes.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
DocuSign REST API Guide, version 2 650
Envelope History: When viewing History through the web console or signing user interface, the time
zone and date/time format used depends on the viewer:
If the sender is viewing the History, the sender's time zone and date/time format settings are
used. If the sender’s account does not allow users to set their own time zones or date/time
format, then the account settings are used.
If the viewer has a DocuSign account that allows users to set their own time zone and
date/time format, then the viewer's time zone and date/time format settings are used.
If the viewer has a DocuSign account that does not allow users to set their own time zone and
date/time format, then the account time zone and date/time format settings are used.
If the viewer does not have a DocuSign account, then the sender's time zone and date/time
format are used. If the sender’s account does not allow users to set their own time zones or
date/time format, then the account settings are used.
REST API: When getting information from the REST API, all non-PDF time zone responses are
returned in ISO 8601 date/time format using GMT as the time zone. PDF items retrieved through the
REST API, such as a Certificate of Completion or documents with date tags, use Certificate of
Completion and PDF documents settings previously described.
SOAP API: When getting information from the SOAP API, all non-PDF items use the time zone set by
the Time Zone Used For API option. PDF items retrieved through the SOAP API, such as a
Certificate of Completion or documents with date tags, use Certificate of Completion and PDF
documents settings previously described.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.
221 Main Street, Suite 1000, San Francisco, CA 94105 Ι Tel. 866.219.4318 Ι www.docusign.com Ι © DocuSign, Inc.