Skip to content
Fourohtwo

pdfpeek (Tanod) Word template fill

tanod.dev/v1/docs/fill-template

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.

SolanaAnswering
POSThttps://tanod.dev/v1/docs/fill-template

Uptime100% of 4 checks in 30 days

30 days agoToday

Call it from an agent

curl -i -X POST -H 'content-type: application/json' "https://tanod.dev/v1/docs/fill-template" \
  -d '{"url":"https://tanod.dev/samples/invoice-template.docx","data":{"items":[{"qty":3,"name":"Widget","price":"9.00"},{"qty":1,"name":"Gadget","price":"24.50"}],"total":"51.50","invoice":{"number":"INV-1042"},"customer":{"city":"Lisbon","name":"Acme Ltd"}}}'

# 402 Payment Required comes back with the price and where to pay.
# Any x402 client pays and retries.

Example input

{
  "url": "https://tanod.dev/samples/invoice-template.docx",
  "data": {
    "items": [
      {
        "qty": 3,
        "name": "Widget",
        "price": "9.00"
      },
      {
        "qty": 1,
        "name": "Gadget",
        "price": "24.50"
      }
    ],
    "total": "51.50",
    "invoice": {
      "number": "INV-1042"
    },
    "customer": {
      "city": "Lisbon",
      "name": "Acme Ltd"
    }
  }
}

More from Tanod pdfpeekProvider status