---
title: "Get detailed information about a test"
method: GET
path: "/ci/{owner}/repositories/{repository}/tests/{test_id}"
tags: ["test_insights"]
---

# Get detailed information about a test

`GET /ci/{owner}/repositories/{repository}/tests/{test_id}`

Get detailed information about a test.

## Path parameters

- `test_id` string, uuid5, required — ID of the test
- `owner` string, required — The owner of the repository
- `repository` string, required — The name of the repository

## Query parameters

- `pipeline_name` string, nullable — Only read the test's executions in this pipeline. Omit to read them across every pipeline.
- `job_name` string, nullable — Only read the test's executions in this job. Omit to read them across every job.

## Response `200`

Successful Response

- GetTestDetailsResponse
  - `repository` string, required
  - `test_name` string, required
  - `test_id` string, uuid5, required
  - `health_status` string, required
  - `last_conclusion` string, required
  - `failure_ratio` number, required
  - `flakiness_ratio` number, required
  - `success_ratio` number, required
  - `flaky_detection_enabled` boolean, required
  - `first_failure_at` string, date-time, nullable, required
  - `first_failure_commit` string, nullable, required
  - `first_failure_pull` GetTestDetailsResponsePull, required
    - `id` integer, required
    - `number` integer, required
    - `title` string, required
    - `user` GetTestDetailsResponseUser, required
      - `id` integer, required
      - `login` string, required
  - `last_failure_at` string, date-time, nullable, required
  - `last_success_at` string, date-time, nullable, required
  - `test_framework` string, nullable, required
  - `test_framework_version` string, nullable, required
  - `test_programming_language` string, nullable, required
  - `test_filepath` string, nullable, required
  - `test_function_name` string, nullable, required

## Other responses

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

## Changes

- **2026-09-30** `cb147acfe942` — 2 info
  - added the new optional `query` request parameter `job_name`
  - added the new optional `query` request parameter `pipeline_name`
- **2026-09-03** `0d03a872f0d1` — 1 info
  - the endpoint scheme security `CIApplicationKey` was removed from the API
- **2026-08-28** `b3864dcc206a` — 1 info
  - the endpoint scheme security `MergifyTokenBearerAuth` was added to the API
- **2026-08-13** `29857c6146cf` — 3 info
  - the endpoint scheme security `AdminApplicationKey` was added to the API
  - the endpoint scheme security `CIApplicationKey` was added to the API
  - the endpoint scheme security `ApplicationAuth` was removed from the API

[Change history](https://skmtc.dev/mergify/apis/mergify-api/changes/ci/:owner/repositories/:repository/tests/:test_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/cb147acfe942?raw)
