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

client = Retab()

run = client.workflows.tests.runs.get("wftestrun_q1z2")

print(run.lifecycle.status)
print(run.counts)
{
  "id": "wftestrun_q1z2",
  "workflow": {
    "workflow_id": "wf_abc123xyz",
    "version_id": "draft_2026_05_18",
    "name_at_run_time": "Invoice workflow",
    "requested_version": "draft"
  },
  "trigger": { "type": "api" },
  "lifecycle": { "status": "completed" },
  "timing": {
    "created_at": "2026-05-18T10:00:00Z",
    "started_at": "2026-05-18T10:00:01Z",
    "completed_at": "2026-05-18T10:00:29Z",
    "duration_ms": 28000
  },
  "test_id": "wfnodetest_hsLEQiM61ez9Piv147MWk",
  "target": { "type": "block", "block_id": "block_extract_invoice" },
  "total_tests": 1,
  "counts": {
    "queued": 0,
    "running": 0,
    "passed": 1,
    "failed": 0,
    "blocked": 0,
    "error": 0,
    "cancelled": 0
  }
}

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.

Fetch a workflow-test run by run_id. Use this while polling for lifecycle.status, then fetch the child results with List Test Run Results.
from retab import Retab

client = Retab()

run = client.workflows.tests.runs.get("wftestrun_q1z2")

print(run.lifecycle.status)
print(run.counts)
{
  "id": "wftestrun_q1z2",
  "workflow": {
    "workflow_id": "wf_abc123xyz",
    "version_id": "draft_2026_05_18",
    "name_at_run_time": "Invoice workflow",
    "requested_version": "draft"
  },
  "trigger": { "type": "api" },
  "lifecycle": { "status": "completed" },
  "timing": {
    "created_at": "2026-05-18T10:00:00Z",
    "started_at": "2026-05-18T10:00:01Z",
    "completed_at": "2026-05-18T10:00:29Z",
    "duration_ms": 28000
  },
  "test_id": "wfnodetest_hsLEQiM61ez9Piv147MWk",
  "target": { "type": "block", "block_id": "block_extract_invoice" },
  "total_tests": 1,
  "counts": {
    "queued": 0,
    "running": 0,
    "passed": 1,
    "failed": 0,
    "blocked": 0,
    "error": 0,
    "cancelled": 0
  }
}

Authorizations

Api-Key
string
header
required

Path Parameters

run_id
string
required

Response

Successful Response

id
string
required
workflow
WorkflowSnapshotRef · object
required

Reference to the workflow + immutable version that drove the run.

The class name is retained temporarily for compatibility with surrounding run-model code, but public API output uses version_id rather than snapshot identity.

trigger
ManualTrigger · object
required

Manual run started by a user from the dashboard.

lifecycle
WorkflowTestRunLifecycle · object
required
timing
WorkflowTestRunTiming · object
required
total_tests
integer
required
target
WorkflowTestBlockTarget · object

Public workflow-test target.

The storage layer remains block-scoped today, but the API shape names the tested entity explicitly so workflow-level targets can be added later.

test_id
string | null
counts
BlockTestBatchExecutionCounts · object