Bastian Document Template icon

Bastian Document Template

Document Templates with E-Signatures - Create, List, and Manage Documents

Download Document

AI-generated

Summary

Downloads a signed document using its ID and a download token, returning the PDF as binary data.

Inputs

  • main (required) — Workflow items; each item triggers a download request.

Output shape

main

Each output item includes a JSON success flag ({success:true,documentId:'…'}) and the downloaded PDF as binary data under the key data (file name signed_document.pdf, MIME type application/pdf).

Examples

Example 1: Download a completed document after signing

Set the Document ID to the ID of the document you want to retrieve, and provide the Download Token obtained from the Get Document Status operation or a webhook.

Discussion