Ctrl AI

Workflows

Create, manage, and execute workflow compositions.

Workflows are named, versioned compositions of units forming complete auditable processes.

List Workflows

GET /api/v1/workflows

Query Parameters

ParameterTypeDescription
domainIdstringFilter by domain
statusstringFilter by status
limitnumberItems per page (default: 20)
offsetnumberPagination offset

Get Workflow

GET /api/v1/workflows/{slug}

Returns the full workflow definition including the unit DAG, typed I/O, and verification status.

Create Workflow

POST /api/v1/workflows
FieldTypeRequiredDescription
namestringYesWorkflow name
descriptionstringNoBrief description
domainIdstringYesDomain ID
unitsarrayYesOrdered list of unit IDs in the workflow
jurisdictionstringNoJurisdiction scope

AI-Assisted Composition

Let the AI compose a workflow from a natural language description:

POST /api/v1/workflows/compose
FieldTypeRequiredDescription
descriptionstringYesWhat this workflow should accomplish
domainIdstringYesDomain to search for units

The AI will find matching units, chain them by typed I/O, and return a workflow draft.

On this page