DocuSign
Connect & Ingest data from DocuSign
DocuSign is a leading electronic signature and digital agreement platform. The Sling DocuSign connector extracts data from the DocuSign eSignature REST API v2.1, supporting envelopes, recipients, documents, templates, audit events, and custom fields.
CLI Pro Required: APIs require a CLI Pro token or Platform Plan.
Setup
The following credentials and inputs are accepted:
Secrets:
client_id(required) -> Your DocuSign Integration Key (Client ID)client_secret(required) -> Your DocuSign Secret Keyrefresh_token(required) -> OAuth2 refresh token obtained via Authorization Code Grant flowaccess_token(required) -> Set to"expired"initially; will be auto-refreshedtoken_type(required) -> Set to"Bearer"expiry(required) -> Set to"2020-01-01T00:00:00Z"to trigger initial refreshaccount_id(required) -> Your DocuSign API Account ID (GUID)
Inputs:
base_uri(optional) -> DocuSign base URI. Default:https://demo.docusign.netfor sandbox. Usehttps://na2.docusign.net(or your region) for production.auth_url(optional) -> OAuth2 token endpoint. Default:https://account-d.docusign.com/oauth/token. Usehttps://account.docusign.com/oauth/tokenfor production.authorize_url(optional) -> OAuth2 authorization endpoint. Default:https://account-d.docusign.com/oauth/auth. Usehttps://account.docusign.com/oauth/authfor production.anchor_date(optional) -> Starting date for historical data extraction (default: 1 year ago). Format:YYYY-MM-DDTHH:MM:SSZ
Getting Your Credentials
DocuSign uses OAuth2 Authorization Code Grant for authentication. A free developer sandbox account provides full API access for testing.
Create a free developer account at https://www.docusign.com/developers/sandbox
Go to Admin > Apps and Keys in your developer account
Note your User ID and API Account ID from the "My Account Information" section
Click Add App and Integration Key to create a new app
Copy the Integration Key (this is your
client_id)Under Authentication, click Add Secret Key and copy it (this is your
client_secret)Under Additional settings, add a Redirect URI (e.g.,
https://localhost/callback)Obtain a refresh token by completing the OAuth2 Authorization Code flow:
Navigate to:
https://account-d.docusign.com/oauth/auth?response_type=code&scope=signature%20extended&client_id=YOUR_CLIENT_ID&redirect_uri=YOUR_REDIRECT_URIGrant consent and capture the authorization
codefrom the redirectExchange the code for tokens:
POST https://account-d.docusign.com/oauth/tokenwith Basic auth (client_id:client_secret) and bodygrant_type=authorization_code&code=AUTH_CODE&redirect_uri=YOUR_REDIRECT_URISave the
refresh_tokenfrom the response
Production vs Sandbox: For production use, replace account-d.docusign.com with account.docusign.com in auth URLs, and use your production base URI (e.g., https://na2.docusign.net) from the /oauth/userinfo endpoint.
Using sling conns
sling connsEnvironment Variable
See here to learn more about the .env.sling file.
Sling Env File YAML
See here to learn more about the sling env.yaml file.
With custom inputs for production:
Replication
Here's an example replication configuration to sync DocuSign data to a PostgreSQL database:
For incremental sync on the envelopes endpoint:
Endpoints
envelopes
Envelopes with status, timestamps, subject, and metadata
Yes (via lastModifiedDateTime)
recipients
Signers, carbon copies, and other recipients per envelope
No (child of envelopes)
documents
Document metadata per envelope (name, type, pages)
No (child of envelopes)
audit_events
Audit trail events per envelope
No (child of envelopes)
custom_fields
Custom text and list fields per envelope
No (child of envelopes)
templates
Reusable envelope templates
No
Endpoint Details
Envelopes
The envelopes endpoint is the primary endpoint that fetches all envelopes from your DocuSign account. It supports incremental sync using the from_date parameter, which filters envelopes modified after the specified date. Child endpoints (recipients, documents, audit_events, custom_fields) are automatically queued based on the envelopes fetched.
Recipients
Returns all recipient types for each envelope, including signers, carbon copies, certified deliveries, agents, editors, intermediaries, in-person signers, witnesses, notaries, seals, and participants.
Templates
Returns all reusable envelope templates in the account, including metadata like name, description, creation date, and folder information.
If you are facing issues connecting, please reach out to us at [email protected], on discord or open a Github Issue here.
Last updated
Was this helpful?