Tasks
post/v1/workflows/{id}/runs/{run_id}/tasks/{task_id}/complete

Complete 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 this human_task step will be dispatched next.
  • reject — marks the task rejected. Workflow behaviour on rejection depends on the step's retry_count and 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

https://api.agentruntime.io/v1/workflows/{id}/runs/{run_id}/tasks/{task_id}/complete
Production
AuthenticationRequiredBearerAuth

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.

Test Request

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.

Client Libraries
Shell
curl -sS -X POST \
  'https://api.agentruntime.io/v1/workflows/{id}/runs/{run_id}/tasks/{task_id}/complete' \
  -H 'Authorization: Bearer <token>'

application/json

decisionrequired

stringenum: approve | reject

Example: "approve"

notes

string

Optional reviewer notes attached to the decision event.

Example: "Reply looks good — tone is correct and cancellation steps are accurate."

  • 200Task completed. The workflow run will resume automatically.

    application/json

    task_id

    string

    decision

    string

    run_id

    string

    {
      "task_id": "task_01hw3k9x4v8m",
      "decision": "approve",
      "run_id": "run_01hw3k9x4v8m"
    }
  • 401Missing or invalid Bearer token.

    application/json

    errorrequired

    string

    Human-readable description of what went wrong.

    Example: "workflow not found"

    code

    string

    Machine-readable error code for programmatic handling.

    Example: "NOT_FOUND"

    {
      "error": "unauthorized",
      "code": "UNAUTHORIZED"
    }
  • 404The requested resource does not exist.

    application/json

    errorrequired

    string

    Human-readable description of what went wrong.

    Example: "workflow not found"

    code

    string

    Machine-readable error code for programmatic handling.

    Example: "NOT_FOUND"

    {
      "error": "workflow not found",
      "code": "NOT_FOUND"
    }
  • 409Task is already completed.

    application/json

    errorrequired

    string

    Human-readable description of what went wrong.

    Example: "workflow not found"

    code

    string

    Machine-readable error code for programmatic handling.

    Example: "NOT_FOUND"

    {
      "error": "task already completed",
      "code": "CONFLICT"
    }