---
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
  - `emailConfig` object
    - `additionalWorkflowInput` object, nullable
    - `allowedOrigins` string[], nullable
    - `email` string
    - `secretId` string, required
  - `errorConfig` object
    - `email` string
    - `manualRetry` boolean
  - `metadata` object
  - `name` string, nullable
  - `specification` object, required
    - `definition` object, required
    - `language` 'ASL'
    - `version` '1.0.0'
  - `status` 'development' | 'production'

## 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
  - `emailConfig` object, nullable
    - `additionalWorkflowInput` object, nullable
    - `allowedOrigins` string[], nullable
    - `email` string
    - `secretId` string, required
  - `errorConfig` object, nullable, required
    - `email` string
    - `manualRetry` boolean
  - `metadata` object, nullable
  - `monthlyNumberOfWorkflowExecutionsAllowed` integer
  - `monthlyNumberOfWorkflowExecutionsCreated` integer
  - `name` string, nullable, required
  - `numberOfRunningExecutions` integer, required
  - `status` 'development' | 'production'
  - `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

- **2024-02-05** `c371d93c085f` — 1 info
  - added the new optional request property `status`
- **2023-12-14** `cfbfcfb3418f` — 3 info
  - added the optional property `monthlyNumberOfWorkflowExecutionsAllowed` to the response with the `200` status
  - added the optional property `monthlyNumberOfWorkflowExecutionsCreated` to the response with the `200` status
  - added the optional property `status` to the response with the `200` status
- **2023-11-20** `11fd669f01c2` — 2 info
  - added the new optional request property `emailConfig`
  - added the optional property `emailConfig` to the response with the `200` status
- **2023-09-07** `7ca8a41be21c` — 2 info
  - added the new optional request property `metadata`
  - added the optional property `metadata` to the response with the `200` status
- **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`

[Full 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/d5fe190026be/schema)
