Setup Guide
1 Get Your API Key
First, create a free PDFModule account and get your API key from the dashboard.
- Go to pdfmodule.com/register and create an account
- Navigate to API Keys in your dashboard
- Create a new API key (starts with
pm_live_)
2 Add HTTP/Webhook
In your Zapier workflow, add an HTTP request action with these settings:
- Method:
POST - URL:
https://api.pdfmodule.com/v1/render - Headers:
Authorization: Bearer YOUR_API_KEYContent-Type: application/json
3 Configure Request Body
Set your request body to JSON with your template and data:
{
"template": "invoice",
"data": {
"invoice_number": "INV-2024-001",
"customer_name": "Acme Corporation",
"items": [
{
"description": "Professional Services",
"quantity": 10,
"price": 150.00
}
],
"total": 1500.00
}
}
Using Chromium Engine for Rich CSS
For templates with Flexbox, CSS Grid, or modern CSS, add "engine": "chromium" to your request body.
{
"template": "invoice",
"engine": "chromium",
"data": {
"invoice_number": "INV-2024-001",
// ... your data
}
}
4 Use the Response
The API returns a JSON response with the PDF URL. Use this in your next workflow step:
{
"uuid": "550e8400-e29b-41d4-a716-446655440000",
"url": "https://storage.pdfmodule.com/pdfs/550e8400...",
"output_hash": "sha256:abc123..."
}
Common next steps:
- Send the PDF via email using the
urlfield - Upload to Google Drive, Dropbox, or other storage
- Attach to a Slack message or notification
- Store the
uuidin your database for reference
Zapier Configuration Example
Here's how your HTTP/Webhook configuration should look:
// Zapier Webhook Configuration URL: https://api.pdfmodule.com/v1/render Method: POST Headers: Authorization: Bearer pm_live_xxxxx Content-Type: application/json Body: { "template": "invoice", "engine": "chromium", // For rich CSS "data": { "invoice_number": "{{1. Invoice Number}}", "customer_name": "{{2. Customer Name}}", "customer_email": "{{3. Email}}", "items": [ { "description": "{{4. Item}}", "quantity": {{5. Qty}}, "price": {{6. Price}} } ], "total": {{7. Total}} } } // Response contains: // { "uuid": "...", "url": "https://...", "output_hash": "..." } // Use {{url}} in next step to send/attach PDF
Why Use PDFModule with Zapier?
Simple HTTP Call
Just a POST request. No complex setup, no dependencies, no browser automation.
Professional PDFs
Headers, footers, page numbers, margins - everything you need for professional documents.
Reliable Output
Same input = same PDF every time. Deterministic output for consistent results.
Ready to Automate PDF Generation?
Get your free API key and start generating PDFs in your Zapier workflows.
Create Free Account Read the Docs