PDFMonkey
v1.0.1Generate PDFs from templates using the PDFMonkey API
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_workspaces
List all PDFMonkey workspaces accessible with the current API key
list_templates
List all PDF templates available in the workspace. Optionally scope the listing to a specific workspace with workspace_id.
| Parameter | Type | Description |
|---|---|---|
workspace_id | string | Optional workspace (app) ID to scope the template listing. When omitted, uses the default workspace. |
get_template
Get detailed information about a specific template including HTML, CSS, and sample data
| Parameter | Type | Description |
|---|---|---|
template_id * | string | The ID of the template to retrieve |
generate_document
Generate a PDF document from a template with provided data. This uses async generation with automatic polling until completion. Returns the download URL when ready. Optionally target a specific workspace with workspace_id.
| Parameter | Type | Description |
|---|---|---|
payload * | object | The data to merge into the template (must match template structure) |
template_id * | string | The ID of the template to use for generation |
filename | string | Optional filename for the generated PDF (e.g., "invoice-001.pdf") |
meta | object | Optional additional metadata to store with the document |
ttl | string | Optional time-to-live for automatic deletion (e.g., "7d", "2h", "30m") |
workspace_id | string | Optional workspace (app) ID to generate the document in. When omitted, uses the default workspace. |
get_document_status
Check the generation status of a document and get its download URL if ready
| Parameter | Type | Description |
|---|---|---|
document_id * | string | The ID of the document to check |
list_documents
List documents with optional filtering by status, template, or update time
| Parameter | Type | Description |
|---|---|---|
page | number | Page number for pagination (default: 1) |
status | string | Filter by document status |
template_id | string | Filter by template ID |
updated_since | string | Filter by update timestamp (ISO 8601 format) |
delete_document
Permanently delete a document and its generated PDF
| Parameter | Type | Description |
|---|---|---|
document_id * | string | The ID of the document to delete |
list_snippets
List all reusable Liquid code snippets in the workspace
get_snippet
Get the Liquid code of a specific snippet
| Parameter | Type | Description |
|---|---|---|
snippet_id * | string | The ID of the snippet to retrieve |
get_quota
Get current quota and plan information for the account
get_user_info
Get complete user account information including personal details, plan, and settings