# PDFMonkey

PDFMonkey is a service that automates the generation of PDF documents from templates, allowing users to create professional PDFs programmatically.

This is a first-class FlyMyAI MCP. Agents **discover it automatically** via tool search and call the actions below on demand - you never wire it up by hand. See the [Composio catalog](https://docs.flymy.ai/mcp/composio.md) for how discovery works.

## Connect

**PDFMonkey** authenticates with an API key. Generate the credential in your PDFMonkey account, then paste it into FlyMyAI the first time an agent uses a PDFMonkey action.

[Get your PDFMonkey credential →](https://dashboard.pdfmonkey.io/account)

### Fields to fill in FlyMyAI

| Field | Details |
| --- | --- |
| `PDFMonkey API Secret Key` | Your API Secret Key obtained from the PDFMonkey dashboard. _(required)_ |

## Actions

Every action this integration exposes. Agents pick the right one from the task; you do not call them by name.

| Action | What it does | Required inputs |
| --- | --- | --- |
| `PDFMONKEY_CREATE_DOCUMENT` | Tool to create a Document. Use when you need to instantiate a PDF from a template; set status='pending' to queue immediate generation. Ensure valid 'document_template_id' is provided. | `document` |
| `PDFMONKEY_CREATE_DOCUMENT_SYNC` | Tool to create a document and wait for generation to finish. Use when immediate PDF is needed. | `document` |
| `PDFMONKEY_CREATE_TEMPLATE` | Tool to create a new Document Template. Use when you need to define a template with custom content, styles, and settings before generating PDF documents. | `id`, `identifier`, `pdf_engine_draft_id` |
| `PDFMONKEY_DELETE_DOCUMENT` | Tool to delete a Document by its ID. Use when you need to permanently remove a document after confirming its ID. Returns 204 No Content on success. | `id` |
| `PDFMONKEY_DELETE_TEMPLATE` | Tool to delete a document template by ID. Use when you need to remove obsolete templates after validation. | `id` |
| `PDFMONKEY_DOWNLOAD_DOCUMENT_FILE` | Tool to download a generated PDF file via a presigned URL. Use after obtaining a valid download_url from the Document details endpoint. The URL expires after 1 hour; fetch a new URL upon expiry (403 Forbidden). | `download_url` |
| `PDFMONKEY_GET_CURRENT_USER` | Tool to retrieve details about the currently authenticated user. Use when you need account info (quota, plan, email, locale) after authentication. | - |
| `PDFMONKEY_GET_DOCUMENT` | Tool to fetch a Document by its ID. Use when you need the full document record including payload, meta, logs, and download URL. | `id` |
| `PDFMONKEY_GET_DOCUMENT_CARD` | Tool to fetch a DocumentCard by ID. Use when you have a DocumentCard ID and need its download URLs, status, and metadata. Use after generating or updating a DocumentCard. | `id` |
| `PDFMONKEY_GET_TEMPLATE` | Tool to fetch a Document Template by ID. Use when you need the template's content, styles, settings, and preview URL. | `id` |
| `PDFMONKEY_LIST_DOCUMENT_CARDS` | Tool to list DocumentCards. Use when you need to retrieve multiple DocumentCards with optional pagination and filtering by template, status, workspace, or update time. | - |
| `PDFMONKEY_LIST_PDF_ENGINES` | Tool to list available PDF engines with deprecation metadata. Use when you need to choose a rendering engine before generating PDFs. | - |
| `PDFMONKEY_LIST_TEMPLATES` | Tool to list template cards for a workspace. Use when you need to retrieve templates with optional folder filters, pagination, and sorting. | `q[workspaceId]` |
| `PDFMONKEY_LIST_WORKSPACES` | Tool to list workspaces (applications). Use when you need all available workspaces for the authenticated user after login. | - |
| `PDFMONKEY_PREVIEW_DOCUMENT` | Tool to open a document preview via a PDF.js viewer. Use when you need to embed the PDF preview in an iframe after obtaining the document ID. | `id` |
| `PDFMONKEY_PREVIEW_TEMPLATE` | Tool to preview a template draft as a real PDF via the preview_url. Use after obtaining a template's preview_url. | `preview_url` |
| `PDFMONKEY_UPDATE_DOCUMENT` | Tool to update a Document’s payload, meta, or status. Use when you need to modify a document properties or regenerate it. | `id`, `document` |
| `PDFMONKEY_UPDATE_TEMPLATE` | Tool to update a document template’s properties. Use when you need to modify an existing template’s content, styles, settings, engine, folder, or TTL. | `id`, `app_id`, `identifier`, `edition_mode` |
| `PDFMONKEY_VIEW_PUBLIC_SHARE_LINK` | Tool to download a publicly shared PDF via its permanent share link. Use when the document's public_share_link is enabled to fetch the PDF file directly. | `token`, `filename` |

## Links

- [PDFMonkey website](https://pdfmonkey.io/)
- [Get API key / credential](https://dashboard.pdfmonkey.io/account)
- [Browse the full Composio catalog](https://docs.flymy.ai/mcp/composio.md)
