Start Modular Workflows
Discover published workflows, supply typed variables and named bundle inputs, and follow one public execution.
A workflow runs an approved collection of processing steps as one public job. An administrator publishes the workflow; organization grants determine who can discover and execute it. Existing pipeline-job endpoints remain available.
Discover a workflow
GET /v1/workflows?organizationId={organizationId}&offset=0&limit=20
Authorization: Bearer <personal-access-token>The response contains items and hasNextPage. Each item identifies the
definitionId, immutable revisionId, revision number, name, variables and input
bindings. Read one definition with
GET /v1/workflows/{definitionId}?organizationId={organizationId}. Add revisionId
to inspect a particular published revision.
If an administrator archives or deletes the workflow, it disappears from discovery and new
runs return 404 Not Found, including requests that pin an older revision.
Existing runs continue and can still be retrieved by run ID. Restoring an
archived workflow makes its previously published revision available again.
A restored draft requires publication before it can accept runs.
Each variable includes its name, type, label, description, requiredness, default,
options and inclusive integer minimum and maximum. Types are Bool, String,
Int and Enum. Integers must fit a signed 64-bit integer; enum options are exact,
case-sensitive strings. Use the returned environmentName exactly when writing
processing components. Optional values use their published defaults; unknown
variable names and implicit conversions such as a string containing a number are
rejected.
Schemas contain at most 256 variables. An enum has 1–256 distinct options, each
at most 4096 characters; enum values must match an option exactly. Integer bounds
are inclusive and apply only to Int. Names are ASCII identifiers beginning
with a letter, at most 128 characters, and must remain unique after uppercasing
for environment names. Node parameters belong to the published workflow and
cannot be supplied as extra start-request variables.
Input bindings identify a name, concrete collection type and requiredness. Submit bundle IDs under these names. A required binding must have a bundle; an optional binding may be omitted. An empty bundle is present and is distinct from an omitted optional binding. Bundles and the destination must belong to the requested organization.
Start one execution
POST /v1/workflows/{definitionId}/runs
Authorization: Bearer <personal-access-token>
Idempotency-Key: 2b57194a-256d-4da8-9922-49ba29d7422b
Content-Type: application/json{
"organizationId": "c9d780fc-cfda-4bed-ac29-f79559b19bf2",
"targetLocationId": "4a358699-3200-4390-8f14-028ac5b611c7",
"revisionId": "dbe7b689-922a-4f80-a5a5-b122a1a46616",
"inputBundles": {
"source": "ae68b340-5635-41d1-bf63-0205e612fc96"
},
"variables": {
"MODE": "draft",
"INCLUDE_PREVIEW": true,
"MAX_ITEMS": 100
}
}Use the actual variable and binding names returned by discovery. Omit
revisionId to select the current published revision. A successful request returns
202 Accepted with runId, the public jobId, selected revisionId and replayed.
The accepted run freezes its revision, components, variables, input inventory and
original credential. Input files are protected and copied asynchronously before
processing; accepting a run does not require transferring all file bytes within
the HTTP request. Frozen graph, component and variable metadata must fit within 8 MiB of UTF-8
JSON. The complete frozen run inventory is limited to 256 MiB and 100,000 input
files. Requests exceeding any limit are rejected before admission; files are
never silently omitted.
Resource reservations come from the approved workflow. A run can wait while CPU, GPU, memory or writable workspace capacity is occupied. Cached inputs reduce transfers; they do not waive these capacity limits.
Keep the same Idempotency-Key when retrying an uncertain response. The key is
scoped to the organization and requester. An exact request with the same credential
returns the existing run without another monthly or lifetime job charge. A changed
request or credential under that key returns 409 Conflict. Internal steps and
recovery consume no additional logical job admissions. Failure and cancellation
do not automatically refund accepted jobs.
Execution requires WorkflowsExecute and its WorkflowsRead dependency,
JobsEnqueue, read access to every supplied bundle, and bundle write access to
the destination. Personal access tokens must explicitly permit these capabilities
and organization. Permissions and the exact original credential are checked again
during execution; permission conditions inside a workflow cannot bypass these
mandatory checks. Deleting an original input bundle makes its live authorization
context unavailable and prevents further execution, even when protected input
bytes have already been captured.
Invalid variables and bindings return 400 Bad Request. Unavailable workflows
return 404 Not Found; denied access returns the normal authorization error.
503 Service Unavailable means workflow execution or publication is not enabled
for the deployment.
Follow results and cancel
GET /v1/workflows/runs/{runId}
Authorization: Bearer <personal-access-token>The response contains status, an overall percentage, the current attempt
number, progress for every configured output in outputs, and incrementally
published results. Percentages are estimates based on processing and transfer
work, not a guaranteed time remaining. Until all pipeline steps relevant to the
workflow or a particular output have usable duration history, pipeline steps use
equal provisional work units, with smaller units for input, branch and publication
steps. This keeps pending steps represented even when an earlier step has learned
history. Unknown durations do not advance progress merely because time passes;
reported processing and transfer events still do. With complete relevant history,
progress uses duration weights.
Percentages do not move backwards within an attempt, including after automatic retries or service restarts. A prepared result waiting for an earlier output to finish stays below 100 until it can be published.
Each output includes path, order, percentage, outcome and an optional
bundleId. Outcomes are pending, running, published, not_produced, failed
or cancelled. 100 means processing ended, so inspect the outcome before
assuming a bundle was produced. A workflow can intentionally produce no data on
a conditional path; not_produced is an ordinary outcome. Failed or cancelled
workflows can still have usable, already published results.
A temporary worker disconnection does not always mean completed processing must restart. When retained-result recovery is enabled, the run can remain active within a bounded recovery window while retained output is transferred and verified. Keep polling this run; only committed results count as published. Recovery can still fail because output is unavailable, authorization changed or the recovery window expired. A reconnect or a high percentage alone does not promise a result. Cancellation still prevents new publication after it wins the publication race; existing published results follow the normal retention rules.
An administrator can start a new recovery attempt. Its percentage may begin lower
while retaining completed work and existing results. history retains the last
20 prior attempt outcomes and output percentages in attempt order;
historyHasMore indicates older attempts are available to administrators.
Internal recovery details remain in Admin.
Each result identifies an output path, order and bundleId; only committed
bundle publications appear. Private processing nodes, worker details and internal
exception messages are omitted. List visible runs with
GET /v1/workflows/runs?organizationId={organizationId}&offset=0&limit=20.
Run visibility requires both WorkflowsRead and the root job's JobsView access.
Use these workflow endpoints to follow runs. The legacy job event/log endpoints
do not expose private workflow steps or detailed errors.
Cancel an authorized run with POST /v1/workflows/runs/{runId}/cancel. Cancellation
uses the existing exact-job cleanup authority. Unfinished processing stops;
previously published bundles remain available through their normal permissions.
Processing and background transfers
When enabled by the operator, consecutive steps on the same worker can overlap: a step prepares its inputs from completed local files while the previous step continues uploading and verifying them. Conditions and merged inputs can use this path too. A job may wait for local capacity and start as soon as it becomes available. Other workers must wait for uploaded, verified inputs.
An upstream step can therefore still show uploading or verifying while a downstream step is running. This does not mean its result is published. Results remain private until all their upstream data passes verification. If that verification fails, dependent work stops and no unverified result bundle is exposed. Local storage is an optimization; missing local data falls back to the verified transfer path.
Retention and administrator recovery
Active runs retain protected input files and intermediate results. Default retention after the run ends is 72 hours for success and seven days for failure or cancellation; protected references and configured extensions can retain data longer. Published result bundles follow their normal bundle permissions and retention policy. A worker cache is optional and does not replace retained object-storage data.
An administrator can request an audited recovery attempt while its required frozen inputs and intermediate data remain available. Recovery preserves the run's graph, variables and original input identities and consumes no additional logical job admission. It does not recapture changed source files or bypass current permissions and the original credential. Missing or expired required data rejects recovery.
Changing a pipeline version for unfinished work is an explicit administrator action: the selected newer component revision must retain the same runtime, ports, consumed-variable and parameter contracts, and is pinned in the new attempt. Publishing a newer image never silently upgrades an accepted run. There is no public node-selection or image-version retry endpoint.