POST request, and get a document back in the response.
1. Create an API key
Sign in to the dashboard
Go to app.tipar.dev and sign in with your email. Tipar is passwordless — we send you a magic link, no password to set or forget.
tipar_live_ followed by 32 characters. You send the key as a bearer token on every request to /generate. Full details in Authentication.
2. Generate your first PDF
The smallest possible request: a one-line template and a single data field. Replacetipar_live_your_key with your real key.
hello.pdf on disk. That’s the whole loop: one request in, one PDF out.
A successful response is
200 OK with Content-Type: application/pdf and the raw PDF bytes as the body. There is no JSON wrapper and no job to poll — /generate is synchronous.3. Render a real document
A single line of text isn’t why you’re here. Here’s a complete one-page invoice — a header, a line-item table that repeats over your data, and a footer. Send this exactly as-is to see it render.{{company.name}},{{invoice.total}}— interpolation tokens, replaced with values fromdata.- The
tablebody usesforEach: "invoice.lines"to render one row per line item. Inside those rows,{{item.description}}refers to the current line. See Tables. - Totals are pre-formatted strings (
"€87.00"). Tipar does no math — you compute and format values, Tipar lays them out. See why there are no expressions.
Next steps
Learn the template language
Layout, text, tables, images, headers and footers.
Worked examples
Complete, copy-pasteable invoice, receipt, certificate and report templates.
API reference
Every parameter, status code and error of
POST /generate.Handle errors
What 400, 401, 402, 422 and 429 mean and how to react.