Skip to main content
POST
Generate a PDF or PNG document by combining a template with your data.
string
required
The ID of the template to use. Get this from your dashboard or the List Templates endpoint.
object
required
Key-value pairs of data to inject into the template. Keys should match the field keys defined in your template.
string
default:"pdf"
Output format: pdf or png
integer
default:"2"
Render quality / device scale factor. Integer 1–3 (higher is sharper and produces a larger file).
string
URL to call when document generation completes.
integer
Page width in pixels. Overrides template setting.
integer
Page height in pixels. Overrides template setting.