Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

Start one run, then follow its ID

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.

Copy the example
POST /v2/runs
Content-Type: application/json

{
  "project_id": "<project-id>",
  "project_version": 3,
  "input": {"<input-node-id>": "<input-value>"}
}

# Use the run ID returned by the create response.
GET /v2/runs/{run_id}

Before you begin

A public API credential with project execution access and valid project inputs.

Key concepts

Term
Definition

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

Option
Purpose
Behavior

Project version

A specific saved configuration of a project.

Select it explicitly when a result must be reproducible.

Start a workflow run

  1. Create the run using the project ID, input object, and intended project_version.

  2. Save the returned run ID and poll its status through the public run endpoint.

  3. 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.

Stage
Public operation

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.

API Versions and Compatibility

Was this helpful?