---
title: "Paginated run history for a backup schedule (one row per scheduler tick)."
method: GET
path: "/backups/schedules/{id}/runs"
tags: ["Backups"]
---

# Paginated run history for a backup schedule (one row per scheduler tick).

`GET /backups/schedules/{id}/runs`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/backups/schedules/{id}/runs`
- Auth: HTTP bearer

Returns one [`ScheduleRunSummary`] per scheduler tick, with child backup
counts aggregated in a single SQL round-trip. Legacy `backups` rows (pre-
fan-out) are surfaced as synthetic single-job runs so history does not
disappear. Ordered by `started_at DESC` (newest first).

Use `GET /backups/schedule-runs/{run_id}/jobs` to drill into a single run.

## Path parameters

- `id` integer, required

## Query parameters

- `page` integer
- `page_size` integer

## Response `200`

Paginated run history for the schedule

- ScheduleRunSummaryList: Paginated list of schedule run summaries returned by the new [`BackupService::list_schedule_runs`].
  - `page` integer, required: Current page (1-based).
  - `page_size` integer, required: Number of items per page.
  - `runs` ScheduleRunSummary[], required: Run summaries, newest first. Includes synthetic single-job rows for legacy `backups` rows that have `schedule_id` set but no `schedule_run_id` (pre-fan-out history).
    - `aggregate_state` string, required: Aggregate state computed from child counts (see struct docs).
    - `completed_jobs` integer, required: Number of children in `state = "completed"`.
    - `failed_jobs` integer, required: Number of children in `state = "failed"`.
    - `finished_at` string, nullable: When all children reached a terminal state. `None` while any child is still `"pending"` or `"running"`.
    - `pending_jobs` integer, required: Number of children in `state = "pending"`.
    - `run_id` integer, required: `schedule_runs.id` for this tick.
    - `running_jobs` integer, required: Number of children in `state = "running"`.
    - `schedule_id` integer, required: FK to `backup_schedules.id`.
    - `started_at` string, required: When the fan-out started (ISO 8601 / RFC 3339).
    - `total_jobs` integer, required: Total number of child backup jobs in this run.
    - `triggered_by` string, required: How the run was triggered: `"cron"` or `"manual"`.
  - `total` integer, required: Total number of run entries across all pages.

## Other responses

- `401`: Unauthorized
- `403`: Insufficient permissions
- `404`: Schedule not found
- `500`: Internal server error

## Changes

- **2026-11-09** `12896146b193`: 4 breaking
  - removed the required property `extensions` from the response with the `401` status
  - removed the required property `extensions` from the response with the `403` status
  - removed the required property `extensions` from the response with the `404` status
  - removed the required property `extensions` from the response with the `500` status
- **2026-10-05** `4b228ebed583`: 4 info
  - added the optional property `status` to the response with the `401` status
  - added the optional property `status` to the response with the `403` status
  - added the optional property `status` to the response with the `404` status
  - added the optional property `status` to the response with the `500` status
- **2026-10-05** `63a80791dc58`: 4 warning
  - removed the optional property `status` from the response with the `401` status
  - removed the optional property `status` from the response with the `403` status
  - removed the optional property `status` from the response with the `404` status
  - removed the optional property `status` from the response with the `500` status
- **2026-09-23** `f4efc4d5c7b7`: 4 info
  - added the optional property `status` to the response with the `401` status
  - added the optional property `status` to the response with the `403` status
  - added the optional property `status` to the response with the `404` status
  - added the optional property `status` to the response with the `500` status
- …earlier changes not shown

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/backups/schedules/:id/runs/get.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
