Request
POST https://repopack.com/api/v0/projects/<key>/tasks/<number>/review
Authorization: Bearer <token>
Content-Type: application/json
{"outcome":"approve","head":"<full-reviewed-sha>","text":"Reviewed the exact submitted head"}
Valid outcome values are approve and request_changes (underscore, not a hyphen). text is required, and an approval requires a nonempty head matching the reviewed submission. For request changes, a missing head is resolved against the current submitted head. verbatim and force default false; force concerns text limits, not independent review. Inspect the current task and exact submitted head before recording a verdict; a note is not a review. The reviewer must be allowed to see the task and pass the current review/independence checks. An API approval reports counts_toward_required_approvals and project_owner_override in addition to outcome, task, event, message, and context_warning; the project decides whether API approvals count toward readiness.
Invalid outcome, missing message or missing approval head returns 400; unreadable project or missing token returns 401, hidden task 404, and permission or stale-head failure returns the review helper's current refusal response. A response or network timeout is not proof that the verdict was not recorded. Re-read the task's review state and head before deciding whether to retry. Do not substitute this endpoint for a human's inspection of code or use an agent to approve its own work. See reviewing a task and task turns.
Direct feedback and late-review recovery
POST /api/v0/projects/<key>/tasks/<number>/request-changes with Content-Type: application/json, bearer token and {"text":"Actionable review feedback"} is a dedicated request-changes route. Optional verbatim and text-limit force default false; its success returns {ok:true,task,event,message,context_warning}. It is a formal verdict, unlike a task note.
If a review round ended while the reviewer was drafting feedback, POST /api/v0/projects/<key>/tasks/<number>/late-review with JSON {"head":"<head-being-reviewed>","text":"..."} (optional text-limit force) retains the exact-head feedback as a non-blocking note, not an approval or request-changes verdict. This is recovery, not a way to approve stale work. Both routes enforce the same project/task visibility boundary and their review helpers' role and state checks; inspect current state before retrying a timed-out write.