Resolve a waiting task run
Typed resolution for a run paused in needs_input. type: "approvals" answers the run’s pending integration approvals — the submitted set must exactly match pending_approval_ids on the run, or the request returns 409 stale_resolution (re-read the run and retry). type: "input" sends follow-up instructions into the run’s chat and starts a new turn. type: "complete" closes the run as completed without resuming it. Returns 202 when the run resumes in the background (approvals, input) and 200 when resolved inline (complete). 409 run_not_waiting if the run is not in needs_input.
Authorizations
API key in the format: Bearer {api_token}
Headers
Makes this write safe to retry: a repeat with the same key replays the first response instead of creating a second resource. Scoped to the account, remembered for 24 hours; reusing a key with a different payload is an error.
255Path Parameters
Task run id (trun_...)
Body
Response
Resolved inline (type complete).
The run's own conversation (aichat_...): what it read, called and said. Read it with search_chats.
When a stop was requested. The run stays running until it reaches its next step, then settles as cancelled.
pending, running, completed, failed, needs_input, timed_out, unknown, skipped, cancelled condition, no_paid_plan_or_credits, no_recent_activity, no_task_activity, no_personal_sources, wake_gate, wake_limit, rate_limited, misfire, task_busy, account_at_capacity, null delivered, not_delivered, not_requested, unknown How the agent closed a completed run: verified (it re-checked the result), recorded (it reported without re-checking), or recovered (it never reported; summary is its last message). Null unless an agent turn completed the run.
verified, recorded, recovered, null scheduled, event, manual The event that started this run, {type, data}, exactly as the run received it; data matches the event's webhook payload. Null for a run no event started. POST /task_runs/{id}/replay runs the task again on it.
The run (trun_...) whose event this run replays. Null unless started by POST /task_runs/{id}/replay.

