English
Docusign
Your Docusign envelopes: send an email’s attachments for signature, track their status, fetch the signed PDF and react when an envelope is completed.
A Docusign connection lets the Docusign node send an email’s attachments or a template for signature, track the envelope, fetch the signed PDF into the run and void an envelope; and the Docusign — envelope completed trigger start a workflow.
The connection uses Docusign’s JWT grant: Loop & Roll acts on behalf of a Docusign user with an RSA private key, with no redirect each time. The token (one hour) is requested again automatically; the private key is encrypted at rest and never shown again.
At a glance
- Identifier:
docusign - Family: Service
- Set up by: A member (personal) or an administrator (shared with the organisation)
- Authentication: API key or token
- Credential type:
service:docusign - Official API documentation: https://developers.docusign.com/docs/esign-rest-api/reference/
- Environments: Demo (
demo) —{baseUri}/restapi/v2.1/accounts/{accountId}; Production (production) —{baseUri}/restapi/v2.1/accounts/{accountId} - Rate limit applied by Loop & Roll: 50 requests per minute and per connection; up to 3 attempts on a 429 or a 5xx
- Connection test: Yes
Step by step
The same steps are shown in the connection form of the app.
- In Docusign, open Settings → Apps and Keys: note the “API Account ID”, the “User ID” and the “Account Base URI” (for example
https://eu.docusign.net). - Add an app (“Add App and Integration Key”), generate an RSA key pair and copy the private key; declare a redirect URI.
- Give your consent once by opening
https://account-d.docusign.com/oauth/auth?response_type=code&scope=signature%20impersonation&client_id=<integration key>&redirect_uri=<your redirect URI>in the browser (account.docusign.comin production), then accept. - Choose the environment, fill in the fields below and paste the whole private key (with its BEGIN and END lines).
Connection fields
| Field | Kind | Required | Notes |
|---|---|---|---|
Environment (environment) | Choice | Yes | demo (Demo (developer)), production (Production) Default: production |
Integration key (integrationKey) | Text | Yes | |
User ID (userId) | Text | Yes | The user the envelopes are sent on behalf of (a GUID, not an email address). |
API account ID (accountId) | Text | Yes | |
Account base URI (baseUri) | Text | Yes | No path nor trailing slash: https://demo.docusign.net in demo. |
RSA private key (privateKey) | Secret — never shown again | Yes |
Before you start
- A Docusign eSignature account (a developer account for the Demo environment).
- An app (integration key) with an RSA key pair and a redirect URI, created in Settings → Apps and Keys.
- The user’s consent, given once in the browser (step 3 below).
Add the connection
- In Docusign, Settings → Apps and Keys: note the API Account ID, the User ID and the Account Base URI (
https://eu.docusign.net,https://demo.docusign.net…). - Add an app, generate an RSA key pair and copy the private key.
- Open
https://account-d.docusign.com/oauth/auth?response_type=code&scope=signature%20impersonation&client_id=<integration key>&redirect_uri=<redirect URI>(account.docusign.comin production) and accept. - In Connections, Docusign card: choose the Environment, fill in the fields, paste the whole private key, then Create the connection and Test the connection (
GET /templates).
Calls used
| Action | Docusign call (eSignature v2.1) |
|---|---|
| Send the attachments for signature | POST /envelopes (base64 documents, signers in order) |
| Send from a template | POST /envelopes (templateId, templateRoles) |
| Get an envelope | GET /envelopes/{id} |
| Get the recipients | GET /envelopes/{id}/recipients |
| Fetch the signed PDF | GET /envelopes/{id}/documents/combined |
| Void | PUT /envelopes/{id} (status: voided) |
| Trigger | GET /envelopes?from_date=&status= |
Common errors
| Message or code | Cause | What to do |
|---|---|---|
consent_required | The consent of step 3 was not given (or was withdrawn). | Open the consent address and accept. |
integration.connection_unusable | A field does not match its format (base URI, GUID). | Fix the connection. |
integration.rate_limited | Account quota reached (3,000 calls per hour by default at Docusign). | Temporary: the engine resumes the step later. |
Nodes that use this connection
- Docusign — envelope completed —
trigger.docusign - Docusign —
docusign.api