Word templates

Type tags like {{ tenant.name }} into the Word documents you already have. Send JSON and get back a filled Word document or a PDF.

  • No credit card needed
  • Free test documents
  • 9.8¢ per document on Starter
Your JSON data
POST /api/v2/templates/{template_id}/submissions
{
  "data": {
    "tenant": {
      "name": "Maya Chen"
    },
    "start_date": "2026-11-01",
    "charges": [
      { "item": "Rent", "amount": 2400 },
      { "item": "Deposit", "amount": 4800 }
    ],
    "total": 7200,
    "pets": true
  },
  "output_formats": ["docx", "pdf"]
}
From your app, a script or an AI agent
Your Word template
Harbor Property Management

Dear {{ tenant.name }},

Your lease starts on {{ start_date | date: "%B %-d, %Y" }}. Here is what's due before you move in:

{% for row in charges %}
{{ row.item }} {{ row.amount | currency }}
{% endfor %}
Total {{ total | currency }}

{% if pets %} Your lease includes our pet policy. {% endif %}

Kind regards,

Tags you type in Word
Your filled-out document
Harbor Property Management

Dear Maya Chen,

Your lease starts on November 1, 2026. Here is what's due before you move in:

Rent $2,400.00
Deposit $4,800.00
Total $7,200.00

Your lease includes our pet policy.

Kind regards,

lease-letter.docx lease-letter.pdf

Trusted by teams in lending, insurance, property and healthcare

  • Jones
  • Harvust
  • Northwoods
  • iENROLL by EMREACH
  • BloomerHealth
  • FlowEQ
  • NOCD
  • Leeway

Your formatting stays

DocSpring fills in the document itself, so it keeps the styles, fonts and layout you gave it.

  • Headings, tables, lists and pictures
  • Headers, footers and page numbers
  • Write it in Word, Google Docs or LibreOffice
Preparing your document

Loops and conditions

Repeat a table row for each item in a list, and show a paragraph only when there's something to say.

  • A row or a paragraph for each item
  • Hidden paragraphs leave no blank line
  • Filters format dates, numbers and amounts
Tags and filters

Edit it in your browser

The template editor shows your document as a page, headers and footers included. Type {{ to insert a field.

  • A field for each value your tags use
  • Preview it with sample data
  • Upload a new version from Word at any time
The Word template editor

Your data in, your document out

Send JSON to the same API as every other DocSpring template. Ask for a Word document, an OpenDocument file (.odt), a PDF or more than one.

  • Every request is checked against the template's fields
  • A link for each file, and a webhook when they're ready
  • Test documents are free and watermarked
API reference
API=https://sync.api.docspring.com/api/v2
curl -s "$API/templates/tpl_1234567890abcdef01/submissions" \
  -u "$DOCSPRING_TOKEN_ID:$DOCSPRING_TOKEN_SECRET" \
  -H "Content-Type: application/json" \
  -d '{
    "data": {
      "tenant": { "name": "Maya Chen" },
      "start_date": "2026-11-01",
      "charges": [
        { "item": "Rent", "amount": 2400 },
        { "item": "Deposit", "amount": 4800 }
      ],
      "total": 7200,
      "pets": true
    },
    "output_formats": ["docx", "pdf"]
  }'

Shortened: the API reference lists every parameter and field.

Features

Pictures and signatures

Insert logos, photos and signatures from your data, at the size you choose.

Barcodes and QR codes

Turn an order number into a barcode, or a payment link into a QR code.

Web forms

Share a form built from its fields, and get a document for each response.

Versions

Publish a version, so changes to the draft don't reach your integration.

Questions about Word templates

Read the Word templates guide

What is a Word template?

A Word document (.docx) with tags in it, such as {{ customer.name }}. DocSpring fills in the tags with the JSON data you send and returns a filled Word document or a PDF.

Do I have to change how I write my documents?

No. Write the document in Word, Google Docs or LibreOffice as you normally would, and type a tag wherever a value should go. Headings, tables, headers and footers, page numbers and pictures stay as they are. You can also start from a blank document and write it in DocSpring.

What can tags do?

Insert values, with filters that format dates, numbers and currencies. Show or hide text and whole sections with conditions, repeat paragraphs or table rows with loops, and insert images, signatures, barcodes and QR codes from your data.

Can I keep editing the document in Word?

Yes. Edit it in DocSpring, or edit it in Word and upload the new version in the template's settings. The template keeps its fields and settings, and adds a field for each new tag.

Does it work with LibreOffice?

Yes. Upload an OpenDocument text file (.odt) saved in LibreOffice, and DocSpring converts it to a Word document for the template. Each submission can make an OpenDocument file too, as well as a Word document or a PDF.

How much does a Word document cost?

A submission uses 20 credits, however many pages it has and whichever files it makes: a Word document, an OpenDocument file, a PDF or more than one. Very large files and long processing count as extra units. Test documents are free and watermarked.

Turn your Word documents into templates

Test documents are free and unlimited. No credit card needed.

Product news by email

New features and changes, once a month.