API reference All endpoints require an API key in the Authorization: Bearer header. See authentication for details. Endpoints Render PDFGenerate a PDF from a template or raw HTML.TemplatesCreate, read, update, and delete templates.LogsRetrieve PDF generation history.StatsAggregated usage statistics.AccountAccount management endpoints.Generate a PDFRender a PDF from a saved template or raw HTML. Pass `template_id` to use a saved template, or `html` for one-off renders. Variables in `{{handlebars}}` syntax are replaced with values from `data`. Returns the PDF as binary data (`application/pdf`).