Approve / approve-with-edits / reject a gated block run.
Submit a verdict against a review overlay. A decision resolves a gated block run. There are two verdicts:Documentation Index
Fetch the complete documentation index at: https://docs.retab.com/llms.txt
Use this file to discover all available pages before exploring further.
| Verdict | Effect |
|---|---|
approved | The effective output (latest version) flows downstream and the run resumes. |
rejected | The run is cancelled. reason is required. |
edited_output to an approve call and the server appends a corrective version and then approves it in one atomic step. The model’s original output is preserved as version 0; the edited payload becomes the new effective version that flows downstream.
The request body carries:
| Field | Notes |
|---|---|
verdict | approved / rejected. |
version_stamp | The overlay rev you last read. Required — see the conflict note below. |
edited_output | Optional, approved only. Appends a corrective version, then approves it. |
reason | Required for rejected. |
command_id | Optional idempotency key — a retried call with the same command_id is deduplicated. |
approve and reject — both of which post to this endpoint.
Submit a verdict against a gated block run.
approved with edited_output appends a corrective version first, then
approves it. rejected cancels the workflow run.
The reviewer's verdict.
approved, rejected CAS token: the overlay rev the client last read. 409 on mismatch — re-read and re-decide, never blindly retry the same stamp.
x >= 0Optional FULL corrected output. Valid only with verdict='approved': the server appends it as a human_edit version, then approves that version.
The version seq the reviewer ruled on. Defaults to the overlay head.
The seq to ship downstream. Valid only with verdict='approved'; defaults to on_seq.
Required for 'rejected'; ignored for 'approved'.
Optional idempotency key — a retried submit with the same command_id is deduplicated instead of double-applied.
Successful Response
The result of a decision submission.