---
title: "Create a workflow."
method: POST
path: "/api/apps/{app}/workflows"
tags: ["Apps"]
---

# Create a workflow.

`POST /api/apps/{app}/workflows`

## Path parameters

- `app` string, required

## Request body

- AddWorkflowDto
  - `name` string, required — The name of the workflow.

## Response `200`

Workflow created.

- WorkflowsDto
  - `_links` object, required — The links.
  - `items` WorkflowDto[], required — The workflow.
    - `_links` object, required — The links.
    - `id` string, required — The workflow id.
    - `name` string, nullable — The name of the workflow.
    - `steps` object, required — The workflow steps.
    - `schemaIds` string[], nullable — The schema ids.
    - `initial` string, required — The initial step.
  - `errors` string[], required — The errros that should be fixed.

## Other responses

- `400` — Workflow request not valid.
- `404` — Workflow or app not found.
- `500` — Operation failed.

---

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