Skip to main content
POST
Get Imbalance Snapshot as GeoJSON

Authorizations

Authorization
string
header
required

An API key, sent as Authorization: Bearer <key>. Create one in the SWITCH Copilot under Settings → API keys (needs the API keys permission in your company), or with POST /auth/api-keys. The key is shown once, at creation.

Body

application/json

Defines the filters applicable to an imbalance snapshot request.

This schema includes parameters such as location, time granularity, prediction horizon, and grid details.

time_granularity_minutes
integer
required

Length of each forecast time bucket in minutes, e.g. 60. Together with prediction_horizon_size it must match one of the horizons enabled for your company; a 400 response lists them.

prediction_horizon_size
integer
required

Size of the prediction horizon in time steps (each one long time_granularity_minutes minutes)

grid
GridFilters · object
required

Grid schema defining the spatial structure for the forecast

zones_whitelist
string[] | null

Optional list of zone IDs to include in the response. If provided, only zones in this list will be returned.

zones_blacklist
string[] | null

Optional list of zone IDs to exclude from the response. Takes precedence over zones_whitelist when both are provided.

Response

Imbalance snapshot retrieved successfully as GeoJSON with spatial geometries and zone-wise imbalance data.

Represents the GeoJSON response structure for an imbalance snapshot.

This schema includes the GeoJSON representation of zones with their imbalance values and the corresponding time periods.

geojson
Geojson · object
required

GeoJSON FeatureCollection with one Polygon feature per zone; each feature's properties are zone_id and imbalance (one value per entry of periods).

Example:
periods
string<date-time>[]
required

List of time periods for which the imbalance is provided