API Versions and Compatibility
API versions define request and response contracts. Choose one documented contract for each operation rather than mixing fields from different versions.

These are separate API contracts. Use the authentication, request fields, version selectors, and state names documented for the selected route.
Before you begin
Access to the public API reference for the endpoint you use.
API version concepts
API version
The request and response contract selected by an API route. It is separate from the saved workflow version you ask the API to run.
Project version
A specific saved configuration of a project. Select it explicitly when a result must be reproducible.
Schema
A definition of fields, types, required values, and supported constraints. Use it to validate the shape of data; it does not establish factual correctness.
HTTP status
The numeric outcome returned for an HTTP request. Read the response body too; accepted work can still be running.
Asynchronous operation
An operation acknowledged before its processing is complete. Retain its handle and follow its documented status or completion mechanism.
Choose an API version
Use
/v2/runswhen you need an asynchronous run ID to poll, resume, or cancel. Use/inference/v0/run/{org_id}/{flow_id}when you need the inline JSON or streaming response contract.Select a saved project version. Read its input schema with that version number and pass the same number when starting the run. Do not read
latestand then silently execute published content.Build the body for that interface. V2 uses
inputinside a wrapper containingproject_id; inference uses the input map itself.Read the endpoint’s response and status names. V2 success is
succeeded; legacy inference success isCOMPLETED. Do not use one status parser for both without mapping these values.
Your client uses the field names and behavior required by its endpoint.
Behavior and limitations
A project version selects workflow content; an API version selects the request contract. Legacy inference and v2 runs use different input shapes, state handling, and version selectors. An OpenAPI document’s metadata version is not necessarily the version prefix of every route it contains.
v2 run creation
Wrap node-keyed values in input. Omitted or null project_version uses published content; -1 selects editable content.
Legacy inference
Use the selected route’s input schema. Omitted or -1 version selects published content.
MCP project execution
Use the discovered tool’s inputs field and version selection. Do not copy the v2 REST body unchanged.
When migrating, compare authentication, field names, version selection, status values, and completion handling. Keep the original client available until the new path returns the required result.
Related resources
Authentication: Bearer Tokens and Personal API Keys
API quickstart with a pinned project version
Was this helpful?

