# Word Template to PDF API: Fill DOCX from JSON or CSV (`jumblemog/docx-template-filler`) Actor

Fill your own Word .docx template's {{ placeholders }} or mail-merge fields from JSON, CSV, Excel or a Google Sheet: one Word file and PDF per row, with table rows, conditions, money and dates.

- **URL**: https://apify.com/jumblemog/docx-template-filler.md
- **Developed by:** [Jumble Mog](https://apify.com/jumblemog) (community)
- **Categories:** AI, Automation, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Word Template to PDF API: Fill DOCX from JSON or CSV

**Turn your own Word template into finished documents.** Write `{{ client.name }}`, `{{ total|money }}` or a Word mail-merge field where the values go, send the template with your data, and get back a filled Word file and a PDF for every row: invoices, contracts, offer letters, certificates, quotes, reports. Your layout, fonts, logo, headers and footers stay as you designed them in Word.

- **Your own .docx template**, made in Word, Google Docs or LibreOffice: no HTML to rebuild, no designer tool. Placeholders work in the body, tables, headers and footers. Word mail-merge fields («FirstName») and placeholders typed as `{Name}`, `[Name]`, `<<Name>>` or `${Name}` are filled too when your data has a column with that name.
- **Data from anywhere**: one JSON object, a list of rows, a CSV or Excel file, a Google Sheet or pasted CSV text. Each row becomes its own document (mail merge), up to 500 per template.
- **Repeating table rows** for line items (`{% for item in items %}` on its own row), **conditions** (`{% if discount %}` ... `{% endif %}`) that remove whole paragraphs, **calculations** (`{{ item.qty * item.price }}`) and **formats**: `money`, `number`, `percent` and `date`. Images from a link or base64.
- **Word and PDF** for each document (PDF/A if you need archival PDFs), a picture of the first page, and a list of any placeholder the data had no value for, so nothing goes out half-filled by accident.
- **Send a template alone** to see what it asks for: every placeholder, which ones repeat, and a sample of the data to send.

It's made for:

- AI agents and assistants that write contracts, letters, quotes or invoices for people: the agent fills a template the company already uses and hands back a PDF.
- Back offices and SaaS apps that turn database records, CRM deals or form submissions into documents.
- Mail merge without Word: certificates for a course's attendees from a spreadsheet, renewal letters from a CSV, payslips from an Excel export.
- Zapier, Make and n8n automations that need "fill this Word template and give me the PDF" as one step.

![Left: a Word invoice template with tags such as {{ company.name }}, {{ issued|date }}, a table row {% for item in items %} and {{ total|money }}; right: the same invoice filled from JSON, with three line items, amounts calculated, money and dates formatted](https://api.apify.com/v2/key-value-stores/Km5b4PG3kYHdZSb1E/records/docx-template-filler-example.png?signature=1bS7fh74t4XHnw0PpEqfw)

### How to use it

1. Put placeholders in your Word document where values go: `{{ name }}`, `{{ client.address }}`, `{{ start_date|date }}`. Save it as .docx.
2. Give the **template** (a link, a Google Docs or Drive link, or upload it) and the **data**: values for one document, a list of rows, or a spreadsheet.
3. Click **Start**. Each document is a row in the results with its first page, summary, Word file and PDF.

Not sure what a template needs? Run it with no data: you get its placeholders and a ready-to-fill sample.

#### Writing a template

| In Word | Becomes |
|---|---|
| `{{ name }}` | The value of `name`. |
| `{{ client.name }}` | A value inside an object: `{"client": {"name": "Blue Fern Cafe"}}`. |
| `{% for item in items %}` alone on a table row, the item's cells `{{ item.description }}` on the next row, `{% endfor %}` alone on the row after | One table row per item. |
| `{% if notes %}` alone on a line, then the text, then `{% endif %}` alone on a line | The text only when `notes` has a value; the lines holding the tags disappear. |
| `{{ price|money }}`, `{{ price|money("€") }}`, `{{ price|money("EUR", 2, ".") }}` | $1,234.50, €1,234.50, 1.234,50 EUR |
| `{{ count|number }}`, `{{ rate|percent }}` | 12,500 and 8% (from 0.08 or 8) |
| `{{ start|date }}`, `{{ start|date("short") }}`, `{{ start|date("%d.%m.%Y") }}`, `{{ today|date }}` | October 25, 2026; 10/25/2026; 25.10.2026; the day it runs |
| `{{ item.qty * item.price }}`, `{{ name|upper }}`, `{{ title|default("Dear customer") }}` | Arithmetic and any [Jinja](https://jinja.palletsprojects.com/en/stable/templates/) expression or filter. |
| A Word mail-merge field «FirstName», or `{First Name}`, `[First Name]`, `<<First Name>>`, `${First Name}` | Filled from the column `First Name` (also `first_name`: case, spaces and underscores don't matter). |

Numbers given as text ("15.50" from a CSV) count as numbers, so they add and multiply. A value with line breaks keeps them. An image is `{"image": "https://.../logo.png", "width": "40mm"}` (PNG, JPEG, GIF or BMP; width and height in mm, cm or in).

#### What you can send

```json
{
  "template": "https://example.com/templates/offer-letter.docx",
  "dataUrl": "https://docs.google.com/spreadsheets/d/<id>/edit",
  "fileName": "Offer letter - {{ name }}",
  "outputs": ["pdf"],
  "missing": "error"
}
```

| Field | What it takes |
|---|---|
| `template` | A link to the .docx (Google Docs, Google Drive and Dropbox share links work), a `data:` URI or base64. Or upload it in `uploads`. |
| `data` | Values for one document, as an object. |
| `rows` | A list of objects, one document each. |
| `dataUrl` | A CSV, Excel (.xlsx) or JSON file or a Google Sheet link, or CSV text: one document per row, columns named in the first row. |
| `fileName` | Each document's name, with placeholders. |
| `outputs` | `docx`, `pdf` or both (default). |
| `missing` | `blank` (default: leave it empty and list it), `keep` (leave the `{{ tag }}` in) or `error` (don't make the document). |
| `pdfA` | `true` for PDF/A-2b. |
| `requests` | More templates in one run, each `{"template": ..., "data": ...}`. |

### Examples

- The invoice template above with the JSON in the input form → "Invoice INV-2026-0142.pdf" and .docx: three line items with amounts calculated, $3,542.40 due, dates written out.
- An offer letter with «FirstName» mail-merge fields and a Google Sheet of 40 new hires → 40 PDFs named "Offer letter - Ana Lee" and so on.
- The same template with no data → its 11 placeholders, `items` repeating with description, qty and price, and a sample to fill in.

### How-to examples

Each example below is a complete input. The result line is what the run says in `summary`.

#### How to fill a Word template from JSON and get a PDF

Put `{{ tags }}` in the .docx, then send the values:

```json
{
  "template": "https://example.com/templates/invoice.docx",
  "data": {"number": "INV-2026-0142", "issued": "2026-10-25", "client": {"name": "Blue Fern Cafe"},
           "items": [{"description": "Website redesign", "qty": 1, "price": 2400},
                     {"description": "Hosting, 12 months", "qty": 12, "price": 15}]},
  "fileName": "Invoice {{ number }}"
}
```

This is shortened. With the full example data from the input form (company, due date, notes and totals as well), the result is "Filled invoice.docx with row 1 of 1 (11 of 11 placeholders): 1 page, as Word and PDF.", with files named "Invoice INV-2026-0142". Values the data leaves out are listed in `missing`.

#### How to mail merge Word documents from a CSV, Excel file or Google Sheet

Each row becomes its own document. Word mail-merge fields such as «First_Name» and placeholders such as `[Project Name]` or `<<Amount>>` are filled from the columns with those names.

```json
{
  "template": "https://example.com/templates/payment-reminder.docx",
  "dataUrl": "First Name,Account No,Project Name,Due Date,Amount,Currency\nAna,991,Atlas,Nov 30,12.5,EUR\nBo,992,Birch,Dec 1,40,USD",
  "fileName": "Reminder - {{ first_name }}",
  "outputs": ["pdf"]
}
```

Result: two PDFs, "Reminder - Ana" and "Reminder - Bo", each "Filled payment-reminder.docx with row 1 of 2 (6 of 6 placeholders): 1 page, as PDF." Put a Google Sheet link or a link to a .csv or .xlsx file in `dataUrl` instead of the text to merge from a spreadsheet.

#### How to see which fields a Word template needs

Send the template with no data:

```json
{"template": "https://example.com/templates/invoice.docx"}
```

Result: "invoice.docx has 11 placeholders: client, company, due, issued, items, notes, number, subtotal, tax, tax_rate, total; 1 repeat for each item of a list (items: description, qty, price)." The `sample` in the result is the data to fill in and send back.

#### How to let an AI agent fill contracts, letters or invoices

Add this Actor to the [Apify MCP server](https://mcp.apify.com) with `https://mcp.apify.com/?tools=jumblemog/docx-template-filler`. The agent calls it once with the template to get `placeholders` and `sample`, fills in the values, calls it again with `data`, and gives the user `pdfUrl`. Anything the data didn't cover is listed in `missing`.

### FAQ

**Do I need to learn a template language?** No. Typing `{{ name }}` where a value goes is enough. Loops, conditions and formats (`money`, `date`) are there if you need them, and Word mail-merge fields work as they are.

**Does it keep my formatting?** Yes. The Word file is your template with the values put in: fonts, logos, headers, footers and tables stay as they are.

**Can I make hundreds of documents at once?** Yes, up to 500 per template in one run, one per row of your data.

**Does it work with Zapier, Make or n8n?** Yes. Call the Actor with its Apify app or an HTTP request and pass the row or record from an earlier step in `data`.

**Can it fill Google Docs?** Give a Google Docs link as the template and it is read as a Word file. The output is a .docx and a PDF.

### Output

One dataset item per document, also saved together in the run's `OUTPUT` record:

```json
{
  "request": 1, "status": "ok", "type": "document",
  "title": "Invoice INV-2026-0142",
  "summary": "Filled invoice-template-example.docx with row 1 of 1 (11 of 11 placeholders): 1 page, as Word and PDF.",
  "template": {"fileName": "invoice-template-example.docx", "placeholders": 11, "mergeFields": 0, "converted": {}},
  "row": 1, "rows": 1, "fileName": "Invoice INV-2026-0142", "pages": 1,
  "data": {"number": "INV-2026-0142", "client": {"name": "Blue Fern Cafe", "...": "..."}, "...": "..."},
  "missing": [], "unusedColumns": [],
  "docxUrl": "https://api.apify.com/v2/key-value-stores/.../records/001-0001-Invoice-INV-2026-0142.docx?signature=...",
  "pdfUrl": "https://api.apify.com/v2/key-value-stores/.../records/001-0001-Invoice-INV-2026-0142.pdf?signature=...",
  "imageUrl": "https://api.apify.com/v2/key-value-stores/.../records/001-0001-Invoice-INV-2026-0142.png?signature=..."
}
```

A template sent without data gives `"type": "describe"` with `placeholders`, a `sample` of the data and a picture of the template. Every item has `warnings` (placeholders with no value), `notes` (data columns no placeholder uses, often a typo) and a Markdown `report`. A template that can't be filled has `"status": "failed"` and the reason in `error` (with the text near a broken tag), and isn't billed.

### How it works

1. **Reading the template**: the .docx is checked (a .dotx is accepted; PDFs, old .doc files and macro files are refused with the reason). Word mail-merge fields and other placeholder styles that name a data column become `{{ tags }}`; a `{% for %}` or `{% if %}` alone on a line or table row is set to repeat or remove that whole line or row.
2. **Filling**: [docxtpl](https://github.com/elapouya/python-docx-template) renders the document's XML with [Jinja2](https://jinja.palletsprojects.com/), joining tags that Word split across formatting runs and fixing Word's curly quotes inside tags. Values are escaped, so `&` and `<` in your data are safe.
3. **PDF**: [LibreOffice](https://www.libreoffice.org/) Writer converts the documents in batches, with metric-compatible fonts for Calibri, Cambria, Arial and Times New Roman so lines break where Word breaks them. [PDFium](https://pdfium.googlesource.com/pdfium/) draws the first page.

### Pricing

You pay one low price per document made, at the price shown on this page; the Word file, PDF and page picture are included. Listing a template's placeholders counts as one document. Templates that can't be filled are never charged. If you set a maximum cost per run, the Actor makes only the documents that fit.

### Speed

A one-page document takes about a second including its PDF; a run of 100 rows takes about a minute. A run through the API answers in about 10 to 15 seconds for one document, including the cloud container and LibreOffice starting.

### Tips and limits

- **PDF fidelity**: LibreOffice lays out the PDF. Ordinary documents come out as in Word; very complex layouts (text boxes anchored in odd ways, Word-only fonts other than Calibri, Cambria, Arial, Times New Roman and Courier New) can differ slightly. The Word file is always exactly your template, filled.
- **Tags split by Word**: if you type a tag, then change the formatting of part of it, Word splits it; that's handled. If a tag still isn't filled, retype it in one go.
- **Fields that aren't mail merge** (page numbers, dates, tables of contents) are kept as Word fields.
- **Limits**: 20 templates and 500 documents per template per run; 50 MB per template; 50 images per document.

### For AI agents and developers

This Actor works with the [Apify MCP server](https://mcp.apify.com), so AI agents can call it as a tool: first call it with the template alone to get `placeholders` and `sample`, then call it with `data` filled in. A direct API call that waits for the answer:

```bash
curl -X POST "https://api.apify.com/v2/acts/jumblemog~docx-template-filler/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"template": "https://example.com/offer-letter.docx", "data": {"name": "Ana Lee", "role": "Designer", "start": "2026-11-01", "salary": 72000}, "outputs": ["pdf"]}'
```

`run-sync` instead returns the run's `OUTPUT`: the status, the counts and every result as JSON.

In Python, with the `apify-client` package, a mail merge from a local template and CSV:

```python
import base64
from apify_client import ApifyClient

client = ApifyClient("YOUR_TOKEN")
run = client.actor("jumblemog/docx-template-filler").call(run_input={
    "template": base64.b64encode(open("certificate.docx", "rb").read()).decode(),
    "dataUrl": open("attendees.csv").read(),
    "fileName": "Certificate - {{ name }}",
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["fileName"], item["pdfUrl"], item["missing"])
```

### Credits

- [docxtpl](https://github.com/elapouya/python-docx-template) (LGPL-2.1) and [python-docx](https://github.com/python-openxml/python-docx) (MIT) fill the template with [Jinja2](https://jinja.palletsprojects.com/) (BSD-3-Clause); [LibreOffice](https://www.libreoffice.org/) (MPL-2.0) makes the PDFs with the Carlito, Caladea and Liberation fonts (SIL Open Font License); [openpyxl](https://openpyxl.readthedocs.io/) (MIT) reads Excel files; [pypdfium2](https://github.com/pypdfium2-team/pypdfium2) and PDFium (Apache-2.0 / BSD-3-Clause) draw the page pictures.

# Actor input Schema

## `template` (type: `string`):

A link to your .docx (or .dotx) template with {{ placeholders }} or Word mail-merge fields; Google Docs, Google Drive and Dropbox share links work. Base64 works too. Leave the data empty to list what the template asks for.

## `uploads` (type: `array`):

Upload one .docx template from your computer, or pick one already in an Apify key-value store.

## `data` (type: `object`):

The template's names and their values, e.g. {"name": "Ana Lee", "start": "2026-11-01"}. Nested objects fill {{ client.name }}; lists fill repeated table rows ({% for item in items %}). An image is {"image": link or base64, "width": "40mm"}.

## `rows` (type: `array`):

A list of objects like the one above; each makes its own document (mail merge). Up to 500 per template.

## `dataUrl` (type: `string`):

A link to a CSV, Excel (.xlsx) or JSON file or a Google Sheet, or CSV text. The first row names the columns, which fill the placeholders with the same names (case, spaces and underscores don't matter).

## `fileName` (type: `string`):

A name for each document, with placeholders, e.g. "Invoice {{ number }}". By default the template's name and the row's first short text value.

## `outputs` (type: `array`):

Make each document as Word, PDF or both.

## `missing` (type: `string`):

What happens to a placeholder the data has no value for.

## `pdfA` (type: `boolean`):

Make the PDFs PDF/A-2b, the archival standard, with fonts embedded.

## `requests` (type: `array`):

More templates in one run: each entry is {"template": link or base64, "data": an object, a list of rows, a spreadsheet link or CSV text, "fileName", "outputs", "missing", "pdfA"}, or a template link alone to list its placeholders. Up to 20.

## Actor input object example

```json
{
  "template": "https://api.apify.com/v2/key-value-stores/Km5b4PG3kYHdZSb1E/records/invoice-template-example.docx?signature=190drBPUUHMJlHQInNGAv",
  "data": {
    "company": {
      "name": "Northwind Studio",
      "address": "12 Harbor Lane, Portland, ME 04101",
      "email": "billing@northwind.example",
      "payment": "bank transfer to account 0012 3456 78"
    },
    "number": "INV-2026-0142",
    "issued": "2026-10-25",
    "due": "2026-11-24",
    "client": {
      "name": "Blue Fern Cafe",
      "address": "88 Market Street, Springfield, IL 62701",
      "email": "accounts@bluefern.example"
    },
    "items": [
      {
        "description": "Website redesign",
        "qty": 1,
        "price": 2400
      },
      {
        "description": "Product photography (half day)",
        "qty": 2,
        "price": 350
      },
      {
        "description": "Hosting, 12 months",
        "qty": 12,
        "price": 15
      }
    ],
    "subtotal": 3280,
    "tax_rate": 0.08,
    "tax": 262.4,
    "total": 3542.4,
    "notes": "Thank you! Please put the invoice number on your payment."
  },
  "outputs": [
    "docx",
    "pdf"
  ],
  "missing": "blank",
  "pdfA": false
}
```

# Actor output Schema

## `results` (type: `string`):

One row per document: its first page, the summary and the files.

## `output` (type: `string`):

The OUTPUT record: every result in one JSON object.

## `files` (type: `string`):

The filled Word files and PDFs, page pictures and reports in the run's key-value store.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "template": "https://api.apify.com/v2/key-value-stores/Km5b4PG3kYHdZSb1E/records/invoice-template-example.docx?signature=190drBPUUHMJlHQInNGAv",
    "data": {
        "company": {
            "name": "Northwind Studio",
            "address": "12 Harbor Lane, Portland, ME 04101",
            "email": "billing@northwind.example",
            "payment": "bank transfer to account 0012 3456 78"
        },
        "number": "INV-2026-0142",
        "issued": "2026-10-25",
        "due": "2026-11-24",
        "client": {
            "name": "Blue Fern Cafe",
            "address": "88 Market Street, Springfield, IL 62701",
            "email": "accounts@bluefern.example"
        },
        "items": [
            {
                "description": "Website redesign",
                "qty": 1,
                "price": 2400
            },
            {
                "description": "Product photography (half day)",
                "qty": 2,
                "price": 350
            },
            {
                "description": "Hosting, 12 months",
                "qty": 12,
                "price": 15
            }
        ],
        "subtotal": 3280,
        "tax_rate": 0.08,
        "tax": 262.4,
        "total": 3542.4,
        "notes": "Thank you! Please put the invoice number on your payment."
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("jumblemog/docx-template-filler").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "template": "https://api.apify.com/v2/key-value-stores/Km5b4PG3kYHdZSb1E/records/invoice-template-example.docx?signature=190drBPUUHMJlHQInNGAv",
    "data": {
        "company": {
            "name": "Northwind Studio",
            "address": "12 Harbor Lane, Portland, ME 04101",
            "email": "billing@northwind.example",
            "payment": "bank transfer to account 0012 3456 78",
        },
        "number": "INV-2026-0142",
        "issued": "2026-10-25",
        "due": "2026-11-24",
        "client": {
            "name": "Blue Fern Cafe",
            "address": "88 Market Street, Springfield, IL 62701",
            "email": "accounts@bluefern.example",
        },
        "items": [
            {
                "description": "Website redesign",
                "qty": 1,
                "price": 2400,
            },
            {
                "description": "Product photography (half day)",
                "qty": 2,
                "price": 350,
            },
            {
                "description": "Hosting, 12 months",
                "qty": 12,
                "price": 15,
            },
        ],
        "subtotal": 3280,
        "tax_rate": 0.08,
        "tax": 262.4,
        "total": 3542.4,
        "notes": "Thank you! Please put the invoice number on your payment.",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("jumblemog/docx-template-filler").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "template": "https://api.apify.com/v2/key-value-stores/Km5b4PG3kYHdZSb1E/records/invoice-template-example.docx?signature=190drBPUUHMJlHQInNGAv",
  "data": {
    "company": {
      "name": "Northwind Studio",
      "address": "12 Harbor Lane, Portland, ME 04101",
      "email": "billing@northwind.example",
      "payment": "bank transfer to account 0012 3456 78"
    },
    "number": "INV-2026-0142",
    "issued": "2026-10-25",
    "due": "2026-11-24",
    "client": {
      "name": "Blue Fern Cafe",
      "address": "88 Market Street, Springfield, IL 62701",
      "email": "accounts@bluefern.example"
    },
    "items": [
      {
        "description": "Website redesign",
        "qty": 1,
        "price": 2400
      },
      {
        "description": "Product photography (half day)",
        "qty": 2,
        "price": 350
      },
      {
        "description": "Hosting, 12 months",
        "qty": 12,
        "price": 15
      }
    ],
    "subtotal": 3280,
    "tax_rate": 0.08,
    "tax": 262.4,
    "total": 3542.4,
    "notes": "Thank you! Please put the invoice number on your payment."
  }
}' |
apify call jumblemog/docx-template-filler --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,jumblemog/docx-template-filler"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/cbMnWoSE142aaiFUF/builds/1v7ggtLYeLNP5kocb/openapi.json
