Render
Authorization
AuthorizationRequiredBearer <token>API key from Settings page. Keys start with p4_live_ prefix.
In: header
Request Body
application/jsonRequiredtemplate_idstringTemplate ID (tmpl_xxx) or slug. The template must belong to the authenticated user.
htmlstringRaw HTML string. Supports Handlebars {{variables}} syntax. Use this for one-off renders without saving a template.
dataobjectData to replace {{variables}} in the template. Supports strings, numbers, booleans, nested objects, and arrays (for {{#each}} blocks).
formatobjectPage format configuration. If omitted, defaults to A4 portrait with 20mm top/bottom and 15mm left/right margins.
PDF generated successfully