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.


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

No document storage

No input or resulting documents are stored on our infrastructure. All files are deleted as soon as a request finishes. Alternatively, check out our self-hosted product.

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.


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.