Skip to main content
The Energy API is for OEMs: the companies that make batteries, EV chargers, vehicles, heat pumps and inverters. It connects your users’ tariffs and prices every device. With VPP, it enrolls devices in programs and delivers their instructions.

Make a request

The base URL is https://energy-api.flatpeak.com. Exchange your Account ID and a secret key for a bearer token, then send the token on every other request. A token lasts one hour.
The secret key sets the mode: sk_test_ keys work on test data, sk_live_ keys on live data. See Authentication and test mode.

Layout

VPP is optional and uses the same users, locations, devices and tariffs. Start with the quickstart, then add VPP with the VPP quickstart.

Specs

What VPP adds lists the fields VPP adds to users, locations, devices and Connect sessions.

Object model

A tariff belongs to a location, and every device at the location prices against it. A VPP enrollment belongs to a device, so devices at one address take part independently.

Conventions

Naming

Both Flatpeak APIs follow the same rules.