Skip to content

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.

  1. 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).
  2. Add an app (“Add App and Integration Key”), generate an RSA key pair and copy the private key; declare a redirect URI.
  3. 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.com in production), then accept.
  4. Choose the environment, fill in the fields below and paste the whole private key (with its BEGIN and END lines).

Connection fields ​

FieldKindRequiredNotes
Environment (environment)ChoiceYesdemo (Demo (developer)), production (Production) Default: production
Integration key (integrationKey)TextYes
User ID (userId)TextYesThe user the envelopes are sent on behalf of (a GUID, not an email address).
API account ID (accountId)TextYes
Account base URI (baseUri)TextYesNo path nor trailing slash: https://demo.docusign.net in demo.
RSA private key (privateKey)Secret — never shown againYes

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 ​

  1. 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…).
  2. Add an app, generate an RSA key pair and copy the private key.
  3. Open https://account-d.docusign.com/oauth/auth?response_type=code&scope=signature%20impersonation&client_id=<integration key>&redirect_uri=<redirect URI> (account.docusign.com in production) and accept.
  4. 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 ​

ActionDocusign call (eSignature v2.1)
Send the attachments for signaturePOST /envelopes (base64 documents, signers in order)
Send from a templatePOST /envelopes (templateId, templateRoles)
Get an envelopeGET /envelopes/{id}
Get the recipientsGET /envelopes/{id}/recipients
Fetch the signed PDFGET /envelopes/{id}/documents/combined
VoidPUT /envelopes/{id} (status: voided)
TriggerGET /envelopes?from_date=&status=

Common errors ​

Message or codeCauseWhat to do
consent_requiredThe consent of step 3 was not given (or was withdrawn).Open the consent address and accept.
integration.connection_unusableA field does not match its format (base URI, GUID).Fix the connection.
integration.rate_limitedAccount quota reached (3,000 calls per hour by default at Docusign).Temporary: the engine resumes the step later.

Nodes that use this connection ​

Loop & Roll — the workflow builder for email.