---
title: "Get a quarantined test"
method: GET
path: "/ci/{owner}/repositories/{repository}/quarantines/{quarantine_id}"
tags: ["test_insights"]
deprecated: true
---

# Get a quarantined test

`GET /ci/{owner}/repositories/{repository}/quarantines/{quarantine_id}`

## Request

- Base URL: `https://api.mergify.com/v1`
- URL: `https://api.mergify.com/v1/ci/{owner}/repositories/{repository}/quarantines/{quarantine_id}`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer

> **Deprecated.**

Deprecated: use the test states API, `/ci/{owner}/repositories/{repository}/test-states`.

Retrieve a single quarantined test by its quarantine ID.

## Path parameters

- `quarantine_id` string, uuid, required
- `repository` string, required: The name of the repository
- `owner` string, required: The owner of the repository

## Response `200`

Successful Response

- QuarantinedTest
  - `id` string, uuid, required: Unique identifier of the quarantine record.
  - `test_name` string, required: Fully qualified name of the quarantined test.
  - `test_id` string, uuid, required: Stable identifier of the test, derived from its name. Identical across every quarantine of the same test and matches the `test_id` filter on the list endpoint.
  - `reason` string, required: Free-form reason recorded when the test was quarantined.
  - `issue_url` string, nullable, required: Link to where the fix of the test is tracked, such as an issue. `null` when none was given.
  - `branch` string, nullable, required: Deprecated: use `branch_name`.
  - `branch_name` string, nullable, required: Branch this quarantine applies to. `null` means the test is quarantined on every branch.
  - `pipeline_name` string, nullable, required: Pipeline this quarantine applies to. `null` means the test is quarantined in every pipeline.
  - `job_name` string, nullable, required: Job this quarantine applies to. `null` means the test is quarantined in every job.
  - `created_at` string, date-time, required: UTC timestamp when the test was added to quarantine.
  - `source` 'manual' | 'auto'
  - `health_status` 'healthy' | 'flaky' | 'broken', required
  - `is_recovered` boolean, required: True when recent runs of this test are healthy, suggesting the test could be unquarantined.
  - `unquarantine_when_healthy` boolean, required: True when Mergify unquarantines this test once it recovers.

## Other responses

- `403`: Forbidden
- `404`: Not found
- `409`: Conflict
- `422`: Unprocessable entity

## Changes

- **2026-10-22** `f0fe01773ba8`: 1 info
  - endpoint deprecated
- **2026-10-19** `a01b82176fba`: 1 info
  - added the required property `issue_url` to the response with the `200` status
- **2026-10-08** `708566d3689b`: 1 info
  - added the required property `unquarantine_when_healthy` to the response with the `200` status
- **2026-10-03** `f0c50c78406a`: 5 info
  - response property `branch` deprecated
  - added the required property `branch_name` to the response with the `200` status
  - added the required property `health_status` to the response with the `200` status
  - added the required property `job_name` to the response with the `200` status
  - …1 more
- **2026-09-03** `0d03a872f0d1`: 1 info
  - the endpoint scheme security `CIApplicationKey` was removed from the API

[Operation history](https://skmtc.dev/mergify/apis/mergify-api/changes/ci/:owner/repositories/:repository/quarantines/:quarantine_id/get.md)

---

[API](https://skmtc.dev/mergify/apis/mergify-api.md) · [All operations](https://skmtc.dev/mergify/apis/mergify-api/llms.txt) · [OpenAPI document](https://skmtc.dev/mergify/apis/mergify-api/revisions/00b8f4a31190?raw)
