{"slug":"tanod-dev-v1-docs-fill-template-fd83b2","title":"pdfpeek (Tanod) Word template fill","host":"tanod.dev","method":"POST","resource":"https://tanod.dev/v1/docs/fill-template","category":"other","description":"pdfpeek (Tanod) Word template fill: {{placeholders}} in a DOCX replaced from JSON data, returned as DOCX. Use when an agent must fill a Word template's {{placeholders}} with data and return a DOCX or PDF.","price_listed":0.005,"price_asked":0.005,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":219,"reported_calls_30d":2,"reported_payers_30d":2,"networks":["eip155:137","eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"data":{"customer":{"city":"Lisbon","name":"Acme Ltd"},"invoice":{"number":"INV-1042"},"items":[{"name":"Widget","price":"9.00","qty":3},{"name":"Gadget","price":"24.50","qty":1}],"total":"51.50"},"url":"https://tanod.dev/samples/invoice-template.docx"},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"additionalProperties":false,"properties":{"data":{"additionalProperties":true,"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.","type":"object"},"file_base64":{"anyOf":[{"maxLength":13398872,"minLength":1,"type":"string"},{"type":"null"}],"default":null,"description":"The DOCX template as base64 (at most 10 MB decoded); or use url."},"output":{"default":"docx","description":"docx (default) or pdf (the filled file rendered by LibreOffice; priced higher).","enum":["docx","pdf"],"type":"string"},"url":{"anyOf":[{"maxLength":2048,"minLength":1,"type":"string"},{"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."}},"required":["data"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"properties":{"fidelity_note":{"type":"string"},"file":{"properties":{"bytes":{"type":"integer"},"content_type":{"type":"string"},"data_base64":{"type":"string"},"dpi":{"type":"integer"},"first_page":{"type":"integer"},"height":{"type":"integer"},"last_page":{"type":"integer"},"name":{"type":"string"},"page":{"type":"integer"},"pages":{"type":"integer"},"width":{"type":"integer"}},"required":["name","content_type","bytes","data_base64"],"type":"object"},"input_bytes":{"type":"integer"},"missing":{"items":{"type":"string"},"type":"array"},"operation":{"type":"string"},"output":{"enum":["docx","pdf"],"type":"string"},"output_bytes":{"type":"integer"},"pages":{"type":"integer"},"placeholders_filled":{"type":"integer"},"unmatched_loop_tags":{"items":{"type":"string"},"type":"array"},"untrusted_content":{"type":"boolean"}},"required":["operation","input_bytes","output","placeholders_filled","missing","unmatched_loop_tags","file","output_bytes","untrusted_content"],"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-10-10","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.005,"price_match":true,"latency_ms":219,"error":null}],"description_full":"pdfpeek (Tanod) Word template fill: {{placeholders}} in a DOCX replaced from JSON data, returned as DOCX. Use when an agent must fill a Word template's {{placeholders}} with data and return a DOCX or PDF.","last_updated":"2026-10-09T20:35:47.77Z","schemes":["exact"]}