---
title: "Get a list of quarantined tests"
method: POST
path: "/flaky-tests/list-quarantined-tests"
---

# Get a list of quarantined tests

`POST /flaky-tests/list-quarantined-tests`

## Request body

- object
  - `repo` object, required — The repository to list tests for.
    - `host` string, required — The host of the repository. For example, `github.com` or `gitlab.com`. If self-hosting, this will be the hostname of your instance.
    - `owner` string, required — The owner of the repository. For example, `my-github-org` or `my-gitlab-org/my/sub/group`. `owner` for GitLab will include the GitLab org, plus the project path, but excluding the repo name itself.
    - `name` string, required — The name of the repository.
  - `org_url_slug` string, required — The slug of your organization. Find this at https://app.trunk.io/trunk/settings under "Organization Name" > "Slug"
  - `page_query` object, required — Pagination options for the list of tests.
    - `page_size` integer, required — The number of tests to return per page.
    - `page_token` string — The page token to use for pagination. This is returned from the previous call to this endpoint. For the first page, this should be empty.

## Response `200`

OK

- object
  - `quarantined_tests` object[], required — A page of quarantined test cases.
    - `name` string, required — The name of the test case.
    - `parent` string, nullable, required — The parent of the test case.
    - `file` string, nullable, required — The file of the test case.
    - `classname` string, nullable, required — The class name of the test case.
    - `status` 'HEALTHY' | 'FLAKY' | 'BROKEN', required — The status of the test case.
    - `codeowners` string[], required — The latest codeowners of the test case.
    - `quarantine_setting` 'ALWAYS_QUARANTINE' | 'AUTO_QUARANTINE', required — The quarantine setting of the test case.
    - `quarantined_at` string, date-time, required — The time at which the test case was quarantined, if applicable.
    - `status_last_updated_at` string, date-time, required — The last time the status of the test case was updated.
    - `test_case_id` string, required — The ID of the test case. This value is unstable and should not be relied upon.
    - `variant` string, required — The variant of the test case.
  - `page` object, required — Pagination information for the list of test cases.
    - `total_rows` number, required — The total number of test cases in the paginated list.
    - `total_pages` number, required — The total number of pages in the paginated list of test cases.
    - `next_page_token` string, required — The next page token to use for pagination. See `page_token` in the request for more information.
    - `prev_page_token` string, required — The previous page token to use for pagination. See `page_token` in the request for more information.
    - `last_page_token` string, required — The last page token to use for pagination. See `page_token` in the request for more information.
    - `page_index` number, required — The index of the current page in the paginated list of test cases.

## Other responses

- `401` — Unauthorized

---

[API](https://skmtc.net/trunk/apis/trunk-apis.md) · [All operations](https://skmtc.net/trunk/apis/trunk-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/trunk/trunk-apis/versions/f7b911d8e24c/schema)
