Run one block test, all tests for a single block, or every test in a workflow. Execution is asynchronous: the response returns immediately with aDocumentation Index
Fetch the complete documentation index at: https://docs.retab.com/llms.txt
Use this file to discover all available pages before exploring further.
batch_id + job_id. Use the typed
workflows.tests.wait_for_completion(job_id) helper to block until the
batch lands (recommended), or poll
jobs.retrieve(job_id) yourself.
The request body provides EXACTLY ONE of:
test_id — run a single test by id.target — run all tests for a single block ({ type: "block", block_id: ... }).n_consensus is optional and only meaningful for extract / split / classifier
blocks. Allowed values are 3, 5, or 7. Provide it to override the
block’s configured consensus count for this batch only.
wait_for_completion(job_id) for the typed convenience — it polls
jobs.retrieve(job_id) until terminal and returns the parsed
BlockTestBatchExecutionResult.
failed/cancelled/expired, or if timeout_seconds /
timeoutMs elapses before completion.
response.body containsjobs.retrieve(job_id)
yourself, the completed job’s response.body is the
BlockTestBatchExecutionResult:
BlockTestBatchExecutionItem carries the run_record_id you can pass to
Get Block Test Run to fetch the full execution snapshot
(inputs, outputs, assertion_result, verdict_summary, etc.).
The counts object has one bucket per run-record status value.