---
title: "Restore database backup"
method: POST
path: "/db/restore"
tags: ["db"]
---

# Restore database backup

`POST /db/restore`

Restores the database from a previously downloaded backup file. Session users must supply the admin password in the X-Admin-Password header. API key holders via Bearer token are exempt. The instance restarts after a successful restore.

## Headers

- `X-Admin-Password` string — Admin password

## Response `204`

Restore successful, instance is restarting

## Other responses

- `400` — Invalid file or missing fields
- `401` — Unauthorized - Login and try again

---

[API](https://skmtc.net/evcc-io/apis/evcc.md) · [All operations](https://skmtc.net/evcc-io/apis/evcc/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/evcc-io/evcc/versions/1d484c790b11/schema)
