---
canonical_url: "https://docs.composio.dev/toolkits/docupotion"
markdown_url: "https://docs.composio.dev/toolkits/docupotion.md"
product: "platform"
version: null
last_updated: null
---

# DocuPotion

DocuPotion generates PDF and PNG documents from reusable templates and structured data.

- **Category:** documents
- **Auth:** API_KEY
- **Composio-managed OAuth available?** N/A
- **Tools:** 3
- **Triggers:** 0
- **Slug:** `DOCUPOTION`
- **Version:** 00000000_00

## Tools

### Create Document

**Slug:** `DOCUPOTION_CREATE_DOCUMENT`

Generate one PDF or PNG from a DocuPotion template and dynamic data. This consumes account document quota and returns a temporary download URL.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | object | No | Dynamic merge-field values whose keys exactly match variables in the template Data tab; nested objects and arrays are supported. |
| `format` | string ("pdf" | "png") | No | File format to generate: pdf or png. |
| `expiration` | integer | No | Temporary download URL lifetime in minutes (1-10080). |
| `template_id` | string | Yes | ID of the DocuPotion template to render; obtain it from DOCUPOTION_LIST_TEMPLATES. |

#### 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 Account

**Slug:** `DOCUPOTION_GET_ACCOUNT`

Return the connected DocuPotion account identity and current document usage against its plan limit.

#### 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:** `DOCUPOTION_LIST_TEMPLATES`

Return all DocuPotion templates available to the connected account, including each template ID required to create a 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 |
