---
title: "Create automation"
method: POST
path: "/api/v1/automation"
---

# Create automation

`POST /api/v1/automation`

Create an automation for a given workspace

## Headers

- `workspace-id` string, required

## Cookies

- `apikey` string

## Request body

- AutomationCreationRequest — Automations request model.
  - `title` string, required
  - `type` 'discovery' | 'automation' | 'task', required — Task types.
  - `task` ITask, required — Task configuration model.
    - `t` integer
    - `title` string, required
    - `body` string, required
    - `apps` object, required
    - `autonomy_level` string, required
    - `complexity` string, required
    - `attachments` object[]
  - `trigger_type` 'cron' | 'composio', required — Trigger types.
  - `trigger_config` object, required

## Response `200`

Successful Response

- ApiResponseIAutomation
  - `r` IAutomation, required — Task template model.
    - `workspace_id` string
    - `id` string
    - `task_template_id` string, nullable
    - `last_run_t` integer
    - `title` string
    - `t` integer
    - `type` 'discovery' | 'automation' | 'task' — Task types.
    - `task` ITask — Task configuration model.
      - `t` integer
      - `title` string, required
      - `body` string, required
      - `apps` object, required
      - `autonomy_level` string, required
      - `complexity` string, required
      - `attachments` object[]
    - `webhook_id` string, nullable
    - `is_active` integer
    - `entity_id` string, nullable
    - `triggers` ITrigger[], nullable
      - `name` string
      - `description` string
      - `icon` string
      - `schedule_arn` string, nullable
      - `trigger_id` string, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/smooth/apis/circlemind-zero.md) · [All operations](https://skmtc.dev/smooth/apis/circlemind-zero/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/smooth/circlemind-zero/revisions/472956a12adf/schema)
