Integrations
Endpoints designed for no-code automation platforms like Zapier, Make (Integromat), and n8n. These provide polling triggers and simplified actions for building PDF workflows without writing code.Test Authentication
GET https://api.getdocuforge.dev/v1/integrations/auth/test
Verify that an API key is valid. Used during Zapier/Make connection setup.
Response
Trigger: New Generation
GET https://api.getdocuforge.dev/v1/integrations/triggers/new-generation
Polling trigger that returns the most recent PDF generations. Automation platforms call this periodically to detect new items.
Query Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
limit | integer | 10 | Number of results to return (max 100) |
Response
Trigger: New Template
GET https://api.getdocuforge.dev/v1/integrations/triggers/new-template
Polling trigger that returns the most recent templates.
Query Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
limit | integer | 10 | Number of results to return (max 100) |
Response
Action: Generate PDF
POST https://api.getdocuforge.dev/v1/integrations/actions/generate
Simplified PDF generation action with flat parameters (no nested options object). Designed for easy mapping in automation builders.
Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
html | string | * | Raw HTML to convert to PDF |
template_id | string | * | Template ID (tmpl_xxx) |
data | object | No | Data to merge into template variables |
format | string | No | "A4" (default), "Letter", or "Legal" |
orientation | string | No | "portrait" (default) or "landscape" |
html or template_id is required.
Example
Response
Errors
All integration endpoints return the same error codes:| Status | Code | Description |
|---|---|---|
| 400 | VALIDATION_ERROR | Invalid request body or missing required fields |
| 401 | UNAUTHORIZED | Invalid or missing API key |
| 403 | USAGE_LIMIT_EXCEEDED | Monthly PDF limit reached (generate action only) |
| 404 | NOT_FOUND | Template not found (generate action only) |
| 429 | RATE_LIMITED | Too many requests |
| 500 | INTERNAL_ERROR | Server error |

