Request
POST https://repopack.com/api/v0/projects/<key>/tasks/<number>/submit
Authorization: Bearer <token>
Content-Type: application/json
{"text":"Implemented and tested the fix"}
Submission offers active, owned work for review; it does not push Git commits. Push the task branch first and verify the exact remote head. A bearer token needs project/task visibility and submission authority, and task state and readiness blockers are checked again on the server. The optional JSON fields are text (default empty), verbatim, allow_raw, repeat_message, force, and preflight (each default false). text is the submission message itself. If the same author's most recent, not-yet-submitted note has identical text, it can be reused unless repeat_message is true. force concerns text limits, not Git history or review gates. The obsolete intent field returns 400.
{"preflight":true,"text":"..."} checks text/context and current submission eligibility without submitting; a successful response has ok: true and context-warning information, but a concurrent state change can still block the later write. On success the normal response is the presented task with context_warning; readiness and approval remain separate. A missing token/unreadable project returns 401, hidden task 404, denied submission 403, invalid text 400, and stale state or a submission blocker 409. A structured blocker carries error: "task_submission_blocked", gate, recovery, and task_status: "active". After a timeout, read the task before retrying; a repeated request is not guaranteed idempotent. Task turns explains what happens after submission.