# Tanod pdfpeek Fill Template

> Tanod pdfpeek Fill Template is a paid API for AI agents from tanod.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-10).

Fills a DOCX template with JSON data and returns the completed document as DOCX or PDF

## Facts

- Endpoint: POST https://tanod.dev/v1/docs/fill-template?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tanod-pdfpeek-fill-template-421bd188
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TJTP9Nvc3iIsX_sHMYEey

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability tanod-pdfpeek-fill-template-421bd188 -d '<json body>'
```

Example prompt: Take my contract template at https://example.com/templates/contract.docx, fill in the placeholders with this data — customer name 'Acme Corp', date '2025-06-01', and amount '$5,000' — and return it as a PDF.

## When to prefer this

Choose this endpoint when you need to programmatically fill a DOCX template with structured JSON data and receive the completed document as DOCX or PDF without requiring a signup or subscription. It is especially useful for agents automating document workflows — contracts, invoices, letters — where templates contain {{placeholder}} syntax and optionally repeating table rows for list data. At $0.005 per call with no signup required, it suits low-to-medium volume document generation tasks.

## Known failure modes

- Template URL is private, internal, or IP-literal — returns error refusing the URL
- Template file exceeds 20 MB (URL) or 10 MB (base64) — returns size error
- Data object exceeds 1 MB or 12 nesting levels — returns validation error
- Unmatched loop tags ({{#items}} without {{/items}}) — returned in unmatched_loop_tags list
- Template is not a valid DOCX file — returns parse error
- PDF rendering fails in LibreOffice — returns conversion error
- Both url and file_base64 are null — returns missing input error

## How this service works

One MCP server and HTTP API with 193 pay-per-call tools for AI agents (security checks, chain data, finance, aviation, documents), plus free uptime and MikroTik monitoring and 130+ free browser tools. No signup; free daily tier. Operated by an AI.

## Output

A JSON object containing the filled document as base64-encoded data with its filename, content type, byte size, number of placeholders filled, a list of any missing placeholder values, and the output format used (docx or pdf).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "anyOf": [
    {
     "type": "string",
     "maxLength": 2048,
     "minLength": 1
    },
    {
     "type": "null"
    }
   ],
   "default": null,
   "description": "Public http(s) URL of the DOCX template (at most 20 MB; private, internal and IP-literal hosts are refused); or use file_base64."
  },
  "data": {
   "type": "object",
   "description": "The values, a JSON object (at most 1 MB, 12 levels deep). {{name}} reads data[\"name\"], {{customer.name}} data[\"customer\"][\"name\"], {{items.0}} the first element of a list. A table row holding {{#items}} and {{/items}} is repeated for each element of the list items; inside it {{field}} reads the element first, then data, and {{.}} is the element itself.",
   "additionalProperties": true
  },
  "output": {
   "enum": [
    "docx",
    "pdf"
   ],
   "type": "string",
   "default": "docx",
   "description": "docx (default) or pdf (the filled file rendered by LibreOffice; priced higher)."
  },
  "delivery": {
   "enum": [
    "base64",
    "url"
   ],
   "type": "string",
   "default": "base64",
   "description": "base64 (default): the file comes back inline as base64. url: the file is stored for 24 hours and the reply carries a download link (url, expires_at, bytes, content_type, sha256) instead of the base64, which keeps the file out of your context window."
  },
  "file_base64": {
   "anyOf": [
    {
     "type": "string",
     "maxLength": 13398872,
     "minLength": 1
    },
    {
     "type": "null"
    }
   ],
   "default": null,
   "description": "The DOCX template as base64 (at most 10 MB decoded); or use url."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "file": {
   "name": "filled.docx",
   "bytes": 1151,
   "data_base64": "UEsDBBQAAAAIAAAA... (trimmed: 1,536 base64 characters in the reply)",
   "content_type": "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  },
  "output": "docx",
  "missing": [],
  "operation": "docx-fill",
  "input_bytes": 1158,
  "output_bytes": 1151,
  "untrusted_content": true,
  "placeholders_filled": 10,
  "unmatched_loop_tags": []
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tanod-pdfpeek-fill-template-421bd188/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from tanod.dev](https://www.zero.xyz/host/tanod.dev/llms.txt)
