Skip to main content
GET
/
test-runs
/
{test_run_id}
/
items
List test run items
curl --request GET \
  --url https://api.trymaitai.ai/api/v1/test-runs/{test_run_id}/items \
  --header 'X-Maitai-Api-Key: <api-key>'
{
  "data": [
    {
      "id": 9001,
      "test_run_id": 30,
      "test_set_item_id": 700,
      "status": "COMPLETED",
      "matched": false,
      "duration_ms": 1240,
      "diff_result": {
        "fields": [
          {
            "path": "hs_code",
            "status": "match",
            "expected": "8471.30",
            "actual": "8471.30"
          },
          {
            "path": "country",
            "status": "mismatch",
            "expected": "CN",
            "actual": "TW"
          }
        ],
        "matched_count": 1,
        "total_count": 2,
        "match_rate": 0.5
      },
      "workflow_run_session_id": "session_abc123"
    }
  ],
  "pagination": {
    "total": 12,
    "offset": 0,
    "limit": 25
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.trymaitai.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-Maitai-Api-Key
string
header
required

Your Maitai API key from the Portal.

Path Parameters

test_run_id
integer
required

Query Parameters

type
string

Required: 'workflow'. This endpoint serves workflow test-run items only.

outcome
string

Filter to one outcome: 'passed' (matched=true), 'failed' (matched=false AND status=COMPLETED), or 'error' (status=ERROR).

matched
string

Filter by matched flag: 'true' or 'false'. Use 'outcome' for finer pass/fail/error split.

offset
integer

Number of items to skip.

limit
integer

Maximum number of items to return.

Response

200 - application/json

List test run items.

data
any