{"uid":"cap_TJTP9Nvc3iIsX_sHMYEey","slug":"tanod-pdfpeek-fill-template-421bd188","name":"Tanod pdfpeek Fill Template","description":"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.","url":"https://tanod.dev/v1/docs/fill-template?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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."}}},"responseSchema":{"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":[]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_GKf7j3ED8mQiOYQ_eEmIw","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fills a DOCX template with JSON data and returns the completed document as DOCX or PDF","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Automated invoice generation for billing","prompt":"Use my invoice template at https://storage.example.com/invoice_template.docx, fill it in with customer name 'TechStart Inc', invoice number 'INV-2025-042', line items for 'Consulting' at $3,200 and 'Support' at $800, and return it as a PDF."},{"title":"Personalized offer letter for HR","prompt":"I have an offer letter DOCX template — here it is in base64 — please fill in the candidate's name as 'Jordan Smith', role as 'Senior Engineer', start date as 'July 14 2025', and salary as '$145,000', then give me back the filled DOCX."},{"title":"Repeat table rows for product list report","prompt":"Fill my sales report template at https://files.mycompany.com/sales_report.docx with our Q2 product data — the items list has rows for each product with name and revenue — and render it as a PDF so I can send it to stakeholders."}],"resultDescription":"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).","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T12:30:02.360Z","isFirstParty":false,"canonicalSlug":"tanod-pdfpeek-fill-template-421bd188"}