Creates a new workflow definition. Workflows define a directed acyclic graph (DAG) of steps that orchestrations execute in sequence. Each step specifies its type, configuration, and dependencies — enabling complex multi-step AI pipelines with deterministic execution order. Workflows are created inDocumentation Index
Fetch the complete documentation index at: https://docs.truthlocks.com/llms.txt
Use this file to discover all available pages before exploring further.
draft status and must be published before they can be executed. This two-phase approach allows teams to review and validate workflow definitions before they are available to agents.
Authentication
API key with
workflows:write scope. Alternatively, pass a Bearer JWT token
in the Authorization header.Tenant identifier for multi-tenant isolation.
Request
Human-readable workflow name. Must be unique within the tenant namespace per
version.
Description of what this workflow accomplishes.
Array of workflow step definitions. Each step contains: -
name (string,
required) — Unique step identifier within the workflow - type (string,
required) — Step type: llm_inference, tool_call, guardrail_check,
decision, transform, webhook - config (object, required) —
Step-specific configuration (model, tool name, guardrail rules, etc.) -
depends_on (string[]) — Array of step names that must complete before this
step executesSemantic version of the workflow (e.g.
1.0.0). Defaults to 1.0.0 if
omitted.Response
Unique workflow identifier.
Workflow name.
Workflow description.
Workflow version.
The validated workflow step definitions.
Workflow status. Always
draft on creation.ISO 8601 timestamp of creation.

