---
title: "Prepare immutable historical context features"
method: POST
path: "/api/forecast-sandbox/consumption/features/context/prepare"
tags: ["Forecast Sandbox"]
---

# Prepare immutable historical context features

`POST /api/forecast-sandbox/consumption/features/context/prepare`

## Request

- Base URL: `https://api.cernion.de`
- URL: `https://api.cernion.de/api/forecast-sandbox/consumption/features/context/prepare`
- Auth: none declared

Cached historical feature preparation. Inspect availability_policy: final exports and reconstructed publication times are not verified historical vintages. IDs can be used by evaluation and state-model APIs. Weather connector supports Kempten.

## Query parameters

- `token` string

## Request body

- object
  - `from` string, date, required
  - `until` string, date, required
  - `token` string: Optional Cernion MCP token for this request. Overrides CERNION_TOKEN when provided.

## Response `200`

Immutable dataset ID, provenance, coverage and availability assumptions.

- object

## Other responses

- `400`: Invalid preparation request.
- `500`: Feature provider failed; no fabricated data.

---

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