The DocuSign API enables you to integrate electronic signature workflows into your applications, automate the process of sending and receiving documents for signatures, and securely manage related data. Leveraging Pipedream's platform, you can build powerful automations that streamline how contracts and agreements are handled, enhance compliance, and improve overall efficiency.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
docusign: {
type: "app",
app: "docusign",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://account.docusign.com/oauth/userinfo`,
headers: {
Authorization: `Bearer ${this.docusign.$auth.oauth_access_token}`,
},
})
},
})
Automated Contract Workflow: Trigger a Pipedream workflow when a new contract is added to a cloud storage platform like Dropbox. Automatically send the document for signature via DocuSign, and once signed, save the final version back to Dropbox and notify relevant parties through email or a Slack message.
CRM Integration for Sales: Upon closing a deal in a CRM system like Salesforce, a Pipedream workflow can be initiated to send the sales agreement through DocuSign for signature. After the document is fully signed, update the Salesforce record with the status of the agreement and attach the signed document for easy access.
Onboarding Process Automation: For HR teams, initiate a Pipedream workflow when a new employee is added to an HR management system like BambooHR. Send all necessary onboarding documents through DocuSign for e-signature. Once completed, store the signed documents in a secure HR folder and update the employee's records with their signed contracts.
Create and send an envelope, or create a draft envelope. See the documentation here
Creates a signature request from a template See the docs here
Docusign uses OAuth authentication. When you connect your Docusign account, Pipedream will open a popup window where you can sign into Docusign and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Docusign API.
Pipedream requests the following authorization scopes when you connect your account:
signature
extended
openid
GET
https://account.docusign.com/oauth/auth
?
client_id={{oauth.client_id}}
&
state={{oauth.state}}
&
response_type=code
&
scope={{oauth.space_separated_scopes}}
&
redirect_uri={{oauth.redirect_uri}}
POST
https://account.docusign.com/oauth/token
content-type: application/x-www-form-urlencoded
accept: application/json
grant_type=authorization_code
&
code={{oauth.code}}
POST
https://account.docusign.com/oauth/token
content-type: application/x-www-form-urlencoded
accept: application/json
grant_type=refresh_token
&
refresh_token={{oauth.refresh_token}}