/ v1/ workflows/ {id}/ runs/ {run_ id}/ tasks/ {task_ id}/ completeComplete a human task
Submits a human decision that unblocks a paused workflow run.
approve— marks the task complete and signals the workflow to continue. Downstream steps that depend on thishuman_taskstep will be dispatched next.reject— marks the task rejected. Workflow behaviour on rejection depends on the step'sretry_countand whether a fallback step is defined.
The optional notes field is attached to the completion event and is available in the run's event log for audit purposes.
Server
API key obtained from the AgentRuntime dashboard. Pass as Authorization: Bearer <key> on every request.
Stored only in this page session. It is not saved to local storage.
Runs from your browser. Non-GET requests require explicit confirmation and tokens are sent only when you click Send.
Enter a bearer token and confirm the non-GET request to enable testing.
curl -sS -X POST \
'https://api.agentruntime.io/v1/workflows/{id}/runs/{run_id}/tasks/{task_id}/complete' \
-H 'Authorization: Bearer <token>'Request body
application/json
decisionrequiredstringenum: approve | reject
Example:
"approve"notesstring
Optional reviewer notes attached to the decision event.
Example:
"Reply looks good — tone is correct and cancellation steps are accurate."
Responses
- 200Task completed. The workflow run will resume automatically.
application/json
task_idstring
decisionstring
run_idstring
Example response
{ "task_id": "task_01hw3k9x4v8m", "decision": "approve", "run_id": "run_01hw3k9x4v8m" } - 401Missing or invalid Bearer token.
application/json
errorrequiredstring
Human-readable description of what went wrong.
Example:
"workflow not found"codestring
Machine-readable error code for programmatic handling.
Example:
"NOT_FOUND"
Example response
{ "error": "unauthorized", "code": "UNAUTHORIZED" } - 404The requested resource does not exist.
application/json
errorrequiredstring
Human-readable description of what went wrong.
Example:
"workflow not found"codestring
Machine-readable error code for programmatic handling.
Example:
"NOT_FOUND"
Example response
{ "error": "workflow not found", "code": "NOT_FOUND" } - 409Task is already completed.
application/json
errorrequiredstring
Human-readable description of what went wrong.
Example:
"workflow not found"codestring
Machine-readable error code for programmatic handling.
Example:
"NOT_FOUND"
Example response
{ "error": "task already completed", "code": "CONFLICT" }