generate_batch
Generate documents for multiple records in one call and receive a ZIP download URL. Each record costs credits based on output format: 1 credit for DOCX, 2 for PDF.
Instructions
Generate documents for multiple records in one call. Returns a ZIP download URL. Each record costs 1 credit (DOCX) or 2 credits (PDF).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| templateId | Yes | Template UUID | |
| records | Yes | Array of data objects, one per document. Each object's keys must match template variables. | |
| outputFormat | No | Output format: docx (1 credit each) or pdf (2 credits each) | docx |