Skip to content
PDF generation API

From application data to finished PDFs.

Keep your document design in a reusable template. Your application chooses a published version and supplies JSON Parameters; Tembuilder processes the render job and makes the completed PDF available to download.

POST/v1/pdf/render
{  "template_id": "<template-uuid>",  "version": 1,  "variant": "Standard",  "parameters": {    "customer": "Acme Studio"  }}
HTTP 202 / JOB ACCEPTED
render_id → status → PDF
01 / Explore the workflow

A clear path from template to PDF

Read the API reference ↗
  1. Design your template and define the JSON Parameters your application will supply.

  2. Preview with representative data, save and publish a version before rendering.

  3. Submit a render request with the selected version and Parameters using a project API key.

  4. Follow job status or a completion webhook, then retrieve the PDF after success.

Rendering runs as a job. Poll its status or receive a webhook, then download the PDF after the job succeeds.

02 / INTEGRATION / RENDER API

Build document generation into your product

Change layouts with version control

Prepare a new template version while your application keeps using its selected version. If the Parameters change, update the integration accordingly.

Read the guide ↗

Follow each render to completion

Inspect job status and history. Use webhooks for completion events, verify signatures and handle failed jobs before retrying.

Read the guide ↗

Prepare for real document lengths

Use the editor to check page margins, headers and long tables with short and long JSON inputs before publishing.

Read the guide ↗
HTML / CSS → JSON → PDFInvoicesInvoices
03 / DESIGN & DATA

Try an invoice with your own data

Import the quickstart template and sample JSON. Preview, publish and render a PDF in your project before connecting your application.

BEFORE YOU START

Questions before you start

Read the guide ↗
Does the render endpoint accept raw HTML?

Render requests reference a published template version and supply Parameters. Create or import the HTML/CSS template in the workspace first; this is not an arbitrary HTML or URL conversion endpoint.

Does the API return the PDF immediately?

No. Rendering is asynchronous. An accepted request is not a finished PDF: follow the job until it succeeds and then retrieve the output.

What counts toward the monthly quota?

Only successful PDF renders count toward your plan’s monthly quota. Previews are unmetered; storage, image access and render timeouts depend on the plan.

PDF generation API / TEMBUILDER

Create your first document with Tembuilder

Start from a sample or your own template. Try your data, check the PDF and publish when ready.