DEVELOPER DOCUMENTATION
Transitions and Review
AI trainer progress transitions and employer review decisions on one assignment.
/api/public/v1/project-todos/manageBoth actions operate on one assignmentId and require project_todos:write. Transitions and evidence dedupe on the idempotencyKey, so retries converge; a key replayed against a different assignment returns 409.
worker_transition
Section titled “worker_transition”The token must belong to the AI trainer who owns the contract.
actionstringbodyrequiredworker_transitionidempotencyKeystringbodyrequiredassignmentIdstringbodyrequiredtransitionstringbodyrequiredVIEW, START, COMPLETE, or SUBMIT.
evidenceobjectbodyOptional typed evidence: type, referenceId, payload. Review-routed items may require specific evidence (a note, link, or file) before submission.
Items that route to employer review accept SUBMIT; direct items accept COMPLETE. Provider-verified and platform-owned items cannot be completed by attestation — only the owning verification completes them.
review
Section titled “review”The token must have employer access to the assignment’s job.
actionstringbodyrequiredreviewidempotencyKeystringbodyrequiredassignmentIdstringbodyrequireddecisionstringbodyrequiredAPPROVE completes. RETURN sends it back with feedback. WAIVE drops the requirement for that person. CLOSE revokes the obligation. A reason is required for RETURN, WAIVE, and CLOSE.
expectedSubmittedAtstringbodyStale-review guard: the exact submittedAt you reviewed. If the AI trainer resubmitted in the meantime, the decision is rejected instead of acting on evidence you never saw.
Both actions return the updated assignment with its append-only evidence and event history.