Docamint Documentation

Everything you need to generate DOCX and PDF documents from templates and structured data.

Start Here
What Docamint Does
Docamint merges Word templates (.docx) with JSON or XML payloads to produce polished DOCX and PDF documents. This documentation explains how to build templates, use tags, send data, and call the API.
Contents
Documentation Sections
  • Templates: How to design DOCX templates
  • Tag Syntax: Interpolation, loops, conditionals
  • Helpers: Formatting helpers (currency, dates, etc.)
  • JSON & XML: Supported structures and examples
  • API: Endpoints for template upload and document generation
  • Examples: Real template + JSON → output samples
  • Errors: Validation and merge errors