The API works with both Google Doc and PDF template automations. The same
POST /createDocument endpoint generates documents from either template type — the automation’s configuration determines the output.Base URL
Authentication
All API requests require authentication. Pass your API key using either method:Find your API key at app.docsautomator.co/settings/workspace/api. API keys are scoped to a workspace.
Quick Start
Create your first document in three steps:Get your automation ID
Find the automation ID on the automation’s settings page, or call
GET /automations to list all automations.Sync vs Async Mode
By default,POST /createDocument runs synchronously and waits for the document to be generated (up to 5 minutes). For high-volume or latency-sensitive workflows, use async mode.
Sync mode (default)
200 with the PDF URL when complete.
Async mode
202 with a jobId immediately. Poll GET /job/{jobId} for the result:
Data Source Guides
ThePOST /createDocument endpoint works differently depending on your automation’s data source. See the guide for your data source:
API
Pass data directly — most flexible option
Airtable
Pass a record ID
Google Sheets
Pass a row number
SmartSuite
Pass a record ID
ClickUp
Pass a task ID
Rate Limits
| Scope | Limit |
|---|---|
| Global | 2000 requests per 15 minutes per API key |
| Test email | 25 per hour per automation |
| Queue concurrency | Max 5 active jobs per workspace |
429 Too Many Requests.
Error Codes
| Code | Description |
|---|---|
400 | Bad request — missing or invalid parameters |
401 | Unauthorized — incorrect or missing API key |
402 | Payment required — document limit exceeded |
404 | Not found — automation, template, or resource doesn’t exist |
429 | Rate limited — too many requests |
500 | Server error — try again or contact support |
Common 401 Causes
- Missing
AuthorizationorX-API-Keyheader - Incorrect API key
- Expired Google refresh token (reconnect Google account in the app)
Common 404 Causes
- Automation ID doesn’t exist or belongs to another workspace
- No template configured on the automation
- Automation is inactive (set
isActive: truevia the API or app)
Webhooks
Configure a webhook URL on your automation to receive notifications after document generation. The webhook receives a POST request with:webhookParams in your createDocument request. It is returned under both webhookParams and additionalParams (identical content; the latter is kept for backward compatibility), together with the automatically included trigger record identifier — recId (Airtable, SmartSuite, Notion), taskId (ClickUp), or rowNumber (Google Sheets). Your own keys are never overwritten.
E-Signatures
When an automation has e-signatures enabled and the template contains e-sign placeholders ({{esign.signature_1}}, {{esign.date_1}}, etc.), creating a document automatically starts a signing workflow. The response includes the signing session ID and signing links.
See the E-Signatures endpoints for managing signing sessions programmatically, or the eSign guide for setup instructions.
Each endpoint in the API Reference section includes an interactive API playground where you can test requests directly from the docs. Navigate to any endpoint page and look for the “Try it” panel on the right side.
Need Help?
In-App Chat
Contact support via the in-app chat