> For the complete documentation index, see [llms.txt](https://docs.fastn.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fastn.ai/connectors/catalog/docs-knowledge/pdfmonkey.md). Agents can also search and read this documentation through its [MCP server](https://docs.fastn.ai/~gitbook/mcp).

# PDFMonkey

PDFMonkey generates PDF and image documents from templates. Create documents and manage templates, snippets and folders.

![PDFMonkey logo](https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-bd269d9620647159bd52eb2618cc37b6eaae6a80%2Fpdfmonkey.png?alt=media)

|                    |                                                                                  |
| ------------------ | -------------------------------------------------------------------------------- |
| **Category**       | [Docs and knowledge](https://docs.fastn.ai/connectors/catalog/docs-knowledge.md) |
| **Website**        | [pdfmonkey.io](https://pdfmonkey.io)                                             |
| **Authentication** | Access token                                                                     |
| **Slug**           | `pdfmonkey`                                                                      |
| **On fastn.ai**    | [Embed PDFMonkey in your product](https://fastn.ai/integrations/pdfmonkey)       |

## Setup

Your customers enter their access token for PDFMonkey when they connect. Nothing else needs setting up.

## Connect in Fastn

Your customers connect PDFMonkey from your widget. To connect an account yourself:

1. Go to **Build → Integrations → Connectors** and search for **PDFMonkey**.
2. Select **Connect** on the PDFMonkey card.

   <figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-586dd03cdc0c6904263f58928d7a531eae2f85df%2Fconnect-search.png?alt=media" alt="The Connectors page in Fastn with ServiceNow typed in the search box and the ServiceNow card showing a Connect button"><figcaption><p>Search for the connector, then select Connect on its card. ServiceNow is shown here.</p></figcaption></figure>
3. Fill in the fields the form asks for, using the values from [Setup](#setup) above. Then select **Connect**.

   <figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-51fb88ef328c525b5b11f8d7094bab11efc333b8%2Fconnect-credentials.png?alt=media" alt="The Connect ServiceNow dialog with an optional account name and the Instance, Username and Password fields, and Cancel and Connect buttons"><figcaption><p>A connect form that asks for credentials. Each connector asks for its own fields.</p></figcaption></figure>
4. Check that the connection appears under **Operate → Connections** with the status `Active`. Your workflows can now use PDFMonkey's actions.

For more detail, see [Connect an app](https://docs.fastn.ai/build/integrations/connectors/connect-an-app.md).

## Actions

<table><thead><tr><th width="240">Action</th><th width="260">Slug</th><th>What it does</th></tr></thead><tbody><tr><td>Create Document</td><td><code>createDocument</code></td><td>Creates a document from a document template and queues it for asynchronous generation. Set the status to 'pending' to start generating immediately, or 'draft' to store the document without rendering it.</td></tr><tr><td>Create Document Template</td><td><code>createDocumentTemplate</code></td><td>Creates a document template in a workspace. The template body is Liquid-flavoured HTML for code templates, and the SCSS style sheet controls its appearance. Returns the created template including its identifier and rendering engine.</td></tr><tr><td>Create Snippet</td><td><code>createSnippet</code></td><td>Creates a reusable code snippet in a workspace so that several document templates can share the same Liquid or HTML fragment.</td></tr><tr><td>Create Snippet Folder</td><td><code>createSnippetFolder</code></td><td>Creates a snippet folder in a workspace so that reusable code snippets can be grouped together.</td></tr><tr><td>Create Template Folder</td><td><code>createTemplateFolder</code></td><td>Creates a template folder in a workspace so that document templates can be grouped together.</td></tr><tr><td>Delete Document</td><td><code>deleteDocument</code></td><td>Permanently deletes a generated document and the file stored for it. Documents are also removed automatically once their template's retention period elapses.</td></tr><tr><td>Delete Document Template</td><td><code>deleteDocumentTemplate</code></td><td>Permanently deletes a document template by its unique identifier. Documents already generated from the template are not removed.</td></tr><tr><td>Delete Snippet</td><td><code>deleteSnippet</code></td><td>Deletes a reusable code snippet by its unique identifier. Templates that still reference the snippet will fail to render until they are updated.</td></tr><tr><td>Delete Snippet Folder</td><td><code>deleteSnippetFolder</code></td><td>Deletes a snippet folder by its unique identifier. Snippets inside the folder are not deleted; they are moved back to the workspace root.</td></tr><tr><td>Delete Template Folder</td><td><code>deleteTemplateFolder</code></td><td>Deletes a template folder by its unique identifier. Templates inside the folder are not deleted; they are moved back to the workspace root.</td></tr></tbody></table>

<details>

<summary>View 26 more actions</summary>

<table><thead><tr><th width="240">Action</th><th width="260">Slug</th><th>What it does</th></tr></thead><tbody><tr><td>Generate Document Synchronously</td><td><code>generateDocumentSync</code></td><td>Generates a document and waits for rendering to finish before responding, returning a Document Card that already carries the download URL. Use this when the caller needs the finished file immediately rather than polling.</td></tr><tr><td>Get Current User</td><td><code>getCurrentUser</code></td><td>Retrieves the PDFMonkey account that owns the API key, including the current plan, document quota and remaining document allowance.</td></tr><tr><td>Get Document</td><td><code>getDocument</code></td><td>Retrieves a single generated document by its unique identifier, including the merge payload, generation logs and the download URL once rendering has succeeded.</td></tr><tr><td>Get Document Card</td><td><code>getDocumentCard</code></td><td>Retrieves a single generated document as a lightweight Document Card, which carries the status, filename and download URL without the merge payload or generation logs. Use it to poll for the result of an asynchronous generation.</td></tr><tr><td>Get Document Template</td><td><code>getDocumentTemplate</code></td><td>Retrieves a single document template by its unique identifier, including the published and draft body, SCSS styles, sample data and rendering settings.</td></tr><tr><td>Get Invoice</td><td><code>getInvoice</code></td><td>Retrieves a single billing invoice for the PDFMonkey subscription by its unique identifier.</td></tr><tr><td>Get Snippet</td><td><code>getSnippet</code></td><td>Retrieves a single reusable code snippet by its unique identifier, including its shared Liquid or HTML code.</td></tr><tr><td>Get Snippet Folder</td><td><code>getSnippetFolder</code></td><td>Retrieves a single snippet folder by its unique identifier.</td></tr><tr><td>Get Template Folder</td><td><code>getTemplateFolder</code></td><td>Retrieves a single template folder by its unique identifier.</td></tr><tr><td>Get Workspace</td><td><code>getWorkspace</code></td><td>Retrieves a single workspace by its unique identifier, including its invite token.</td></tr><tr><td>List Document Cards</td><td><code>listDocumentCards</code></td><td>Lists generated documents as lightweight Document Cards, which omit the payload and generation logs. Supports filtering by template, status, workspace, last-update time and a free-text search, plus page-based pagination.</td></tr><tr><td>List Document Template Cards</td><td><code>listDocumentTemplateCards</code></td><td>Lists document templates as lightweight Template Cards, which omit the body and styles but add the rendering engine name and the containing folder. Use this to populate template pickers.</td></tr><tr><td>List Document Templates</td><td><code>listDocumentTemplates</code></td><td>Lists the document templates in the account, returning the full template records including body, styles and rendering settings.</td></tr><tr><td>List Documents</td><td><code>listDocuments</code></td><td>Lists generated documents with their full records, including the merge payload and the stored file details. Use List Document Cards instead when only the summary fields are needed, or Get Document when the generation logs are required.</td></tr><tr><td>List Invoices</td><td><code>listInvoices</code></td><td>Lists the billing invoices issued for the PDFMonkey subscription. Accounts on a trial or free plan have no invoices and receive an empty list.</td></tr><tr><td>List PDF Engines</td><td><code>listPdfEngines</code></td><td>Lists the PDF rendering engines available to document templates, with their version numbers and deprecation dates. Use the returned identifier to pin a template to a specific engine.</td></tr><tr><td>List Snippet Folders</td><td><code>listSnippetFolders</code></td><td>Lists the snippet folders used to organise reusable code snippets within a workspace.</td></tr><tr><td>List Snippets</td><td><code>listSnippets</code></td><td>Lists the reusable code snippets available to templates in a workspace. Snippets hold shared Liquid or HTML fragments that templates include.</td></tr><tr><td>List Template Folders</td><td><code>listTemplateFolders</code></td><td>Lists the template folders used to organise document templates within a workspace.</td></tr><tr><td>List Workspace Cards</td><td><code>listWorkspaceCards</code></td><td>Lists the account's workspaces as summary cards, which add the current subscription plan and the last update time to the basic workspace details.</td></tr><tr><td>List Workspaces</td><td><code>listWorkspaces</code></td><td>Lists the workspaces the account can access. A workspace groups document templates, snippets and generated documents, and its identifier is required when creating a template.</td></tr><tr><td>Update Document</td><td><code>updateDocument</code></td><td>Updates a document. Change the merge payload or metadata while it is still a draft, or set the status to 'pending' to trigger generation of a document that was saved as a draft.</td></tr><tr><td>Update Document Template</td><td><code>updateDocumentTemplate</code></td><td>Updates a document template. Only the fields supplied are changed, so this can be used to publish a new body, adjust the SCSS styles, change the rendering engine or move the template into a folder.</td></tr><tr><td>Update Snippet</td><td><code>updateSnippet</code></td><td>Updates a reusable code snippet. Only the fields supplied are changed, so the snippet can be renamed, re-coded or moved into a different snippet folder independently.</td></tr><tr><td>Update Snippet Folder</td><td><code>updateSnippetFolder</code></td><td>Renames a snippet folder by its unique identifier.</td></tr><tr><td>Update Template Folder</td><td><code>updateTemplateFolder</code></td><td>Renames a template folder by its unique identifier.</td></tr></tbody></table>

</details>

## Events

Start a workflow when one of these happens, with an [app event trigger](https://docs.fastn.ai/build/integrations/triggers.md).

<table><thead><tr><th width="240">Event</th><th width="260">Id</th><th>When it fires</th></tr></thead><tbody><tr><td>Document Generated Successfully</td><td><code>success</code></td><td>Fires when PDFMonkey finishes generating a document and its download URL is available. PDFMonkey names this event documents.generation.success and delivers it through Svix, which carries the event name in the svix-event-type header rather than in the body, so Fastn routes on the payload's own document.status field instead. SETUP - PDFMonkey has no webhook registration API, so the endpoint is added by hand: sign in at https://dashboard.pdfmonkey.io, click Webhooks in the main navigation, click + Add Endpoint, paste this trigger's Fastn webhook URL into the Endpoint URL field, subscribe the endpoint to documents.generation.success, then save.</td></tr><tr><td>Document Generation Failed</td><td><code>failure</code></td><td>Fires when PDFMonkey fails to render a document; the failure_cause field describes what went wrong. PDFMonkey names this event documents.generation.failure and delivers it through Svix, which carries the event name in the svix-event-type header rather than in the body, so Fastn routes on the payload's own document.status field instead. SETUP - PDFMonkey has no webhook registration API, so the endpoint is added by hand: sign in at https://dashboard.pdfmonkey.io, click Webhooks in the main navigation, click + Add Endpoint, paste this trigger's Fastn webhook URL into the Endpoint URL field, subscribe the endpoint to documents.generation.failure, then save.</td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.fastn.ai/connectors/catalog/docs-knowledge/pdfmonkey.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
