Skip to main content
This guide takes you from an API key to the prices for one device. The examples use curl.
1

Authenticate

Copy your Account ID and secret key from Console > API Keys. Use a Live mode key. If you have no account, create one, then contact support to activate your trial.Base64 encode account_id:secret_key and create a token. The token lasts one hour.
2

Create a user, location and device

Create a user.
Create a location with the user_id.
Create a device with the location_id and a device_type: BATTERY_STORAGE, ELECTRIC_VEHICLE, EV_CHARGER, AIR_CONDITIONER, HEAT_PUMP, WATER_HEATER, PV_SYSTEM, POWER_GENERATOR or OTHER.
3

Create a Connect session

A Connect session is a single-use key that launches Connect without exposing your secret key. Create a Connect session with:
4

Launch the Connect web app in Tariff mode

Open the hosted Connect web app with the session id and flow=TARIFF:
The user picks their supplier, signs in, grants access to their tariff and returns to your app. A session expires after 48 hours and launches Connect once, so create a new one for every launch.
Flatpeak Connect flow

Connect in Tariff mode

Use your own account with a supported supplier. To test the supplier login, pick one with a Direct connection, or switch to a test mode key and use the test supplier Antarctic Energy.
5

Get prices

Retrieve the device price.

Next steps