---
title: "List backups"
method: GET
path: "/api/v1/databases/{database_id}/backups"
tags: ["Managed Databases"]
---

# List backups

`GET /api/v1/databases/{database_id}/backups`

All backups for the database: nightly automatic backups (`base`) and on-demand backups (`on_demand`).

## Path parameters

- `database_id` string, required

## Response `200`

List of backups

- object
  - `success` boolean
  - `backups` DatabaseBackup[]
    - `id` string, uuid — Backup identifier — use as `backup_id` when restoring
    - `database_id` string, uuid — Database this backup belongs to
    - `backup_type` 'base' | 'on_demand' — `base` = nightly automatic backup; `on_demand` = manually requested
    - `status` 'running' | 'completed' | 'failed' — Only `completed` backups are restorable
    - `size_bytes` integer — Backup size in bytes (0 while running)
    - `s3_path` string — Object storage location of the backup artifact
    - `backup_timestamp` string, date-time, nullable — Consistency point of the backup
    - `created_at` string, date-time
    - `completed_at` string, date-time, nullable
    - `expires_at` string, date-time, nullable — When the backup leaves retention

## Other responses

- `401` — Authentication required
- `404` — Resource not found

---

[API](https://skmtc.dev/rafftechnologies/apis/raff-api.md) · [All operations](https://skmtc.dev/rafftechnologies/apis/raff-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/rafftechnologies/raff-api/revisions/2f4df56be77c/schema)
