CraftMyPDF integration
CraftMyPDF document generation API: fill a drag and drop template with JSON data to produce a PDF or an image, generate in bulk or in the background with a webhook callback, merge PDFs given as URLs, stamp text onto an existing document, fill the fillable fields of a PDF, read the information of a PDF, and manage the templates, transactions and quota of the account. Generation calls answer with a link to the produced file on a CDN, which expires after the requested delay. Requests authenticate with an API key sent in a header.
Say what should happen.
The workflow builds itself.
Common CraftMyPDF use cases
- producing an invoice from order data
- discovering which keys a template expects
- numbering the pages of an assembled report
- removing a template that is no longer used
- checking the remaining quota before a batch
- filling a downloadable form from record data
- reconciling how many credits a batch consumed
- binding a generated cover to a generated report
- finding the identifier of a template by its name
- checking the page count before adding page numbers
What you can do with CraftMyPDF
Each of these is one operation on one endpoint, available both as a workflow step and as a tool an AI agent can call on its own. Nothing bundles several operations into one action, so what a run did stays readable afterwards.
Most endpoints run on the free plan. A few, mainly the ones that publish on your behalf, need a paid plan.
Pdf, 6 operations
add_text_to_pdfAdd text to pdfPOSTDraws text, page numbers or a watermark onto a PDF reachable by URL.create_pdfCreate pdfPOSTGenerates a PDF from a CraftMyPDF template and the data that fills it.create_pdf_asyncCreate pdf asyncPOSTQueues a PDF generation and has the result delivered to a webhook.get_pdf_infoGet pdf infoGETReads the page count and metadata of a PDF given by its address.merge_pdfsMerge pdfsPOSTMerges PDFs reachable by URL into a single document.update_pdf_fieldsUpdate pdf fieldsPOSTFills the fillable fields of a PDF and reports the outcome per field.
Template, 3 operations
delete_templateDelete templateGETDeletes a CraftMyPDF template.get_templateGet templateGETReads the definition and the sample data of one template.list_templatesList templatesGETLists the CraftMyPDF templates available to the account.
Account, 1 operation
get_account_infoGet account infoGETReads the CraftMyPDF plan with its used and maximum quota.
Image, 1 operation
create_imageCreate imagePOSTGenerates a JPEG or PNG from a CraftMyPDF template and its data.
Transaction, 1 operation
list_transactionsList transactionsGETLists past CraftMyPDF generations with their cost and outcome.
Use CraftMyPDF from Claude Code, Cursor or Codex
Connect CraftMyPDF in LiveContext, create an API key in Settings, then add the LiveContext MCP server to your client. Its CraftMyPDF operations become tools the client can call, next to every other integration you connected.
claude mcp add --transport http livecontext https://livecontext.ai/mcp --header "X-API-Key: YOUR_API_KEY"[mcp_servers.livecontext]
url = "https://livecontext.ai/mcp"
[mcp_servers.livecontext.http_headers]
"X-API-Key" = "YOUR_API_KEY"{
"mcpServers": {
"livecontext": {
"type": "http",
"url": "https://livecontext.ai/mcp",
"headers": {
"X-API-Key": "YOUR_API_KEY"
}
}
}
}How to connect CraftMyPDF
- Create your workspace
Sign up free. Nothing to install.
- Connect CraftMyPDF once
Add your CraftMyPDF connection in Settings. Every tool from this integration reuses it, and secrets are encrypted at rest and visible only to you.
- Describe the job in chat
The workflow builds itself in front of you and picks the endpoints it needs. Drag the steps yourself on the canvas whenever you would rather be explicit.
CraftMyPDF integration FAQ
What can you do with the CraftMyPDF integration?
LiveContext exposes 12 operations on CraftMyPDF, covering pdf, template, account and image. Common uses include producing an invoice from order data, discovering which keys a template expects and numbering the pages of an assembled report.
