Skip to main content

Workflows API

Create, manage, and execute multi-step agent workflows.
All workflow endpoints require session authentication. Workflows are scoped to the authenticated user — you can only access workflows that belong to your account.

List workflows

Returns all workflows owned by the authenticated user, ordered by most recently updated. Each workflow includes its associated nodes.

Response

Errors

When the session is missing or invalid, this endpoint returns an empty workflows array with a 401 status instead of a standard error object.

Create workflow

Creates a new workflow with optional initial nodes. The workflow is enabled by default.

Request body

Response (201 Created)

Errors

Get workflow

Returns a single workflow with its nodes ordered by creation time. Requires ownership.

Path parameters

Response

Errors

Update workflow

Updates a workflow’s metadata and optionally replaces all nodes. Requires ownership. When nodes is provided, all existing nodes are deleted and replaced with the new set.

Path parameters

Request body

Providing the nodes field replaces all existing nodes. To update workflow metadata without affecting nodes, omit the nodes field entirely.

Response

Errors

Delete workflow

Permanently deletes a workflow and all its nodes. Requires ownership.

Path parameters

Response

Errors

Node types

Workflows support four node types: Each node stores its configuration and visual position as JSON strings. The config object typically includes a label field used for display in the visual builder.