Multi-Agent Planning
Approve a MAP plan step (HITL parity with WCP)
Plan-scoped approval endpoint. Returns the same ApprovalResponse shape as the WCP endpoint (/api/v1/workflows/{id}/steps/{step_id}/approve) plus a plan_id field — see ADR-046 (HITL response parity).
A plan step is held only in MAP confirm / step mode, backed by a WCP workflow: the handler delegates to the WCP service and projects the full retry_context, approver metadata, and policies_matched. A plan no workflow backs has no paused step, and answers 404. (The in-memory pause the multi-agent routes used before v11.1.0 is retired, #4249.)
post/api/v1/plans/{planId}/steps/{stepId}/approve
Request
- Base URLhttps://orchestrator.getaxonflow.com
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
planIdstring required
MAP plan ID
stepIdstring required
Step ID awaiting approval
Request body
Response
Step approved successfully
Example response
{
"workflow_id": "wf_41231a72-9b0c-4f5e-8a13-6d2e0c7b4f91",
"plan_id": "plan-42",
"step_id": "step-2",
"status": "approved",
"decision": "allow",
"reason": "Approved: High-value transfer requires oversight",
"approval_status": "approved",
"approval_id": "318a270f-7b42-5c56-a191-8dbd1bf2e1e4",
"approved_by": "fraud.analyst@banking.example",
"rejected_by": "fraud.analyst@banking.example",
"retry_context": {
"gate_count": 2,
"completion_count": 1,
"prior_completion_status": "completed",
"prior_output_available": true,
"last_decision": "allow",
"idempotency_key": "payment:wire:invoice-7721"
},
"message": "Step approved"
}Changes
No recorded changes to this operation across all 1 revision of this API.