Skip to main content
GET
/
v1
/
workflows
/
tests
/
runs
/
{run_id}
/
results
from retab import Retab

client = Retab()

results = client.workflows.tests.runs.results.list("wftestrun_q1z2")
for result in results.data:
    print(result.test_id, result.verdict.status)
{
  "data": [
    {
      "id": "wfnodetestrun_a",
      "run_id": "wftestrun_q1z2",
      "test_id": "wfnodetest_a",
      "target": { "type": "block", "block_id": "block_extract_invoice" },
      "lifecycle": { "status": "completed" },
      "timing": {
        "started_at": "2026-05-18T10:00:02Z",
        "completed_at": "2026-05-18T10:00:20Z",
        "duration_ms": 18221
      },
      "outputs": {
        "output-json-0": { "total": 1234.56, "vendor": { "name": "Acme Inc" } }
      },
      "assertion_result": {
        "assertion_id": "assert_xyz",
        "condition_kind": "equals",
        "status": "passed",
        "actual_value": 1234.56,
        "expected_value": 1234.56,
        "failure": null
      },
      "verdict": { "status": "passed" }
    }
  ],
  "list_metadata": {
    "before": null,
    "after": null
  }
}

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.

List the test results produced by one workflow-test run. Results are addressed under the parent run by test_id, matching workflow run steps under block_id. The response uses the canonical Retab list envelope: { "data": [...], "list_metadata": { "before": null, "after": null } }.
from retab import Retab

client = Retab()

results = client.workflows.tests.runs.results.list("wftestrun_q1z2")
for result in results.data:
    print(result.test_id, result.verdict.status)
{
  "data": [
    {
      "id": "wfnodetestrun_a",
      "run_id": "wftestrun_q1z2",
      "test_id": "wfnodetest_a",
      "target": { "type": "block", "block_id": "block_extract_invoice" },
      "lifecycle": { "status": "completed" },
      "timing": {
        "started_at": "2026-05-18T10:00:02Z",
        "completed_at": "2026-05-18T10:00:20Z",
        "duration_ms": 18221
      },
      "outputs": {
        "output-json-0": { "total": 1234.56, "vendor": { "name": "Acme Inc" } }
      },
      "assertion_result": {
        "assertion_id": "assert_xyz",
        "condition_kind": "equals",
        "status": "passed",
        "actual_value": 1234.56,
        "expected_value": 1234.56,
        "failure": null
      },
      "verdict": { "status": "passed" }
    }
  ],
  "list_metadata": {
    "before": null,
    "after": null
  }
}

Authorizations

Api-Key
string
header
required

Path Parameters

run_id
string
required

Response

Successful Response

data
WorkflowTestRunRecord · object[]
required
list_metadata
ListMetadata · object
required

Boundary resource IDs for page navigation.