---
title: "POST /base/{baseId}/workflow"
method: POST
path: "/base/{baseId}/workflow"
tags: ["automation"]
---

# POST /base/{baseId}/workflow

`POST /base/{baseId}/workflow`

Create a automation workflow

## Path parameters

- `baseId` string, required

## Request body

- object
  - `name` string
  - `description` string
  - `trigger` object
    - `name` string — name of the node
    - `description` string — description of the node
    - `config` unknown
    - `type` 'recordCreated' | 'recordUpdated' | 'recordCreatedOrUpdated' | 'recordMatchesConditions' | 'buttonClick' | 'formSubmitted' | 'scheduledTime' | 'webhook', required — type of trigger

## Response `201`

Successful created

- object
  - `id` string, required — a unique identifier for the workflow
  - `baseId` string, required — the base id of the workflow
  - `name` string — the name of the workflow
  - `description` string — description of the workflow
  - `hasDraft` boolean — has draft of the workflow
  - `isActive` boolean — is active of the workflow
  - `edges` object[], required — edges of the nodes
    - `source` string, required
    - `target` string, required
  - `nodes` object[], required — nodes list include trigger and actions
  - `createdBy` string, required — created by user id
  - `createdTime` string, required — created time of the workflow
  - `lastModifiedTime` string — last modified time of the workflow
  - `lastModifiedBy` string — last modified by user id
  - `activeUser` object — active user of the workflow
    - `id` string, required
    - `name` string, required
    - `email` string, required
    - `avatar` string, nullable

---

[API](https://skmtc.net/teable/apis/teable-app.md) · [All operations](https://skmtc.net/teable/apis/teable-app/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/teable/teable-app/versions/7515f3b33d79/schema)
