ByteChef LogoByteChef

DocuSign

DocuSign is a cloud-based e-signature platform that enables secure digital document signing and workflow automation.

Categories: Productivity and Collaboration

Type: docusign/v1


Connections

Version: 1

oauth2_authorization_code

Properties

NameLabelTypeDescriptionRequired
clientIdIntegration KeySTRINGDocuSign app integration key.true
clientSecretSecret KeySTRINGDocuSign app secret key.true
accountIdAPI Account IDSTRINGDocuSign API account ID.true
environmentEnvironmentSTRING
Options demo, www, eu
Environment of the connection.true
baseUriAccount Base URISTRINGDocuSign account base URI.true

Connection Setup

Create DocuSign App

  1. Navigate to DocuSign Admin page.
  2. Click on "Add App and Integration Key".
  3. Enter app name and click on "Create App".
  4. Here you can see your "Integration Key".
  5. Select "Third-party integration key".
  6. Click here.
  7. Click on "Add Secret Key".
  8. Copy your "Secret Key" because you will not be able to access it again.
  9. Click on "Add URI".
  10. Add https://app.bytechef.io/callback or http://127.0.0.1:5173/callback.
  11. Click this icon.
  12. Check every HTTP method.
  13. Click on "Save".
  14. Here you can see "API Account ID" and "Account Base URI".

Actions

Create Envelope

Name: createEnvelope

Creates a new envelope.

Properties

NameLabelTypeDescriptionRequired
documentsDocumentsARRAY
Items [{FILE_ENTRY(documentFile), STRING(name), INTEGER(documentId)}($document)]
The documents to be signed.true
statusStatusSTRING
Options sent, created
The status of the envelope.true
emailSubjectEmail SubjectSTRINGThe subject of the email used to send the envelope.true
signersSigner RecipientsARRAY
Items [{STRING(name), STRING(email), INTEGER(recipientId)}($recipient)]
The recipients of the envelope that have to sign the documents inside it.true
carbonCopiesCc RecipientsARRAY
Items [{STRING(name), STRING(email), INTEGER(recipientId)}($recipient)]
The recipients of the envelope that can only view the documents inside it.false

Example JSON Structure

{
  "label" : "Create Envelope",
  "name" : "createEnvelope",
  "parameters" : {
    "documents" : [ {
      "documentFile" : {
        "extension" : "",
        "mimeType" : "",
        "name" : "",
        "url" : ""
      },
      "name" : "",
      "documentId" : 1
    } ],
    "status" : "",
    "emailSubject" : "",
    "signers" : [ {
      "name" : "",
      "email" : "",
      "recipientId" : 1
    } ],
    "carbonCopies" : [ {
      "name" : "",
      "email" : "",
      "recipientId" : 1
    } ]
  },
  "type" : "docusign/v1/createEnvelope"
}

Output

Type: OBJECT

Properties

NameTypeDescription
envelopeidSTRINGThe id of the envelope.
uriSTRINGA URI containing the user ID.
statusDateTimeSTRINGThe DateTime that the envelope changed status (i.e. was created or sent.)
statusSTRINGIndicates the envelope status.

Output Example

{
  "envelopeid" : "",
  "uri" : "",
  "statusDateTime" : "",
  "status" : ""
}

Download Envelope Document

Name: downloadEnvelopeDocument

Downloads a single document or all documents from an envelope.

Properties

NameLabelTypeDescriptionRequired
fromDateFrom DateDATEEnvelops that were created from this date will be fetched.true
envelopeIdEnvelope IDSTRING
Depends On fromDate
The ID of the envelope.true
documentIdDocument IDSTRING
Depends On envelopeId
ID of the document that will be downloaded from the envelope.true

Example JSON Structure

{
  "label" : "Download Envelope Document",
  "name" : "downloadEnvelopeDocument",
  "parameters" : {
    "fromDate" : "2021-01-01",
    "envelopeId" : "",
    "documentId" : ""
  },
  "type" : "docusign/v1/downloadEnvelopeDocument"
}

Output

Type: FILE_ENTRY

Properties

NameTypeDescription
extensionSTRING
mimeTypeSTRING
nameSTRING
urlSTRING

Output Example

{
  "extension" : "",
  "mimeType" : "",
  "name" : "",
  "url" : ""
}

Find Envelope and Document ID

To find the Envelope ID, click here.

To find the Document ID, click here.

What to do if your action is not listed here?

If this component doesn't have the action you need, you can use Custom Action to create your own. Custom Actions empower you to define HTTP requests tailored to your specific requirements, allowing for greater flexibility in integrating with external services or APIs.

To create a Custom Action, simply specify the desired HTTP method, path, and any necessary parameters. This way, you can extend the functionality of your component beyond the predefined actions, ensuring that you can meet all your integration needs effectively.


Additional Instructions

How to find Envelope ID

  1. Login into your DocuSign account.
  2. Click on Agreements.
  3. Select the envelope you want to find ID of.
  4. URL will be in the format https://apps.docusign.com/send/documents/details/b8f79238-1164-4c24-9629-01ca78dc63cf
  5. Envelope ID will be b8f79238-1164-4c24-9629-01ca78dc63cf in this case. *. You will also be able to see Copy Envelope ID to clipboard button, when you click on it, you will have the envelope ID in your clipboard.

How to find Document ID

  1. Login into your DocuSign account.
  2. Click on Agreements.
  3. Select the envelope you want document ID from.
  4. Open document you want to find ID of.
  5. URL will be in the format https://apps.docusign.com/api/send/api/accounts/f4a3a35c-e5c1-46c5-afa0-b9ad3b28efea/envelopes/b8f79238-1164-4c24-9629-01ca78dc63cf/documents/1/preview/name
  6. Document ID will be after /documents/, in this case document ID is 1.

How is this guide?

Last updated on

On this page