Skip to main content
POST
Create Workflow
Create a workflow that chains AI tasks together with scheduling, event triggers, and conditional logic.

Authentication

Requires a Bearer token. See Authentication.

Request Body

name
string
required
Human-readable workflow name.
triggerType
string
required
How the workflow is triggered. One of: schedule, event, manual.
triggerConfig
object
Trigger-specific configuration (e.g., { "cron": "0 9 * * 1" } for schedule triggers).
steps
object[]
required
Ordered array of workflow steps. At least one step is required.
enabled
boolean
default:"true"
Whether the workflow is active.

Request Examples

Response (HTTP 201)

workflow
object
The created workflow object with generated id and timestamps.

Errors

Endpoint

POST /api/v1/workflows Requires authentication via Bearer token. See Authentication.