Execute a stored plan
Executes a plan previously generated and stored via POST /api/v1/plan. The plan to execute is identified by context.plan_id in the request body. The execution mode is taken from the stored plan (not this request): auto, parallel, sequential, balanced, or the Enterprise-only HITL modes confirm / step.
Where a multi-agent step is decided - in confirm and step mode, and in the other modes only when the orchestrator runs with AXONFLOW_HITL_ENABLED=true outside Community (otherwise no step is decided per step) - it is decided over its content as text: its prompt, statement and parameters as written, then what its processor sends (the rendered prompt of an llm-call; the statement and built parameters of a connector-call) or, for any other step type, the input it is passed. In confirm and step mode a step's hold asks no policy; each step is decided when it runs (POST /api/v1/plan/{id}/resume), for the credential that resumed the plan, in the plan's organization, and anything but an allow fails the step.
Requires authentication: requests must be routed through the AxonFlow Agent (user.id must be set). The X-Tenant-ID / X-Org-ID headers set by the Agent auth chain override any identity fields in the body.
A plan can be executed once: re-executing returns 409, a cancelled plan returns 409, and an expired plan returns 410.
Request
- Base URLhttps://orchestrator.getaxonflow.com
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Response
Plan executed successfully. Body is a PlanResponse for normal execution, in which every step was decided by the organization's policy before it ran, on every deployment (#4382; since v11.1.0 AXONFLOW_HITL_ENABLED is ignored). HITL confirm/step dispatch returns an inline object (plan_id, workflow_id, status, current_step, total_steps, step_name, approval_info) instead.
Example response
{
"version": 1,
"complexity": "medium",
"domain": "travel"
}Changes
No recorded changes to this operation across all 1 revision of this API.