# Results

# Get test results

GET /teams/:team/tests/:test/results

curl --request GET \
  --url http://api.synthetigo.dev/teams/{team}/tests/{test}/results?page=1 \
  --header 'Authorization: Bearer {token}'

# Parameters

Name Kind Type Description Required
team string url The ID of the team Yes
test string url The ID of the test Yes
page int query The page number (default: 1) No

Format: json

{
  "total": 1,
  "page": 1,
  "per_page": 15,
  "total_pages": 1,
  "data": [
    {
      "id": "01941e9f-3d60-7001-b945-082447dabb19",
      "test_id": "0193e9a4-9db6-76d7-b43e-09a1a11af58c",
      "status": true,
      "duration": 63083103,
      "steps": [
        {
          "step_id": "0193e9a4-9db9-73d9-bfab-8fd5484d7d83",
          "name": "Ping",
          "error": null,
          "duration": 63030408
        }
      ],
      "time": "2024-12-31T21:29:00Z",
      "region": "null"
    }
  ]
}

# Get single result

Get a single result for a test

GET /teams/:team/tests/:test/results/:result

curl --request GET \
  --url http://api.synthetigo.dev/teams/{team}/tests/{test}/results?{result} \
  --header 'Authorization: Bearer {token}'

# Parameters

Name Kind Type Description Required
team string url The ID of the team Yes
test string url The ID of the test Yes
result string url The ID of the result Yes

Format: json

{
    "id": "01941e9f-3d60-7001-b945-082447dabb19",
    "test_id": "0193e9a4-9db6-76d7-b43e-09a1a11af58c",
    "status": true,
    "duration": 63083103,
    "steps": [
    {
        "step_id": "0193e9a4-9db9-73d9-bfab-8fd5484d7d83",
        "name": "Ping",
        "error": null,
        "duration": 63030408
    }
    ],
    "time": "2024-12-31T21:29:00Z",
    "region": "null"
}