Tools
This is a reference catalogue. Tools cannot be configured or run from this page.
Create Document
PDFMONKEY_CREATE_DOCUMENTTool 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.
Create Document Sync
PDFMONKEY_CREATE_DOCUMENT_SYNCCreates a document using the synchronous generation endpoint and returns a DocumentCard. Set status to 'pending' to start generation; the endpoint waits for completion.
Create Template
PDFMONKEY_CREATE_TEMPLATECreate a reusable PDFMonkey document template with HTML/Liquid content and CSS styles for generating documents. Draft content and settings can be used to preview changes before publishing.
Delete Document
PDFMONKEY_DELETE_DOCUMENTPermanently deletes a document and its generated file by ID. On success, returns the document ID, a deleted flag, and the HTTP status code.
Delete PDFMonkey Document Template
PDFMONKEY_DELETE_TEMPLATEPermanently deletes a document template by ID. Documents linked to the template lose their template reference.
Download Document File
PDFMONKEY_DOWNLOAD_DOCUMENT_FILETool to download a generated PDF file via a presigned URL. Use after obtaining a valid download_url from the Document details endpoint. Verify document status is 'success' (not 'draft' or 'pending') via PDFMONKEY_GET_DOCUMENT before downloading to avoid incomplete files. The URL expires after 1 hour; fetch a new URL upon expiry (403 Forbidden).
Get Current User
PDFMONKEY_GET_CURRENT_USERTool to retrieve details about the currently authenticated user. Use when you need account info (quota, plan, email, locale) after authentication.
Get Document
PDFMONKEY_GET_DOCUMENTTool to fetch a Document by its ID. Returns the full document record including payload, meta, logs, and download URL. Note: download_url is time-limited; if a download attempt fails, call GetDocument again to obtain a fresh URL. Check the status field for a finalized (non-draft) state before passing the record to downstream processing tools.
Get DocumentCard
PDFMONKEY_GET_DOCUMENT_CARDTool 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.
Get Template by ID
PDFMONKEY_GET_TEMPLATETool to fetch a Document Template by ID. Use when you need the template's content, styles, settings, and preview URL.
List DocumentCards
PDFMONKEY_LIST_DOCUMENT_CARDSTool to list DocumentCards. Use when you need to retrieve multiple DocumentCards with optional pagination and filtering by template, status, workspace, or update time.
List PDF Engines
PDFMONKEY_LIST_PDF_ENGINESLists all available PDF rendering engines in PDFMonkey. Returns engine IDs, version names, numeric versions, and deprecation status. Use this to select a PDF engine when creating templates or generating documents. Recommended: Use the latest non-deprecated engine (e.g., v5 or highest version).
List Template Cards
PDFMONKEY_LIST_TEMPLATESList all document template cards for a workspace. Use this action to: - Retrieve all templates available in a workspace - Filter templates by folder (or get only root folder templates with folders='none') - Paginate through large template lists - Sort templates by identifier, creation date, or last update date Returns template cards with metadata including IDs, names, auth tokens, and timestamps.
List Workspaces
PDFMONKEY_LIST_WORKSPACESDiscover PDFMonkey workspaces (applications) available to the authenticated user.
Preview Template
PDFMONKEY_PREVIEW_TEMPLATEFetches the template preview viewer page from PDFMonkey's preview_url. Returns an HTML viewer page that displays the rendered template draft. Use this after obtaining a template's preview_url via Get Template or List Templates.
Update Document
PDFMONKEY_UPDATE_DOCUMENTUpdates an existing PDFMonkey document's payload, metadata, template, or status. Common use cases: - Modify document data (payload) before generation - Change the template used for the document - Add or update custom metadata - Trigger PDF regeneration by setting status to 'pending' Note: To regenerate a document with updated data, update the payload and set status='pending'.
Update Document Template
PDFMONKEY_UPDATE_TEMPLATETool to update a document template’s properties. Use when you need to modify an existing template’s content, styles, settings, engine, folder, or TTL.
View Public Share Link
PDFMONKEY_VIEW_PUBLIC_SHARE_LINKCheck access to a PDFMonkey public share link or supplied direct download URL and return the resolved URL for client-side downloading.