Render a PDF from a template and data
Renders a PDF document by merging data into a template. Provide either templateId (referring to a stored template owned by the calling organization or a system template) or template (an inline BlockTemplate). Returns the binary PDF as application/pdf. Optional attachments are embedded after the render (visible in the Acrobat Attachments pane).
Authentication
API Key authentication. Use sk_live_* for production or sk_test_* for testing.
Request
Data object that is merged into the template placeholders. Shape is template-specific — keys must match the placeholders the template expects.
UUID of a stored template (system or organization-owned). Mutually exclusive with template.
Inline template definition. Mutually exclusive with templateId.
Optional file attachments to embed into the rendered PDF (visible in the Acrobat Attachments pane; same mechanism as ZUGFeRD/Factur-X embedding).
