$0.15 / operation

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 $5 of free usage every 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

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.

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.

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.

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

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.

Yes. Start free with $5 of usage every month and try DOCX templating before choosing a plan. Per-operation prices are listed on the API pricing page.

Yes. Processor API pricing is per operation in US dollars, 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.