Introduction
Druckling turns templates you design visually and your JSON data into PDFs, e-invoices and images through a REST API hosted in the EU.
Druckling is a document generation API. You design a template in a visual editor, bind its text to variables such as {{customer.name}}, publish it, and then send JSON data to the API to get the finished PDF back. Pages are typeset by the Typst engine, not printed from a headless browser.
It's built for teams that generate documents from application data: invoices, certificates, tickets, reports, contracts and packing slips. Developers integrate the API once; designers and operations teams change templates in the dashboard without a deploy.
What you can do
- Design templates visually. Lay out blocks, fonts and brand colors in the editor, with Druck, the AI assistant, whose changes only apply once you accept them. See Templates.
- Bind your data. Declare variables and Druckling derives a JSON Schema that every request is validated against. See Variables and Template strings.
- Render documents as PDF, as a PNG of one page, or as e-invoice XML, while the request waits or in the background. See Documents and PNG output.
- Create e-invoices: Factur-X / ZUGFeRD (a PDF/A-3 with the XML embedded), XRechnung 3.0 and Peppol BIS Billing 3.0, checked against the EN 16931 business rules. See E-invoicing.
- Produce accessible PDFs that conform to PDF/UA-1. See Accessible PDFs.
- Render in bulk: up to 1,000 documents per batch, collected in one ZIP. See Batches.
- Render in several languages from one template. See Languages.
- Share documents through public links that expire. See Share links.
- Get notified with signed webhooks when documents render, fail or expire and when batches finish. See Webhooks.
- Embed the editor in your own product, white-labeled, so your users can edit their templates. See Embedded editor.
- Connect AI tools and automations through the hosted MCP server and the n8n node.
- Use an SDK for TypeScript, Python or PHP. See SDKs.
- Develop for free with test keys, whose data stays apart from live data. See Test mode.
- Work as a team with owner, admin and member roles. See Team.
How it works
Design a template
Start from one of the starter templates or a blank page. Add text, tables, images, QR codes and other blocks, and bind them to variables. The variables you declare become the template's data contract.
Publish a version
Publishing freezes the template into an immutable, numbered version. The API only renders published versions, so you can keep editing the draft without changing what your integration produces. Requests use the latest version unless they pin one.
Render with your data
Send the template's slug and your data to POST /v1/documents. Druckling validates the data against the template's schema, renders the document and returns it with a signed download link.
curl https://druckling-nine.vercel.app/v1/documents \
-H "Authorization: Bearer $DRUCKLING_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"template": "invoice-standard",
"data": {
"invoice": { "number": "INV-2041", "due_date": "2026-11-22" },
"customer": { "name": "Northwind Ltd.", "address": "12 Pier St, Leeds" },
"line_items": [{ "description": "Design system audit", "qty": 12, "rate": 180, "amount": 2160 }],
"totals": { "subtotal": 2160, "tax": 172.8, "amount": 2332.8 }
}
}'The Quickstart walks through this request step by step.
Where your data lives
Druckling runs in the EU, in Frankfurt, Germany:
- The application, the API, file storage and background queues run on Vercel in the
fra1region. - The database is managed PostgreSQL by Neon in AWS
eu-central-1. - Rendered files are private. They're reachable only through signed links, which work for at most 7 days, and through share links you create. Files are deleted 30 days after rendering.
- The request bodies you send are removed after 30 days. Document records (status, file name, page count, timeline) are kept for a year, and API request logs for 90 days.
Druck, the AI assistant in the editor, sends data to a model only when you use it. Its requests are restricted to EU data centers, with zero data retention and no training on your data. A request that no EU data center can serve fails instead of running elsewhere. This applies to Druck: when you connect your own AI tool through the MCP server, that tool's model provider handles what it sends and receives.
The security page and the subprocessor list have the details.
Next steps
Quickstart
Create an API key and render your first PDF in a few minutes.
Concepts
Templates, variables, documents, test mode, limits and errors.
Guides
E-invoicing, batches, languages, webhooks, the embedded editor and more.
SDKs
Typed clients for TypeScript, Python and PHP.
API reference
Every endpoint, parameter and response field.
Docs for AI tools
These docs are also available in formats that AI assistants and coding agents read well:
/llms.txtis an index of every page./llms-full.txtcontains all pages in one file.- Append
.mdto any docs URL to get the page as Markdown, for example/docs/quickstart.md.
Each page also has actions to copy it as Markdown or open it in ChatGPT or Claude.
To let an AI assistant work in your workspace, for example to render documents or edit templates, connect it to Druckling's hosted MCP server.