Skip to main content
GET
/
v1
/
workflows
/
{workflow_id}
/
experiments
/
{experiment_id}
/
content
from retab import Retab

client = Retab()

# Latest run.
content = client.workflows.experiments.get_content(
    workflow_id="wf_abc123",
    experiment_id="exp_abc",
)
for job in content.content.jobs:
    print(job.document_id, job.status, job.artifact)

# Or pin to a specific run.
older = client.workflows.experiments.get_content(
    workflow_id="wf_abc123",
    experiment_id="exp_abc",
    run_id="exprun_v1",
)
{
  "experiment_id": "exp_abc",
  "run_id": "exprun_1",
  "content": {
    "jobs": [
      {
        "id": "expjob_1",
        "run_id": "exprun_1",
        "experiment_id": "exp_abc",
        "document_id": "expdoc_1",
        "status": "completed",
        "block_kind": "extract",
        "handle_inputs": {
          "input-document-0": { "type": "file", "filename": "invoice_q1.pdf" }
        },
        "artifact": { "operation": "extraction", "id": "ext_xyz" },
        "duration_ms": 4120,
        "attempt": 0,
        "is_placeholder": false
      }
    ]
  }
}

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.

Get the per-document execution content of a specific run — the document jobs the run executed and the canonical artifact each job produced. This is execution data only. For consensus scores and disagreement matrices, see Get Experiment Metrics. run_id defaults to the latest run. When the experiment hasn’t been run yet, the response carries placeholder jobs (one per document) so the dashboard can render a stable shape before metrics exist.
from retab import Retab

client = Retab()

# Latest run.
content = client.workflows.experiments.get_content(
    workflow_id="wf_abc123",
    experiment_id="exp_abc",
)
for job in content.content.jobs:
    print(job.document_id, job.status, job.artifact)

# Or pin to a specific run.
older = client.workflows.experiments.get_content(
    workflow_id="wf_abc123",
    experiment_id="exp_abc",
    run_id="exprun_v1",
)
{
  "experiment_id": "exp_abc",
  "run_id": "exprun_1",
  "content": {
    "jobs": [
      {
        "id": "expjob_1",
        "run_id": "exprun_1",
        "experiment_id": "exp_abc",
        "document_id": "expdoc_1",
        "status": "completed",
        "block_kind": "extract",
        "handle_inputs": {
          "input-document-0": { "type": "file", "filename": "invoice_q1.pdf" }
        },
        "artifact": { "operation": "extraction", "id": "ext_xyz" },
        "duration_ms": 4120,
        "attempt": 0,
        "is_placeholder": false
      }
    ]
  }
}

Authorizations

Api-Key
string
header
required

Path Parameters

workflow_id
string
required
experiment_id
string
required

Query Parameters

run_id
string | null
access_token
string | null

Response

Successful Response

Execution content for one experiment run.

experiment_id
string
required
run_id
string
required
content
ExperimentContent · object
required