DocuSign icon

DocuSign

Interact with the DocuSign eSignature REST API v2.1 — complete enterprise coverage

Actions341

Envelope Attachment → Create / Update

AI-generated

Summary

Create or update an envelope attachment on a DocuSign envelope.

Inputs

  • authentication — OAuth2 or JWT (Service Integration) authentication method.
  • category — API category to work with; default is "envelopes".
  • accountId (required) — DocuSign Account ID (GUID).
  • envelopeId (required) — ID of the envelope to which the attachment will be added.
  • attachmentName (required) — Display name for the attachment.
  • attachmentType — File extension type; options include .pdf, .docx, .png, .jpg, or other.
  • source — Source of binary data; options are "binary" (from previous node) or "base64".
  • binaryProperty — Binary property name to read data from when source is "binary".
  • base64Content — Base64-encoded content when source is "base64".
  • accessControl — Access control level; options are "senderOnly" or "senderAndAllRecipients".
  • label — Label displayed for the attachment.
  • remoteUrl — URL to fetch the attachment from, alternative to binary/base64.

Output shape

a single attachment record

Returns the created or updated envelope attachment details; fields may be a subset of the input.

Examples

Example 1: Add a PDF file from a previous node as an envelope attachment

Set Authentication to OAuth2, Category to envelopes, Account ID to 12345678-90ab-cdef-1234-567890abcdef, Envelope ID to a1b2c3d4-5678-90ab-cdef-1234567890ab, Attachment Name to "Contract", Attachment Type to ".pdf", Source to "binary", Binary Property to "data", Access Control to "senderAndAllRecipients", Label to "Signed contract".

Example 2: Upload a Base64-encoded image as an attachment to an envelope

Set Authentication to OAuth2, Category to envelopes, Account ID to 12345678-90ab-cdef-1234-567890abcdef, Envelope ID to e7f8g9h0-1234-5678-90ab-cdef12345678, Attachment Name to "Company Logo", Attachment Type to ".png", Source to "base64", Base64 Content to "iVBORw0KGgoAAAANSUhEUgAA...", Access Control to "senderAndAllRecipients", Label to "Logo".

Example 3: Create an attachment from a remote URL in a draft envelope

Set Authentication to OAuth2, Category to envelopes, Account ID to 12345678-90ab-cdef-1234-567890abcdef, Envelope ID to f1g2h3i4-5678-90ab-cdef-1234567890ab, Attachment Name to "Reference Doc", Attachment Type to ".pdf", Source to "remoteUrl", Remote URL to "https://example.com/reference.pdf", Access Control to "senderAndAllRecipients", Label to "Reference".

Links

Discussion