---
title: "Create a Snapshot — seal a consistent set of Datapoints"
method: POST
path: "/api/datapoints/snapshot"
tags: ["Datapoints"]
---

# Create a Snapshot — seal a consistent set of Datapoints

`POST /api/datapoints/snapshot`

## Request

- Base URL: `https://api.cernion.de`
- URL: `https://api.cernion.de/api/datapoints/snapshot`
- Auth: none declared

Refreshes all specified datapoints (sequentially) if their cached data is older than `maxAgeMinutes`, then seals the consistent state as a snapshot document in PouchDB. The snapshot records each datapoint`s `provenanceHash` and a combined `snapshotHash` (SHA-256 over sorted individual hashes). Accepts either `datapointNames` (array) or `tags` (comma-separated string). Raw data is NOT stored (KRITIS constraint).

## Query parameters

- `token` string

## Request body

- object
  - `datapointNames` string[]
  - `tags` string: Comma-separated tag filter. Mutually exclusive with datapointNames.
  - `maxAgeMinutes` number: Maximum age of a datapoint before a refresh is triggered.
  - `name` string
  - `description` string
  - `createdBy` 'manual' | 'agent' | 'scheduler'
  - `token` string: Optional Cernion MCP token for this request. Overrides CERNION_TOKEN when provided.

## Response `200`

Successful response

- object

---

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