# Documint

Documint is a document generation platform that allows you to create dynamic documents from templates.

- **Category:** documents
- **Auth:** API_KEY
- **Composio Managed App Available?** N/A
- **Tools:** 6
- **Triggers:** 0
- **Slug:** `DOCUMINT`
- **Version:** 20260407_00

## Tools

### Create Document

**Slug:** `DOCUMINT_CREATE_DOCUMENT`

Tool to merge data into a template to create a document (PDF generation). Send JSON data with template variables in the request body to generate a PDF document. Returns a URL to the generated PDF (valid for 24 hours).

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | object | Yes | Key-value pairs where keys are token names in the template (e.g., {{name}}, {{email}}) and values are the data to merge. The structure depends on your specific template requirements. Values can be strings, numbers, booleans, or null. |
| `active` | boolean | No | Use the active version of the template. Set to false to use the draft version. Default is true. |
| `preview` | boolean | No | Generate a preview document (watermarked). Set to true for testing without consuming API credits. Default is false. |
| `templateId` | string | Yes | The unique identifier of the template to use for document generation. This is a 24-character hexadecimal string that can be obtained from the List Templates action. |
| `watchFields` | string | No | Comma-separated list of template field names to watch for changes. Use this to track which fields are being updated. |
| `ignoreFields` | string | No | Comma-separated list of template field names to ignore during the merge process. Fields listed here will not be replaced in the generated document. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Delete Template

**Slug:** `DOCUMINT_DELETE_TEMPLATE`

Tool to permanently delete a single template by its ID. Use when you need to remove an outdated or unused template; ensure the template ID is correct before calling.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `template_id` | string | Yes | The unique identifier (MongoDB ObjectId) of the template to delete. Obtain this from list_templates or get_template actions. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Template

**Slug:** `DOCUMINT_GET_TEMPLATE`

Tool to retrieve a single template by its ID. Use when you need to fetch details of a specific template before generating documents.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `templateId` | string | Yes | The unique identifier of the template to retrieve. This is a 24-character hexadecimal string returned by the List Templates action. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Documents

**Slug:** `DOCUMINT_LIST_DOCUMENTS`

Retrieves documents from the authenticated user's Documint account with optional pagination. Returns a list of documents with their IDs, names, associated templates, and timestamps. Use this to view previously generated documents or to find document IDs for further operations. Supports page and limit parameters for paginated results.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `page` | integer | No | Page number to retrieve (1-indexed). Defaults to 1 if not specified. |
| `limit` | integer | No | Maximum number of documents to return per page (max 200). Defaults to the API's default if not specified. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Templates

**Slug:** `DOCUMINT_LIST_TEMPLATES`

Tool to list all templates in the authenticated user's account. Use after obtaining a valid API key.

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Update Template

**Slug:** `DOCUMINT_UPDATE_TEMPLATE`

Tool to update a single template by its ID. Use when you need to modify an existing template's settings or layout after fetching its current details.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `css` | string | No | CSS styles for the template. |
| `html` | string | No | HTML content/body of the template. Supports Handlebars syntax for dynamic content. |
| `name` | string | No | New name for the template. |
| `options` | object | No | PDF rendering options for the template. |
| `template_id` | string | Yes | Unique identifier of the template to update. Obtain from list_templates or get_template. |
| `footer_template` | string | No | HTML template for the page footer. |
| `header_template` | string | No | HTML template for the page header. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |
