---
title: "Get a backup by ID"
method: GET
path: "/backups/{id}"
tags: ["Backups"]
---

# Get a backup by ID

`GET /backups/{id}`

## Request

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

## Path parameters

- `id` string, required

## Response `200`

Backup details

- BackupResponse: Response type for backup
  - `attempts` integer, nullable: How many times this job has been claimed and run. `null` for legacy backups with no `backup_jobs` row.
  - `backup_id` string, required
  - `backup_type` string, required
  - `checksum` string, nullable
  - `completed_at` string, date-time, nullable
  - `compression_type` string, required
  - `created_by` integer, required
  - `current_step` string, nullable: Name of the engine step currently executing (e.g., `"walg_push"`). `null` when no `backup_jobs` row exists for this backup (legacy rows pre-dating ADR-014), or when the job has not yet completed its first step.
  - `error_message` string, nullable
  - `expires_at` string, date-time, nullable
  - `external_service` ExternalServiceSummary, nullable: Summary of the external service that owns a backup. Only populated for external-service backups (Redis, Postgres, etc.); absent for control-plane backups.
    - `id` integer, required: Database id of the external service.
    - `name` string, required: Human-readable service name (e.g. "redis-prod").
    - `service_type` string, required: Service type string (e.g. "postgres", "redis", "mongodb").
  - `file_count` integer, nullable
  - `id` integer, required
  - `live_size_bytes` integer, nullable: Best-effort partial size while a backup is still running, computed by listing the S3 prefix. Null when the backup is finished (`size_bytes` is authoritative in that case).
  - `max_attempts` integer, nullable: Maximum attempts before the job is permanently failed. `null` for legacy backups.
  - `max_runtime_secs` integer, nullable: Resolved wall-clock timeout for this backup job (seconds). `null` for legacy backups. Derived from the three-tier resolution order: caller override → schedule override → engine default.
  - `metadata` unknown, required
  - `name` string, required
  - `s3_location` string, required
  - `s3_source_id` integer, required
  - `schedule_id` integer, nullable
  - `size_bytes` integer, nullable: Final size of the backup once completed. Null while running.
  - `started_at` string, date-time, required
  - `state` string, required
  - `tags` string[], required

## Other responses

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

## Changes

- **2026-11-26** `e1864d950604`: 3 breaking
  - the `completed_at` response's property type changed from `integer, null` to `string, null`, and format from `int64` to `date-time` for status `200`
  - the `expires_at` response's property type changed from `integer, null` to `string, null`, and format from `int64` to `date-time` for status `200`
  - the `started_at` response's property type changed from `integer` to `string`, and format from `int64` to `date-time` for status `200`
- **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
- …earlier changes not shown

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/backups/:id/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)
