API reference for the PlumDocs Zapier integration. Generate documents programmatically from your Google Docs templates.
All API requests require authentication via an API key. Include your API key in the X-API-Key header.
Create your API key at Settings → Integrations
https://plumdocs.com/api/zapier/auth/testValidate your API key and retrieve account information.
curl -X GET "https://plumdocs.com/api/zapier/auth/test" \
-H "X-API-Key: YOUR_API_KEY"{
"id": "usr_abc123",
"email": "user@example.com",
"name": "John Doe"
}/workflowsList all active workflows for the authenticated user.
curl -X GET "https://plumdocs.com/api/zapier/workflows" \
-H "X-API-Key: YOUR_API_KEY"[
{
"id": "wf_abc123",
"name": "Proposal Generator"
},
{
"id": "wf_def456",
"name": "Invoice Template"
}
]/workflows/{id}/fieldsGet the template placeholders (input fields) for a workflow.
curl -X GET "https://plumdocs.com/api/zapier/workflows/WORKFLOW_ID/fields" \
-H "X-API-Key: YOUR_API_KEY"{
"fields": [
{
"key": "client_name",
"label": "Client Name",
"type": "string",
"required": true
},
{
"key": "project",
"label": "Project",
"type": "string",
"required": true
},
{
"key": "amount",
"label": "Amount",
"type": "string",
"required": true
}
]
}/workflows/{id}/runGenerate a document using the workflow template and provided data.
curl -X POST "https://plumdocs.com/api/zapier/workflows/WORKFLOW_ID/run" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"client_name": "Acme Corp",
"project": "Website Redesign",
"amount": "$5,000"
}'{
"id": "run_xyz789",
"status": "completed",
"document": {
"download_url": "https://...",
"filename": "Proposal_AcmeCorp.pdf",
"expires_at": "2025-01-15T12:00:00.000Z"
},
"data": {
"client_name": "Acme Corp",
"project": "Website Redesign",
"amount": "$5,000"
}
}The download_url is a signed URL valid for 7 days.
/triggers/documentsPoll for recently completed documents. Used by Zapier triggers.
curl -X GET "https://plumdocs.com/api/zapier/triggers/documents?since=2025-01-01T00:00:00Z" \
-H "X-API-Key: YOUR_API_KEY"since (optional) — ISO-8601 timestamp. Returns documents completed after this time. Defaults to last 24 hours.
[
{
"id": "doc_abc123",
"workflow_id": "wf_xyz789",
"workflow_name": "Proposal Generator",
"download_url": "https://...",
"filename": "Proposal_AcmeCorp.pdf",
"expires_at": "2025-01-15T12:00:00.000Z",
"completed_at": "2025-01-08T10:30:00.000Z",
"data": {
"client_name": "Acme Corp",
"project": "Website Redesign"
}
}
]| Status | Error Code | Description |
|---|---|---|
| 401 | invalid_api_key | API key is missing or invalid |
| 403 | usage_limit_exceeded | Monthly document limit reached |
| 403 | google_not_connected | Google Drive not connected |
| 404 | workflow_not_found | Workflow does not exist |
| 429 | rate_limit_exceeded | Too many requests |
| 500 | generation_failed | Document generation failed |
API requests are limited to 100 requests per minute per API key. If you exceed this limit, you will receive a 429 response.
For questions or issues with the API, contact us at support@plumdocs.com
© 2026 PlumDocs. All rights reserved.