For AI agents: a machine-readable documentation index for this API is available at /llms.txt. Every page is also available as Markdown: append ".md" to the URL or send an "Accept: text/markdown" request header.

Fill a Word template into a new .docx ({placeholders}, lists, repeated table rows)

The file in the path is a Word (.docx) template with {placeholders}; it is never changed. `values` maps each placeholder name to text, or to a list of rows ([{ item: 'Setup', price: '100' }]) for a repeated block or table row. Every placeholder must have a value and every value a placeholder: otherwise 422 unprocessable_file with details.missing, details.unused and details.placeholders (the template's own placeholder names). Placeholder names are used exactly as sent (they are never renamed). name and folder_id choose the new file (default '<template> (filled).docx' next to the template). Needs files:write; 20 calls a minute per token.

What you provide

  • Values: Each placeholder name (exactly as written in the template) to text, or to a list of rows for a repeated block
  • Nameoptional: The new file's name; default '<template> (filled).docx'
  • Folder idoptional: The folder; omitted keeps the template's folder

Do this with AI

I want to fill a Word template into a new .docx ({placeholders}, lists, repeated table rows). Use the Tarkle API. Read the reference for this operation and follow it exactly: https://project-03b42162.restlessdocs.com/endpoint/filltemplate.md Authenticate with your API key as a Bearer token in the Authorization header. Then make the request for me and tell me what came back.

Paste this into Claude, Cursor, or any AI assistant and it will do it for you.