---
title: "Vorlage ausfüllen + optional signieren → PDF (base64)"
method: POST
path: "/templates/{slug}/fill"
---

# Vorlage ausfüllen + optional signieren → PDF (base64)

`POST /templates/{slug}/fill`

## Request

- Base URL: `https://api.tamgara.com/api/v1`
- URL: `https://api.tamgara.com/api/v1/templates/{slug}/fill`
- Auth: none declared

## Path parameters

- `slug` string, required

## Request body

- object
  - `answers` object: Feldname → Wert (String/Boolean).
  - `signaturePngDataUrl` string: Unterschrift als PNG data:-URL (optional).
  - `country` string: Land ISO-2 (optional).

## Response `200`

Fertiges PDF

- object
  - `slug` string
  - `filename` string
  - `mimeType` string
  - `pdfBase64` string: Das fertige PDF, base64-kodiert.
  - `signed` boolean

## Other responses

- `404`: Nicht gefunden

---

[API](https://skmtc.dev/tamgara/apis/tamgara-api.md) · [All operations](https://skmtc.dev/tamgara/apis/tamgara-api/llms.txt) · [OpenAPI document](https://skmtc.dev/tamgara/apis/tamgara-api/revisions/9435a5dea6d8?raw)
