---
title: "Restore all data stores from a backup snapshot"
method: POST
path: "/api/admin/backup/restore"
tags: ["Backup & Restore"]
---

# Restore all data stores from a backup snapshot

`POST /api/admin/backup/restore`

## Request

- Base URL: `https://api.cernion.de`
- URL: `https://api.cernion.de/api/admin/backup/restore`
- Auth: none declared

Restores energy-sharing, allocation, datapoints, jobs, and token data from a snapshot. DESTRUCTIVE — requires confirm=true. Missing docs are restored; existing docs are skipped (additive). Sub-Track G v0.47.0 — Rollback-Plan mit Full-Restore-Orchestrierung.

## Query parameters

- `token` string

## Request body

- object
  - `snapshotId` string, required
  - `confirm` boolean: Must be true to execute restore (safety gate)
  - `token` string: Optional Cernion MCP token for this request. Overrides CERNION_TOKEN when provided.

## Response `200`

Restore completed with counts of restored/skipped docs

## Other responses

- `400`: confirm=false or snapshot not found

---

[API](https://skmtc.dev/cernion/apis/cernion-energy-tools-api.md) · [All operations](https://skmtc.dev/cernion/apis/cernion-energy-tools-api/llms.txt) · [OpenAPI document](https://skmtc.dev/cernion/apis/cernion-energy-tools-api/revisions/cdb94473b538?raw)
