Skip to main content
The DocsAutomator API lets you generate documents programmatically, manage automations, and control e-signature workflows. Use it to integrate document generation into any application.
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:
Create an API key in Settings > API keys, or click Create a key for this in the automation’s setup guide. The full key is shown once, so copy it when you create it. API keys belong to a workspace. See API keys.

Quick Start

Create your first document in three steps:
1

Create an API key

Go to Settings > API keys in the DocsAutomator app, click Create key and copy the key. See API keys.
The Create API key dialog with the name Make in the Name field and the Cancel and Create key buttons

Click Create key and name the key after the app that will use it.

2

Get your automation ID

Find the automation ID on the automation’s settings page, or call GET /automations to list all automations.
3

Create a document

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)

Returns 200 with the PDF URL when complete.

Async mode

Returns 202 with a jobId immediately. Poll GET /job/{jobId} for the result:
Polling pattern: Use exponential backoff starting at 2 seconds. Jobs typically complete in 5-30 seconds.

Data Source Guides

The POST /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

When you exceed a rate limit, the API returns 429 Too Many Requests.

Document creation requests

Most workspaces never meet this limit. It only protects the API when one workspace sends a very large number of requests at once. It applies to every request to /createDocument, including requests from the API, Zapier, Make, n8n, MCP and the in-app assistant. These requests do not count toward the global limit. An open request is one that we have received and not yet answered.
  • Fewer than 20 open requests: your request is always accepted, even when the API is busy.
  • 20 or more open requests: your workspace has an allowance of 120 requests, which refills by 5 a second. When the allowance is used up, the next request gets a 429.
  • The API is busy: when the API holds 100 open document requests in total, only the workspace with the most open requests gets a 429.

How to retry

A 429 from the document creation limit means that no document was created, so it is safe to send the same request again. A 429 from a connected service (see Common 429 Causes) can come after part of the work is done, for example after the PDF was attached to a SmartSuite record.
  1. Read the Retry-After header of the response. It gives the wait in seconds.
  2. Wait that long, then send the same request again.
  3. If you send many documents, wait for some answers before you send more, or send "async": true so that each answer comes back at once.

Error Codes

Errors from /createDocument are JSON with a message. Some also have a code. A 4xx answer has the same status and code whether the request runs right away or waits in our queue.

Common 400 Causes

  • A required parameter is missing or invalid.
  • SOURCE_ACCOUNT_DISCONNECTED: the Google, Notion or Airtable account connected to your workspace no longer works. The message says which account. Reconnect it in the DocsAutomator app under Settings, Integrations, then send the request again. Your API key is fine. It happens when:
    • Airtable or Notion refuses the stored refresh token, because the access expired, was revoked, or was granted again elsewhere. This is the most common case.
    • DocsAutomator has no Google access token it can use or renew, or Google refuses the connected account (“Invalid Credentials”).
    • Airtable or Notion refuses the connection itself.

Common 401 Causes

  • Missing Authorization or X-API-Key header
  • Incorrect API key

Common 404 Causes

  • Automation ID doesn’t exist or belongs to another workspace
  • No template configured on the automation
  • Automation is inactive (set isActive: true via the API or app)

Common 429 Causes

  • Your workspace sent too many document requests at once (see Rate Limits). No document was created. Retry-After is 10 seconds.
  • More than 2000 requests per 15 minutes with one API key. Retry-After is the time until the window resets.
  • Google, Notion or SmartSuite limited the requests of your connected account, after their own retries. Retry-After is 60 seconds.
  • /sendTestEmail: the test email limit is reached (25 per hour per automation, 100 per hour per workspace, or 10 different recipients per hour per workspace). Retry-After is the time until the hourly window resets. A workspace without an active subscription can also send at most 25 emails to at most 5 different recipients in 24 hours; when that limit is reached, Retry-After is the time until the oldest counted email leaves the 24-hour window. This answer has the text in error, not message.
Every 429 has a Retry-After header with the wait in seconds.

Webhooks

Configure a webhook URL on your automation to receive notifications after document generation. The webhook receives a POST request with:
Pass custom data through to webhooks using 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 eSign API reference 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
Last modified on November 23, 2026