Create a PDF from a template
apitemplate_create_pdfWRITE: renders one PDF from a saved PDF template and your JSON data (the keys the template uses, e.g. invoice_number, items), and returns the hosted download_url (never the file bytes). Synchronous. COST: uses 1 generation of your APITemplate.io plan quota per call (see apitemplate_get_account). Do not retry or repeat it unless needed; every call is counted. POST /v2/create-pdf (export_type=json).
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | JSON data merged into the template, e.g. {"invoice_number":"INV-1","total":42}. Keys depend on the template. | |
| meta | No | Your own reference id for this file; it shows up in apitemplate_list_objects. | |
| filename | No | Custom file name ending in .pdf (default: a random UUID). | |
| expiration | No | Minutes until the hosted file expires: 0 = keep permanently (default), or 1-10080. | |
| output_html | No | Also return html_url, the rendered HTML. | |
| template_id | Yes | The template id (apitemplate_list_templates, or the web console, Manage Templates). | |
| generation_delay | No | Milliseconds to wait before rendering (0-30000), for pages that load content late. |