Skip to main content
POST
Render a PDF from a template with optional files and JSON data

Body

multipart/form-data
documentID
string
required

Identifier of the template to render.

Example:

"mailParkingNotice"

placeholders
object
required

JSON object mapping placeholder names to string values. May be empty ({}).

Example:
data
object

Dynamic JSON data parts (HTML templates only): zero or more parts named data.<fieldName> (e.g. data.content, data.ticket). Each part contains JSON-encoded data (objects, arrays, primitives). PDF templates will reject data.* parts.

Example:
files
object

Dynamic file parts: zero or more parts named file.<fieldName> (e.g. file.qrCode, file.attachment). For PDF templates: must match template field names. For HTML templates: available as {fieldName}Base64 in template.

Response

PDF successfully rendered.

The response is of type file.