DocuSign icon

DocuSign

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

Actions341

Envelope Template → Apply to Document

AI-generated

Summary

Applies a template to a document and returns the updated document (binary).

Inputs

  • Authentication (required) — The authentication method: OAuth2 or JWT (Service Integration).
  • Category (required) — The API category to work with (defaults to Envelopes).
  • Account ID (required) — The DocuSign Account ID (GUID).
  • Envelope ID (required) — The ID (GUID) of the envelope.
  • Template ID (required) — The ID (GUID) of the template to apply.
  • Document ID (required) — The numeric ID of the document. Use 'combined' for all merged, 'archive' for ZIP, or 'certificate' for CoC. Defaults to 1.

Output shape

a binary file (the merged document).

Returns a single binary item per input item. The merged document is output via the node's binary data. The original envelope is not modified; this operation applies the template to the document and returns the result.

Examples

Example 1: Merge a template into a document within an envelope.

Set Authentication to OAuth2, provide the Account ID, Envelope ID, Template ID, and Document ID (e.g., 1).

Links

Discussion