Creates either a trigger (only one allowed, must be step 1) or an action. The server picks the position: by default appends to the end, but insert_after_step_uuid puts it mid-chain (downstream steps shift up + their {{stepN.field}} references are rewritten), and parent_step_uuid + branch_key makes it a child of an if_condition branch.
Validation rules:
kind=trigger → flow must not already have a trigger; app must support_trigger=true.kind=action → flow must already have a trigger; app must support_action=true.app.category=connect → app_connection_uuid is required and must belong to this tenant + this app.app.category=builtin → app_connection_uuid must be null.agent_uuid required.parent_step_uuid must point to an if_condition step.Cannot edit a deployed flow — returns 409 unless you POST /undeploy first.
Documentation Index
Fetch the complete documentation index at: https://developers.mindhunters.ai/llms.txt
Use this file to discover all available pages before exploring further.
Use a Bearer token to access these API endpoints. Example: "Bearer {your-token}"
trigger, action From GET /flow/apps.
Required when kind=trigger. From GET /flow/apps/{uid}/triggers.
Required when kind=action. From GET /flow/apps/{uid}/actions.
Required for connect-category apps; must be null for builtin apps.
Required for Agents-app actions.
Action/trigger-specific config. Use {{stepN.field}} to template values from upstream steps.
Insert mid-chain after this step. Subsequent steps shift up by 1; their {{stepN.field}} references are rewritten.
Use to nest this step as a branch child of an if_condition. Requires branch_key.
true, false Created
One step of a flow. The first step in a flow is always a trigger (kind=trigger); subsequent steps are actions. Branch children (under an if_condition) appear flat in the parent flow's steps[] with parent_step_uuid + branch_key populated.