Generate Document from Template
Creates a downloadable document from an existing Lumin template.
Required scopes (OAuth 2.0)
Required scopes (OAuth 2.0)
templatesAuthorizations
Provide your API key in the X-API-Key header, e.g., X-API-Key: YOUR_API_KEY.
Path Parameters
ID of the template to generate document from.
Body
Key–value pairs for Merge Tags defined in the Sign template. Keys must match tag names. Values replace the corresponding tags and are rendered as plain text in the generated document.
Key–value pairs for Form Fields defined in the template. Keys must match field names. Values prefill the corresponding fields in the generated document.
Key–value pairs for Variables defined in the AgreementGen template. Keys must match variable names. Values prefill the corresponding variables and are rendered as plain text in the generated document.
Map of collection name → array of record objects used to expand table-scoped row-loop markers in the template.
- Each key must match a collection name returned by Get Template Details under
collections[].name. - Each value is an ordered array of flat record objects; each record is a key–value map where keys match the collection's variable names and values are strings.
- Records are rendered in array order.
- Maximum 100 items per collection, and up to 50 collections per request.
Applies to AgreementGen templates only. Ignored silently when the template type is not lumin.
Optional name for the generated document. If omitted, the document name defaults to the template's name.
Response
Returns the generated document.
Name of the generated document (from input or default).
Signed HTTPS URL to download the generated document. Expires in 30 minutes.
Unix epoch timestamp (in seconds) indicating when signed_url will no longer work.