Formatwerk
mail merge
DOCX: finds {{placeholders}} even when Word split them across runs, plus simple and complex MERGEFIELDs, keeps the run formatting, turns line breaks into Word breaks and builds one document with a new section per record (page numbers restart) or a ZIP with one DOCX per record (headers/footers per record). Bookmark and drawing ids stay unique. PDF: a DIN 5008 letter template (fields of din5008-letter) is filled per record, empty address lines are dropped. No DOCX to PDF conversion (needs an.
POST https://format.halowerk.com/v1/mail-mergeInputs
| Field | Type | Required | Description |
|---|---|---|---|
| template_docx_base64 | string | No | |
| letter_template | object | No | DIN 5008 letter with the fields of din5008-letter (recipient, body, subject, ...); strings may contain {{column}}. |
| csv | string | No | |
| rows | array | No | |
| delimiter | string | No | |
| output | string | No | docx/zip need template_docx_base64, pdf needs letter_template. |
| file_name | string | No | ZIP entry name template; {{_nr}} = record number. |
Show full input schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"template_docx_base64": {
"type": "string",
"maxLength": 14000000
},
"letter_template": {
"type": "object",
"description": "DIN 5008 letter with the fields of din5008-letter (recipient, body, subject, ...); strings may contain {{column}}."
},
"csv": {
"type": "string",
"maxLength": 2000000
},
"rows": {
"type": "array",
"minItems": 1,
"maxItems": 500,
"items": {
"type": "object",
"additionalProperties": {
"type": [
"string",
"number",
"null"
]
}
}
},
"delimiter": {
"type": "string",
"enum": [
"auto",
",",
";",
"\t"
],
"default": "auto"
},
"output": {
"type": "string",
"enum": [
"docx",
"zip",
"pdf"
],
"description": "docx/zip need template_docx_base64, pdf needs letter_template."
},
"file_name": {
"type": "string",
"maxLength": 120,
"default": "letter-{{_nr}}",
"description": "ZIP entry name template; {{_nr}} = record number."
}
}
}Published input example
{
"letter_template": {
"sender": {
"name": "Lagertechnik Nord GmbH",
"street": "Hallenweg 3",
"postal_code": "48599",
"city": "Gronau"
},
"recipient": [
"{{name}}",
"{{street}}",
"{{zip}} {{city}}"
],
"subject": "Invoice {{no}}",
"body": [
"Dear {{name}}, please find invoice {{no}} attached."
]
},
"csv": "name;street;zip;city;no\nMietpartei Nord;Hauptstr. 5;10115;Berlin;R-1",
"output": "pdf"
}Result & documentation
Machine-readable documentation of this hub
Source of this page: the published HALOWERK catalog. Updated: 2026-11-17 UTC.
More endpoints in this hub
- Formatwerk0.004 USDC
accounting csv unify
POSThttps://format.halowerk.com/v1/accounting-csv-unifyDATEV booking batch files (EXTF/DTVF, category 21) are read by their documented field positions: amount and S/H become a signed amount relative to the account, Belegdatum TTMM is resolved within the fiscal year from the header. Other export
- Formatwerk0.005 USDC
avv checklist
POSThttps://format.halowerk.com/v1/avv-checklistChecklist after Art. 28 GDPR (Regulation (EU) 2016/679 Art. 28 (GDPR), https://eur-lex.europa.eu/eli/reg/2016/679/oj, German and English text retrieved from the EU Publications Office 2026-11-01): Art. 28(3) sentence 1 (subject-matter, dura
- Formatwerk0.004 USDC
bagit package
POSThttps://format.halowerk.com/v1/bagit-packageCreate: files go to data/, manifest-<alg>.txt and tagmanifest-<alg>.txt are written for SHA-256 (default), SHA-512 or legacy SHA-1/MD5, bag-info.txt gets your metadata plus Bagging-Date, Bag-Size and Payload-Oxum; paths are checked (no abso