---
title: "Create Automation"
method: POST
path: "/api/automations"
tags: ["automations"]
---

# Create Automation

`POST /api/automations`

## Request

- Base URL: `https://app.sentientmail.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.sentientmail.com/api/automations`
- Auth: none declared

## Cookies

- `esp_session` string, nullable

## Request body

- AutomationCreate
  - `name` string, required
  - `description` string, nullable
  - `external_key` string, nullable
  - `folder_id` string, uuid, nullable
  - `schedule_kind` string
  - `schedule_cron` string, nullable
  - `schedule_tz` string, nullable
  - `schedule_file_glob` string, nullable
  - `schedule_file_pattern_op` string, nullable
  - `schedule_file_pattern_text` string, nullable
  - `schedule_external_type` string, nullable
  - `schedule_external_location` string, nullable
  - `schedule_external_bucket` string, nullable
  - `schedule_external_config` object
  - `schedule_end_at` string, date-time, nullable
  - `schedule_max_runs` integer, nullable
  - `error_recipients` string[]
  - `notify_events` string[], nullable

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/sentientmail/apis/sentientmail.md) · [All operations](https://skmtc.dev/sentientmail/apis/sentientmail/llms.txt) · [OpenAPI document](https://skmtc.dev/sentientmail/apis/sentientmail/revisions/4c87ece26935?raw)
