---
title: "List retried tests"
method: GET
path: "/api/v1alpha/retried_tests"
tags: ["Flaky Tests"]
---

# List retried tests

`GET /api/v1alpha/retried_tests`

Returns raw retried_tests rows sorted by id DESC (most recent first), with cursor-based pagination and an optional date filter. The default window is the last 14 days.

## Query parameters

- `after` string, date-time
- `cursor` integer
- `limit` integer

## Response `200`

Retried test rows retrieved successfully

- RetriedTestsResponse
  - `rows` RetriedTest[], required
    - `id` integer, required — Auto-increment primary key
    - `batch_id` integer, required — Batch job ID
    - `job_id` integer, required — Job ID within the batch
    - `job_name` string, nullable, required — Test job name
    - `state` string, required — Job state after retry
    - `exit_code` integer, nullable, required — Exit code of the retried job
    - `pr_number` integer, required — GitHub PR number
    - `target_branch` string, required — Target branch of the PR
    - `source_branch` string, required — Source branch of the PR
    - `source_sha` string, required — Source commit SHA
    - `retried_by` string, required — Who triggered the retry
    - `retried_at` string, date-time, required — When the retry was triggered
  - `cursor` integer, nullable, required — ID of the last row; pass as `cursor` to fetch the next page. Null when has_more is false.
  - `has_more` boolean, required — Whether more rows exist beyond this page

## Other responses

- `400` — Invalid query parameter
- `401` — Unauthorized
- `403` — Forbidden - requires developer privileges

---

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