Bastian Document Template icon

Bastian Document Template

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

Create Document

AI-generated

Summary

Create a document from a template for signing and optionally send signing invitation emails to recipients.

Inputs

  • main — Main input data flow (not directly consumed beyond triggering the operation)
  • credentials (required) — bastianTechnologiesApi credential providing the API key for authentication

Output shape

main

Returns the API response from the document creation endpoint as a single output item, paired with the input item.

Examples

Example 1: Create a document from template 'abc123' with two recipients, pre-fill a field, and send emails.

templateId: 'abc123'; recipients: [{name: 'Alice', email: 'alice@example.com', role: 'signer'}, {name: 'Bob', email: 'bob@example.com', role: 'approver'}]; fieldValues: [{fieldName: 'clientName', value: 'Acme Corp'}]; sendEmail: true

Example 2: Create a document without sending emails.

templateId: 'abc123'; recipients: [{name: 'Charlie', email: 'charlie@example.com'}]; sendEmail: false

Discussion