# Tests

# Get a test

GET /teams/:team/tests/:test

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

# Parameters

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

Format: json

{
  "id": "0193e9a4-9db6-76d7-b43e-09a1a11af58c",
  "team_id": "0193da13-5a96-7655-b4a9-0fbac409066e",
  "name": "Ping",
  "kind": "simple",
  "schedule": "* * * * *",
  "steps": [
      {
      "id": "0193e9a4-9db9-73d9-bfab-8fd5484d7d83",
      "test_id": "0193e9a4-9db6-76d7-b43e-09a1a11af58c",
      "name": "Ping",
      "kind": "ping",
      "options": {
          "count": 1,
          "host": "synthetigo.dev",
          "timeout": "250ms"
      },
      "position": 0,
      "created_at": 1734791700,
      "updated_at": 1735379204
      }
  ],
  "regions": [
      "uk"
  ],
  "status": true,
  "created_at": 1734791700,
  "updated_at": 1735680121
}

# Get all tests

GET /teams/:team/tests

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

# Parameters

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

Format: json

[
  {
    "id": "0193e9a4-9db6-76d7-b43e-09a1a11af58c",
    "team_id": "0193da13-5a96-7655-b4a9-0fbac409066e",
    "name": "Ping",
    "kind": "simple",
    "schedule": "* * * * *",
    "steps": [
      {
        "id": "0193e9a4-9db9-73d9-bfab-8fd5484d7d83",
        "test_id": "0193e9a4-9db6-76d7-b43e-09a1a11af58c",
        "name": "Ping",
        "kind": "ping",
        "options": {
          "count": 1,
          "host": "synthetigo.dev",
          "timeout": "250ms"
        },
        "position": 0,
        "created_at": 1734791700,
        "updated_at": 1735379204
      }
    ],
    "regions": [
      "uk"
    ],
    "status": true,
    "created_at": 1734791700,
    "updated_at": 1735680121
  }
]