# Docugenerate

DocuGenerate simplifies document generation by converting Word templates and JSON data into professional PDF files with ease. It supports automation of contracts, invoices, letters, certificates, and more, catering to both developers and non-developers. With an intuitive REST API and no-code integrations, it ensures seamless functionality for any scale.

- **Category:** documents
- **Auth:** API_KEY
- **Tools:** 12
- **Triggers:** 0
- **Slug:** `DOCUGENERATE`
- **Version:** 20260217_00

## Tools

### Delete Document

**Slug:** `DOCUGENERATE_DELETE_DOCUMENT`

Tool to delete a document by ID. Permanently removes the document from storage. Use when you need to clean up generated documents or remove outdated files from DocuGenerate.

### Delete template

**Slug:** `DOCUGENERATE_DELETE_TEMPLATE`

Tool to permanently delete a template by ID. Removes the template and all associated versions from storage. Use when a template is no longer needed.

### Generate documents from template

**Slug:** `DOCUGENERATE_DOCUMENT_GENERATE`

Tool to generate document(s) from a template by merging JSON data or uploading a data file. Use when you need to programmatically produce one or more documents and receive metadata including a download URL.

### Generate documents as ZIP

**Slug:** `DOCUGENERATE_DOCUMENT_GENERATE_BULK_ZIP`

Generate documents from a template with bulk data, returning output as a ZIP archive or combined file. Use this tool when you need to create one or more documents by merging template placeholders with data. Provide either JSON data array or upload a data file (Excel/CSV). Returns downloadable file with document_id for tracking. Note: Some plans may restrict bulk generation to one document at a time.

### Generate document with attachments

**Slug:** `DOCUGENERATE_DOCUMENT_GENERATE_WITH_ATTACHMENTS`

Generate documents from a template with optional embedded attachments or merged PDFs. Use this tool when you need to create documents and optionally bundle extra files as PDF attachments (via `attach`) or append additional PDF pages (via `merge_with`). Supports PDF, DOCX, DOC, ODT, and TXT output formats.

### Generate document with merge

**Slug:** `DOCUGENERATE_DOCUMENT_GENERATE_WITH_MERGE`

Generate a PDF document from a template with optional PDF merging. Use this to create documents by filling template placeholders with data, and optionally append additional PDF files to the result.

### Update Document

**Slug:** `DOCUGENERATE_DOCUMENT_UPDATE`

Update a document's name/title in DocuGenerate. Use this to rename an existing document after it has been generated. Requires a valid document ID (obtained from document generation or listing) and the new name. Returns the updated document metadata including the document_uri for downloading.

### Get document by ID

**Slug:** `DOCUGENERATE_GET_DOCUMENT`

Tool to retrieve a specific document by ID. Returns document metadata including name, format, template_id, and download URL. Use when you need to fetch details about an existing generated document.

### Get template by ID

**Slug:** `DOCUGENERATE_GET_TEMPLATE`

Tool to retrieve a specific template by ID. Returns template metadata including name, format, region, and configuration settings.

### List documents by template

**Slug:** `DOCUGENERATE_LIST_DOCUMENTS`

Tool to list all documents generated from a template. Results are ordered by created time in descending order. Use when you need to retrieve a list of previously generated documents for a specific template.

### Get or list templates

**Slug:** `DOCUGENERATE_TEMPLATE_GET_OR_LIST`

Tool to retrieve or list existing templates. Use when needing template IDs and metadata before making updates or generating documents.

### Update Template

**Slug:** `DOCUGENERATE_TEMPLATE_UPDATE`

Tool to update a template’s file and settings. Use after confirming the template ID and desired inputs.
