Skip to main content
POST
/
test-runs
/
compare
Compare test runs
curl --request POST \
  --url https://api.trymaitai.ai/api/v1/test-runs/compare \
  --header 'Content-Type: application/json' \
  --header 'X-Maitai-Api-Key: <api-key>' \
  --data '
{
  "test_run_ids": [
    301,
    302
  ]
}
'
{
  "data": [
    {
      "test_set_request_id": 7700,
      "results_by_test_run": {
        "301": {
          "id": 9001,
          "passed": true,
          "score": 1
        },
        "302": {
          "id": 9201,
          "passed": false,
          "score": 0
        }
      }
    }
  ]
}

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.

Query Parameters

type
string

Test run type: 'request' (default) or 'workflow'. The body's 'type' field also routes the call when present.

offset
integer
default:0

Number of items to skip.

Required range: x >= 0
limit
integer
default:25

Maximum number of items to return.

Required range: 1 <= x <= 100

Body

application/json
test_run_ids
integer[]
required

IDs of test runs to compare. Two or more required for a useful diff.

Response

200 - application/json

Compare test runs.

data
any