- Generate a standalone PDF — produce a filled document without a signing workflow.
- Send as a signature request — use the template as the document in a signature request via the
/signature_request/send-from-templateendpoint.
Tags and field names use
object.field naming conventions (for example:
Client.Name, Effective.Date, Customer.AgreeToTerms).Placeholder types
| Type | Used in | Description |
|---|---|---|
| Merge tag | Sign templates | Text placeholder embedded in document content. Replaced with a plain-text value during generation. |
| Form field | Sign and PDF templates | Interactive input in the document (text box, checkbox). Can be prefilled with a value. |
| Variable | AgreementGen templates | Dynamic variable rendered as plain text. Used by AgreementGen (ag_ prefix templates). |
List your templates
Call Note the
GET /templates to see the templates available in your workspace. Provide the X-Lumin-API-Version: 1.1 header and the required page and limit query parameters.template_id — the prefix tells you the template type:| Prefix | Template type |
|---|---|
sign_ | Lumin Sign template (supports merge tags and form fields) |
ag_ | AgreementGen template (supports variables) |
pdf_ | PDF template (supports form fields) |
Get template details
Call Supply values for every item where
GET /templates/{template_id} to inspect the specific tags, fields, and variables the template expects. Use this to know exactly what keys to include when you generate the document.is_required: true. Optional fields can be omitted.Generate the PDF
Call JSON response (
POST /templates/{template_id}/generate-document with the values for your tags, fields, and/or variables.Accept: application/json):signed_url is a pre-signed HTTPS download link that expires in 30 minutes (expires_at is a Unix timestamp in seconds).PDF binary response (Accept: application/pdf):When you set Accept: application/pdf, the API returns the raw PDF binary stream instead of JSON. Use this to stream the file directly without a separate download step.Request body reference
| Field | Type | Description |
|---|---|---|
tags | object | Merge tag values for Sign templates. Keys must match tag names exactly. |
fields | object | Form field values. Supports text (string) and checkbox (boolean). |
variables | object | Variable values for AgreementGen templates. |
document_name | string | Optional. Name for the generated document. Defaults to the template name. |