2 Credits

DOCX templating API for Word-based document generation

Populate Word DOCX templates with JSON data and generate polished documents for automated workflows.

Keep template authoring in Word

Let operations, legal, and business teams maintain DOCX templates in Word while your application injects runtime data through a simple HTTP API.

Fill text, loops, nested data, and images

Generate personalized documents from JSON model data, including repeated sections and richer placeholders for real document-generation workflows.

Built for automated document pipelines

Use REST, Postman, JavaScript, Python, Java, C#, PHP, or HTTP to create proposals, agreements, and internal documents without self-hosting a document templating system.

Used by Lufthansa, Disney, Autodesk, UBS, Dropbox, IBM
Lufthansa
Disney
Autodesk
UBS
Dropbox
IBM

Try it out

This example fills a DOCX template with JSON data and returns a generated DOCX document.


Try it out in three steps

  1. Create a Word template named template.docx and add placeholders like Hello {name}, Company: {company}, and Date: {date}.
  2. Run the code from the same folder.
  3. Open result.docx to verify the placeholders were replaced.
curl -X POST https://api.nutrient.io/process_office_template \
-H "Authorization: Bearer your_api_key_here" \
-o result.docx \
--fail \
-F 'document=@template.docx;type=application/vnd.openxmlformats-officedocument.wordprocessingml.document' \
-F 'model={"name":"Alex","company":"Acme","date":"2026-04-10"}'

Start now

Create an account to access your API key and start with 50 free credits per month

Start building with DWS Processor API in minutes — no payment information required.

Already have an account? Sign in →


Security is our top priority

SOC 2 Type 2 audited

Nutrient’s infrastructure is SOC 2 Type 2 audited and GDPR compliant. See our privacy policy and security documentation for details on data handling.

HTTPS encryption

All communication between your application and Nutrient is done via HTTPS to ensure your data is encrypted when it’s sent to us.

Safe payment processing

All payments are handled by Paddle. Nutrient DWS Processor API never has direct access to any of your payment data.


Frequently asked questions

What is a DOCX templating API?

A DOCX templating API fills a Word template with JSON data and returns a generated DOCX document. With Nutrient DWS Processor API, you send the template and a JSON model in one request, and the placeholders are replaced with your values.

How do I add placeholders to a Word template?

Type placeholders directly in the Word document. The default delimiter is a single brace, so {name} maps to name in your JSON model. To use double braces such as {{name}}, send a config.delimiter object with your request.

Can templates include conditional sections and dynamic table rows?

Yes. Conditional blocks show or hide content based on Boolean values in your model, and loop markers inside a Word table add one row per array entry. Generated content reflows across lines, tables, and pages while keeping the formatting from your template.

Do I need Microsoft Office on my server?

No. Templates are processed by the hosted DWS Processor API, so your application only needs to send an HTTP request.

When should I use DOCX templating instead of the PDF generator API?

Use DOCX templating when your documents are designed in Word and the output needs to stay an editable DOCX file. Use the PDF generator API when your layouts are built in HTML and CSS and you need a PDF.

Is there a free DOCX templating API?

Yes. Sign up to receive free Processor API credits and try DOCX templating before choosing a plan. Credit costs per operation are listed on the Processor API pricing page.

Can I use the DOCX templating API for high-volume workloads?

Yes. Processor API pricing is credit-based, with self-serve plans and enterprise options. Contact Sales to discuss volume and enterprise requirements.

Start generating Word documents from templates through one hosted API

Create an account to get your DWS Processor API key and start making API calls.