---
title: "Create workflow"
method: POST
path: "/api/v1/projects/{projectId}/workflows"
tags: ["Workflows"]
---

# Create workflow

`POST /api/v1/projects/{projectId}/workflows`

## Request

- Base URL: `http://localhost:8080`
- URL: `http://localhost:8080/api/v1/projects/{projectId}/workflows`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

Defines a workflow: the nodes it runs, the edges between them, and what triggers it. Created disabled until toggled on.

## Path parameters

- `projectId` string, uuid, required

## Request body

- WorkflowRequest
  - `name` string, required
  - `description` string
  - `enabled` boolean
  - `definition` unknown
  - `triggerType` 'WEBHOOK_EVENT' | 'MANUAL' | 'SCHEDULE'
  - `triggerConfig` unknown

## Response `201`

Workflow created

---

[API](https://skmtc.dev/railhook/apis/railhook-api.md) · [All operations](https://skmtc.dev/railhook/apis/railhook-api/llms.txt) · [OpenAPI document](https://skmtc.dev/railhook/apis/railhook-api/revisions/4e2c76dfc33d?raw)
