> ## Documentation Index
> Fetch the complete documentation index at: https://docs.trunk.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Flaky Tests API

> REST API for checking Trunk service status and fetching unhealthy or quarantined tests in your project.

The Trunk Flaky Tests API provides access to check the status of Trunk services and fetch [unhealthy](../detection/) or [quarantined](../quarantining/) tests in your project. The API is an HTTP REST API, returns JSON from all requests, and uses standard HTTP response codes.

All requests must be [authenticated](../../setup-and-administration/apis/#authentication) by providing the `x-api-token` header.

<Columns cols={2}>
  <Card title="Get the details of a test case" href="/flaky-tests/reference/api-reference/get-the-details-of-a-test-case" />

  <Card title="Link a ticket to a test case" href="/flaky-tests/reference/api-reference/link-a-ticket-to-a-test-case" />

  <Card title="Get a list of distinct tests that failed in the given time range" href="/flaky-tests/reference/api-reference/get-a-list-of-distinct-tests-that-failed-in-the-given-time-range" />

  <Card title="Get a list of unhealthy tests" href="/flaky-tests/reference/api-reference/get-a-list-of-unhealthy-tests" />

  <Card title="Get a list of quarantined tests" href="/flaky-tests/reference/api-reference/get-a-list-of-quarantined-tests" />
</Columns>
