---
title: "Create automation"
method: POST
path: "/createAutomation"
tags: ["Automations"]
---

# Create automation

`POST /createAutomation`

Creates a new automation with the specified data source and optional Google Doc template. PDF templates are uploaded through the DocsAutomator app.

## Request body

- object
  - `title` string, required — Name for the automation.
  - `dataSourceName` 'Airtable' | 'API' | 'ClickUp' | 'Glide' | 'Google Sheets' | 'Make' | 'n8n' | 'Noloco' | 'SmartSuite' | 'Zapier', required — The data source type.
  - `docTemplateLink` string, uri — Google Doc template URL.

## Response `201`

Automation created

- object
  - `message` string
  - `newAutomation` Automation
    - `_id` string — Automation ID.
    - `title` string
    - `dataSource` object
      - `name` string
    - `dataSourceName` string
    - `docTemplateLink` string, uri — Google Doc template URL.
    - `newDocumentNameField` string
    - `isActive` boolean
    - `saveGoogleDoc` boolean
    - `locale` string
    - `formatNumbersWithLocale` boolean
    - `pdfExpiration` string, nullable
    - `dateCreated` string, date-time
    - `lastPreviewPdf` string, uri

## Other responses

- `400` — Invalid request parameters
- `401` — Invalid or missing API key

---

[API](https://skmtc.dev/docsautomator/apis/docsautomator-api.md) · [All operations](https://skmtc.dev/docsautomator/apis/docsautomator-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/docsautomator/docsautomator-api/revisions/3ec829ff5817/schema)
