# Introduction (/docs)

> 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](https://typst.app) 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 [#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](/docs/concepts/templates).
- **Bind your data.** Declare variables and Druckling derives a JSON Schema that every request is validated against. See [Variables](/docs/concepts/variables) and [Template strings](/docs/concepts/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](/docs/concepts/documents) and [PNG output](/docs/guides/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](/docs/guides/e-invoicing).
- **Produce accessible PDFs** that conform to PDF/UA-1. See [Accessible PDFs](/docs/guides/accessible-pdfs).
- **Render in bulk**: up to 1,000 documents per batch, collected in one ZIP. See [Batches](/docs/guides/batches).
- **Render in several languages** from one template. See [Languages](/docs/guides/languages).
- **Share documents** through public links that expire. See [Share links](/docs/concepts/share-links).
- **Get notified** with signed webhooks when documents render, fail or expire and when batches finish. See [Webhooks](/docs/guides/webhooks).
- **Embed the editor** in your own product, white-labeled, so your users can edit their templates. See [Embedded editor](/docs/guides/embedded-editor).
- **Connect AI tools and automations** through the hosted [MCP server](/docs/guides/mcp) and the [n8n node](/docs/guides/n8n).
- **Use an SDK** for TypeScript, Python or PHP. See [SDKs](/docs/sdks).
- **Develop for free** with test keys, whose data stays apart from live data. See [Test mode](/docs/concepts/test-mode).
- **Work as a team** with owner, admin and member roles. See [Team](/docs/guides/team).

## How it works [#how-it-works]

<Steps>

<Step>

### Design a template [#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.

</Step>

<Step>

### Publish a version [#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.

</Step>

<Step>

### Render with your data [#render-with-your-data]

Send the template's slug and your data to [`POST /v1/documents`](/docs/api-reference/documents/create). Druckling validates the data against the template's schema, renders the document and returns it with a signed download link.

```bash
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](/docs/quickstart) walks through this request step by step.

</Step>

</Steps>

## Where your data lives [#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 `fra1` region.
- 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](/docs/guides/mcp), that tool's model provider handles what it sends and receives.

The [security page](/legal/security) and the [subprocessor list](/legal/subprocessors) have the details.

## Next steps [#next-steps]

<Cards>
  <Card title="Quickstart" href="/docs/quickstart">
    Create an API key and render your first PDF in a few minutes.
  </Card>
  <Card title="Concepts" href="/docs/concepts/templates">
    Templates, variables, documents, test mode, limits and errors.
  </Card>
  <Card title="Guides" href="/docs/guides/e-invoicing">
    E-invoicing, batches, languages, webhooks, the embedded editor and more.
  </Card>
  <Card title="SDKs" href="/docs/sdks">
    Typed clients for TypeScript, Python and PHP.
  </Card>
  <Card title="API reference" href="/docs/api-reference">
    Every endpoint, parameter and response field.
  </Card>
</Cards>

## Docs for AI tools [#docs-for-ai-tools]

These docs are also available in formats that AI assistants and coding agents read well:

- [`/llms.txt`](/llms.txt) is an index of every page.
- [`/llms-full.txt`](/llms-full.txt) contains all pages in one file.
- Append `.md` to any docs URL to get the page as Markdown, for example [`/docs/quickstart.md`](/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](/docs/guides/mcp).
