---
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

## Changes

> 37 revisions in range; 1 could not be searched.

- **2026-06-06** `0e65ec723370` — 1 info
  - endpoint added
- **2025-08-01** `2429e9297a5c` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/evcc-io/apis/evcc/changes/db/restore/post.md)

---

[API](https://skmtc.dev/evcc-io/apis/evcc.md) · [All operations](https://skmtc.dev/evcc-io/apis/evcc/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/evcc-io/evcc/revisions/5152af83a070/schema)
