---
title: "List the external-service child backups that belong to a parent backup."
method: GET
path: "/backups/{id}/children"
tags: ["Backups"]
---

# List the external-service child backups that belong to a parent backup.

`GET /backups/{id}/children`

## Request

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

Each entry in `children` corresponds to one `external_service_backups` row,
joined with `external_services` so the caller receives the service name and
type without a second request.

Returns an empty `{ "children": [] }` — **not 404** — when the parent
backup exists but has no children (e.g. control-plane backups).
Returns 404 when the parent backup itself does not exist.

## Path parameters

- `id` integer, required

## Response `200`

Child backup list (may be empty)

- ChildBackupListResponse: Response body for `GET /backups/{id}/children`. Returns an empty `children` list (not 404) when the parent backup has no child records (e.g. control-plane backups).
  - `children` ChildBackupEntryResponse[], required: Zero or more child backup entries ordered by `external_service_backups.id` ASC.
    - `backup_type` string, required: Backup variant (e.g. "full", "incremental").
    - `compression_type` string, required: Compression algorithm used (e.g. "gzip", "lz4").
    - `error_message` string, nullable: Engine-reported error message when `state = "failed"`.
    - `finished_at` string, nullable: When the child backup finished, if known.
    - `id` integer, required: Row ID from `external_service_backups`.
    - `s3_location` string, required: Object key or `s3://` URL where the backup data lives.
    - `service_id` integer, required: FK to `external_services.id`.
    - `service_name` string, required: Human-readable name of the external service (e.g. "redis-prod").
    - `service_type` string, required: Service type string (e.g. "postgres", "redis", "mongodb", "s3").
    - `size_bytes` integer, nullable: Size of the child backup in bytes, if available.
    - `started_at` string, required: When the child backup started (RFC 3339).
    - `state` string, required: Current state: "pending" | "running" | "completed" | "failed".

## Other responses

- `401`: Unauthorized
- `403`: Insufficient permissions
- `404`: Parent backup 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/:id/children/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)
