Running Workflows and Selecting Versions
The v2 run API starts a workflow asynchronously and returns a run identifier. Follow that run to completion before using its result.

Use your actual input schema and a saved version number. Creation is asynchronous: inspect the same run until it succeeds, fails, is cancelled, or needs a human response.
Before you begin
A public API credential with project execution access and valid project inputs.
Key concepts
Run
One execution of a project. Use its run ID to retrieve that execution’s state, input, output, and errors.
Asynchronous operation
An operation acknowledged before its processing is complete. Retain its handle and follow its documented status or completion mechanism.
Terminal state
A state indicating that a run has ended, such as succeeded, failed, or cancelled. Stop normal completion polling only after a final state is known.
Paused
A run state that waits for a supported response before it can continue. Respond to the existing run instead of starting a new one.
Configuration options
Project version
A specific saved configuration of a project.
Select it explicitly when a result must be reproducible.
Start a workflow run
Create the run using the project ID, input object, and intended project_version.
Save the returned run ID and poll its status through the public run endpoint.
Handle paused, failed, or cancelled states separately from succeeded.
The client retrieves the result of the same execution it started.
Behavior and limitations
On v2 runs, omitted or null project_version selects published content, -1 selects editable content, and a nonnegative integer selects a saved version. Creation returning 201 does not mean execution succeeded. Do not reuse these selector rules for legacy inference.
Start
POST /v2/runs
Read status and result
GET /v2/runs/{run_id}
Keep the input shape consistent with the project’s documented input schema.
Request body
Replace the placeholders with your project ID and its actual input field key. This request uses the current published version because it omits project_version.
Read GET /v2/projects/{project_id}/io-schema to identify the project’s input contract. Supply an object or list instead of text when the selected field requires it. Keep the schema’s selected version consistent with the version you run.
Related resources
Was this helpful?

