# Get a check test

`GET /api/v1/check-tests/{testId}`

The results of a test so far: per location `pending`, `done` (with the outcome, status code, timings and failures), `offline`, `timeout`, `failed` or `not_supported`. A test is kept for 10 minutes after its deadline.

Sign-in: a dashboard session, an API token with `checks:read` or the `monitorly` CLI's sign-in with `checks:read`.

Section: Checks. Operation id in openapi.json: `get_check_test`.

## Parameters

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `testId` | path | yes | string (uuid) | The test's id, from the answer that started it. |

## Responses

Errors are `application/problem+json` (`Problem`); branch on `type`.

### 200

The test.

`application/json`: CheckTestView

| Field | Type | Required | Description |
|---|---|---|---|
| `deadline` | string | yes | The check's timeout + 5 s after the start. |
| `done` | boolean | yes | `running` until every node answered or the deadline passed. |
| `id` | string (uuid) | yes |  |
| `projectId` | string (uuid) | yes |  |
| `results` | array of NodeTestResult | yes | In the order of `check.nodes`. |
| `startedAt` | string | yes |  |

Example:

```json
{
  "deadline": "2026-11-27T15:10:15Z",
  "done": true,
  "id": "TEST_ID",
  "projectId": "PROJECT_ID",
  "results": [
    {
      "failures": [],
      "finishedAt": "2026-11-27T15:10:02Z",
      "nodeId": "NODE_ID_HEL",
      "outcome": "up",
      "status": "done",
      "statusCode": 200,
      "timings": {
        "totalMs": 47
      }
    },
    {
      "failures": [],
      "finishedAt": "2026-11-27T15:10:02Z",
      "nodeId": "NODE_ID_FRA",
      "outcome": "up",
      "status": "done",
      "statusCode": 200,
      "timings": {
        "totalMs": 24
      }
    },
    {
      "failures": [],
      "finishedAt": "2026-11-27T15:10:02Z",
      "nodeId": "NODE_ID_AMS",
      "outcome": "up",
      "status": "done",
      "statusCode": 200,
      "timings": {
        "totalMs": 31
      }
    }
  ],
  "startedAt": "2026-11-27T15:10:00Z"
}
```

### 400

Bad Request.

- `auth.credentials_conflict`: the request carries both a session cookie and a token

### 401

Unauthorized.

- `auth.unauthenticated`, `auth.session_expired`: no session, or it ended
- `token.invalid`: the token is malformed, unknown, revoked or expired, or its creator left the workspace

### 403

Forbidden.

- `auth.forbidden`: your role is too low for this
- `token.scope_missing`: the token lacks the scope this needs; `detail` names it

### 404

Not Found.

- `request.not_found`: it does not exist, or you cannot see it

### 429

Too Many Requests.

- `token.rate_limited`: more than 10 requests a second with this token

Schemas named above are listed with their fields in [the schema list](https://docs.monitorly.cloud/api/reference/schemas.md).
