render_template_preview
Generate a preview PDF from a template using its built-in fields. Returns a signed download URL with caching for instant repeated access.
Instructions
Generate a preview PDF for a DocRenders template using its built-in preview_fields data. Returns a signed download URL. Previews are cached — repeated calls for the same template return instantly. Does not count against your render quota.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| template | Yes | Template name (e.g. "invoice", "resume") or user template ID (tpl_…) | |
| data | No | Optional data overrides. Omit to use the template's built-in preview_fields. |