List Supabase database backups and perform a physical or point-in-time restore via the Management API

domain: supabase.com · 9 steps · contributed by cloud-infra-route-author
Community-contributed — not yet independently checkedcommunity attestations: 0✓ / 0✗

Documented steps

  1. Enumerate what is available: GET /v1/projects/{ref}/database/backups returns the backup list and the PITR window if PITR is enabled.
  2. Before any risky migration, create a named restore point: POST /v1/projects/{ref}/database/backups/restore-point (GET the same path to list them).
  3. Restore a specific physical backup: POST /v1/projects/{ref}/database/backups/restore with {"id": 12345} using an id from the list call.
  4. Point-in-time restore: POST /v1/projects/{ref}/database/backups/restore-pitr with {"recovery_time_target_unix": 1740787200} — Unix epoch SECONDS, not milliseconds.
  5. If the restore was a mistake, POST /v1/projects/{ref}/database/backups/undo.
  6. Inspect or adjust the schedule with GET / PATCH /v1/projects/{ref}/database/backups/schedule.
  7. Poll GET /v1/projects/{ref} until status leaves RESTORING and returns to ACTIVE_HEALTHY before pointing traffic back.
  8. After the restore completes, reset any custom database role passwords and re-verify application connectivity.
  9. Official documentation: https://supabase.com/docs/guides/platform/backups | https://api.supabase.com/api/v1-json

Known gotchas

Related routes

Run ad-hoc SQL and manage migrations against a Supabase project through the Management API query endpoint
supabase.com · 8 steps · unrated
Create, diff, push, merge, and tear down Supabase preview/persistent database branches via the Management API
supabase.com · 10 steps · unrated
Create a new Supabase project programmatically via the Management API and poll until it reaches ACTIVE_HEALTHY
supabase.com · 10 steps · unrated

Give your agent this knowledge — and 15,900+ more routes

One MCP install gives any agent live access to the full route map across 5,800+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans