---
title: "POST /workflows"
method: POST
path: "/workflows"
---

# POST /workflows

`POST /workflows`

## Headers

- `Content-Type` string, required

## Request body

- PostWorkflows
  - `completedConfig` object
    - `environment` object
    - `environmentSecrets` string[]
    - `imageUrl` string, required
    - `secretId` string
  - `description` string, nullable
  - `errorConfig` object
    - `email` string
    - `manualRetry` boolean
  - `name` string, nullable
  - `specification` object, required
    - `definition` object, required
    - `language` 'ASL'
    - `version` '1.0.0'

## Response `200`

200 response

- Workflow
  - `completedConfig` object, nullable, required
    - `environment` object
    - `environmentSecrets` string[]
    - `imageUrl` string, required
    - `secretId` string
  - `createdBy` string, nullable, required
  - `createdTime` string, nullable, required
  - `description` string, nullable, required
  - `errorConfig` object, nullable, required
    - `email` string
    - `manualRetry` boolean
  - `name` string, nullable, required
  - `numberOfRunningExecutions` integer, required
  - `updatedBy` string, nullable, required
  - `updatedTime` string, nullable, required
  - `workflowId` string, required

## Other responses

- `400` — 400 response
- `403` — 403 response
- `404` — 404 response
- `415` — 415 response
- `500` — 500 response

## Changes

- **2022-09-29** `424af607ab69` — 2 breaking
  - the response property `completedConfig` became nullable for the status `200`
  - the response property `errorConfig` became nullable for the status `200`
- **2021-11-05** `9788e6bfa925` — 8 warning
  - removed the request property `emailConfig`
  - removed the request property `metadata`
  - removed the request property `status`
  - removed the optional property `emailConfig` from the response with the `200` status
  - …4 more

[Change history](https://skmtc.dev/lucidtechai/apis/lucidtech-api/changes/workflows/post.md)

---

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