Skip to main content
If your integration calls a workflow directly through the API — rather than triggering it from the UI, an agent, or a schedule — use this reference to call V2 Flows correctly, including when migrating an existing V1 workflow.

Overview

V1 workflows execute through:
For a V2 Flow, use:
The V2 endpoint is not a drop-in payload replacement. The V2 Flow ID is sent as tool_id, and Flow inputs are sent as plain runtime values under inputs.

Authentication

Provide your Odin API credentials as request headers:
Never include real credentials in documentation, source control, tickets, or chat messages. Revoke and regenerate any credential that has been exposed.

Request body

Input names are case-sensitive — use the input name configured in the V2 Flow. For example, an input named New Input 1 should be submitted as:
Do not send the Flow input’s full definition as the runtime value:
The id, type, description, and required fields belong to the stored Flow configuration — the execution request should contain only the value.

Example

Executing the published version

Once the Flow has been published or promoted, add:
This selects the version deployed to the live environment. Omit environment during initial testing, before the Flow has been published. The endpoint waits for the complete execution result by default. You can supply this explicitly when needed:

Response

A successful request returns an execution result:
The contents of node_results depend on the nodes used by the Flow.

Common errors

When troubleshooting, record the HTTP status and full response body. Remove credentials and sensitive input data before sharing them.

Migrating from the V1 endpoint

The endpoint /v2/actions/execute/direct is for legacy Automator/Activepieces execution and should not be used to execute migrated V2 Flows.

Workflow V1 Migration Tool

Migrate an existing V1 workflow to V2 using the in-platform migration tool.