pdfpeek (Tanod) Word template fill: {{placeholders}} in a DOCX replaced from JSON data,…
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.
by tanod.dev · discovered, not yet claimed by its owner · updated 2026-10-09
Mirrored from Coinbase's public x402 Bazaar. The description is the provider's own text and has not been reviewed here; the payment requirements are copied as published.
What it does
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.
Tags: pdfpeek · docs · fill · template · pdf · bazaar · builder-code
Call contract
- Method
- POST
- Input
- json
- Output
- json
- Last paid call
- 2026-10-09
{
"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"
}{
"file": {
"bytes": 1151,
"content_type": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
"data_base64": "UEsDBBQAAAAIAAAA... (trimmed: 1,536 base64 characters in the reply)",
"name": "filled.docx"
},
"input_bytes": 1158,
"missing": [],
"operation": "docx-fill",
"output": "docx",
"output_bytes": 1151,
"placeholders_filled": 10,
"unmatched_loop_tags": [],
"untrusted_content": true
}Use with an agent
- Discover. Agents find this listing with
GET https://bazaar.saylorinnovations.com/discovery/search?query=…, the MCP toolsearch_resources, or/discovery/resources. - Inspect. Fetch
/resources/35872.jsonfor the price and payment options. - Pay. Call
GET https://tanod.dev/v1/docs/fill-template. The provider answers402with its payment requirements. An x402 client signs one of the options below and retries withPAYMENT-SIGNATURE. - Execute. The provider returns
200with the data. Agent Bazaar is not in the request path and never sees your payment.
For humans
You don't need an account or an API key; you need a wallet holding a small amount of USDC on Base, Polygon, and an x402-capable client (see the examples below). Call the endpoint unpaid first to see exactly what it asks for.
Pricing & payment
- Price
- $0.005 / request
- Protocol
- x402 v2
- Auth
- No account or API key. Pay per request.
- Networks
- Base, Polygon
- Demand
- 2 calls · 2 unique payers in 30d (public x402 Bazaar data)
x402 payment requirements
| Scheme | Network | Asset | Amount | Pay to | Timeout |
|---|---|---|---|---|---|
| exact | Base eip155:8453 | USDC | $0.005 | 0x593857A4a4F619543ea12394137C3004ce841720 | 300s |
| exact | Polygon eip155:137 | USDC | $0.005 | 0x593857A4a4F619543ea12394137C3004ce841720 | 300s |
accepts[] (raw JSON)
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x593857A4a4F619543ea12394137C3004ce841720",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "5000",
"amountUsd": 0.005,
"maxTimeoutSeconds": 300
},
{
"scheme": "exact",
"network": "eip155:137",
"payTo": "0x593857A4a4F619543ea12394137C3004ce841720",
"asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
"amount": "5000",
"amountUsd": 0.005,
"maxTimeoutSeconds": 300
}
]Schemas
Output schema (JSON Schema)
{
"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"
}Example shape — generated from the schema, not a captured live response
{
"example": {
"fidelity_note": "string",
"file": {
"bytes": 0,
"content_type": "string",
"data_base64": "string",
"dpi": 0,
"first_page": 0,
"height": 0,
"last_page": 0,
"name": "string",
"page": 0,
"pages": 0,
"width": 0
},
"input_bytes": 0,
"missing": [
"string"
],
"operation": "string",
"output": "docx",
"output_bytes": 0,
"pages": 0,
"placeholders_filled": 0,
"unmatched_loop_tags": [
"string"
],
"untrusted_content": true
},
"type": "string"
}Examples
curl "https://tanod.dev/v1/docs/fill-template"
# -> 402 Payment Required, accepts[] lists how to pay
# retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paidconst res = await fetch("https://tanod.dev/v1/docs/fill-template");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}import httpx
res = httpx.get("https://tanod.dev/v1/docs/fill-template")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerDetails
- Provider
- tanod.dev
- Endpoint
- https://tanod.dev/v1/docs/fill-template
- Machine-readable
/resources/35872.json