Create a workflow
Create a workflow from plain words, or from its inputs, steps, and connections.
From plain words
name: the workflow’s name.task: what the workflow should do, in plain words. For example:"every Monday, list the top 10 Hacker News stories and save them to a CSV".workspace_id: a workspace you belong to. Default: your personal workspace.
201. Valendata’s workflow builder then builds it from your skills. It makes a skill only when you have none for the job. This takes a few minutes. When the build is done, the workflow is tested once, and its schedule is saved.
Read the workflow with Get a workflow until build.state is tested, needs_you, or failed:
build.said: the latest update in plain words. When tested, it says what the test read, when the workflow runs, and what the test cost.build.test_run_id: the test run. Read it withGET /v1/runs/{run_id}.build.brain_url: where you can watch the build, and answer a question, in the app.
From a graph
inputs: what a run takes,[{name, type, required, default, description, example}].steps: in the same JSON the app saves,[{id, name, type, config, on_error, retries}]. A skill step names the skill inconfig.skill; a workflow step inconfig.target_workflow_id. Steps read inputs as{{inputs.<name>}}.connections:[{from_step, to_step}]. Leave empty to run the steps in order.workspace_id: a workspace you belong to. Default: your personal workspace.
422 lists every problem and nothing is saved. It does not run the workflow.
The easiest way to build steps is the Brain on the canvas. See Build a workflow. To copy an existing workflow’s steps, read it with Get a workflow and include_graph=true.
Either way
A workflow whose skill step uses a skill that is not finished yet cannot run. Get a workflow lists why incannot_run, and a run is refused with the reason. Nothing is charged.
A key limited to some workflows cannot create one. Needs workflows:write. MCP tool: create_workflow (send task for plain words).Authorizations
Headers
Any unique string (such as your order id). Resending the same request with the same key within 24 hours returns the first answer (with Idempotent-Replayed: true) and does nothing twice; the same key with a different request is a 422 idempotency_key_reused.
1 - 255Body
The steps, in the same JSON the app saves: [{id, name, type, config, on_error, retries}]. type is one of the executor's step types (skill, workflow, http, code, transform, agent,...). A skill step names the skill in config.skill; a workflow step in config.target_workflow_id. Steps read inputs as {{inputs.}}.
Instead of steps: what the workflow should do, in plain words. The workflow is made at once and Valendata's workflow builder builds it from your skills (a few minutes); read build.state with GET /v1/workflows/{slug} until it is tested. Send task or steps, not both.
1 - 10000Response
The new workflow.
A workflow as an API: what it takes and returns, its track record and endpoints.

