Skip to main content
POST
/
createAutomation
Create automation
curl --request POST \
  --url https://api.docsautomator.co/createAutomation \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "title": "Invoice Generator",
  "dataSourceName": "API",
  "docTemplateLink": "https://docs.google.com/document/d/1abc.../edit"
}
'
{
  "message": "success",
  "newAutomation": {
    "_id": "<string>",
    "title": "<string>",
    "dataSource": {
      "name": "<string>"
    },
    "dataSourceName": "<string>",
    "docTemplateLink": "<string>",
    "newDocumentNameField": "<string>",
    "isActive": true,
    "saveGoogleDoc": true,
    "locale": "<string>",
    "formatNumbersWithLocale": true,
    "pdfExpiration": "<string>",
    "dateCreated": "2023-11-07T05:31:56Z",
    "lastPreviewPdf": "<string>"
  }
}

Authorizations

Authorization
string
header
required

API key from your workspace settings. Pass as Authorization: Bearer <key> or X-API-Key: <key>. Find it at app.docsautomator.co/settings/workspace/api.

Body

application/json
title
string
required

Name for the automation.

dataSourceName
enum<string>
required

The data source type.

Available options:
Airtable,
API,
ClickUp,
Glide,
Google Sheets,
Make,
n8n,
Noloco,
SmartSuite,
Zapier

Google Doc template URL.

Response

Automation created

message
string
Example:

"success"

newAutomation
object
Last modified on May 26, 2026