Endpoint
Description
Submits an approval or rejection for a workflow that paused for human approval. On success, the decision is signaled to the workflow and execution proceeds (or terminates).Authentication
Required: Yes Include API key in header:Request
Headers
| Header | Required | Description |
|---|---|---|
X-API-Key | Yes | API authentication key |
Content-Type | Yes | application/json |
traceparent | No | W3C trace context |
Body Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
workflow_id | string | Yes | Target workflow ID |
approval_id | string | Yes | Approval identifier |
approved | boolean | Yes | Approve or reject |
feedback | string | No | Optional feedback/comment |
modified_action | string | No | Optional modified action |
run_id | string | No | Specific run ID (optional) |
approved_by | string | No | Defaults to authenticated user |
Request Body Schema
Response
200 OK
400 / 401 / 403 / 404
Examples
Approve (curl)
Reject (Python / httpx)
Notes
- Replaces the legacy admin endpoint at
http://localhost:8081/approvals/decision(deprecated).