Skip to main content
1

Subscribe to session complete event

Go to the Dashboard Webhooks page and subscribe to the connect.session.complete event. This enables your backend to receive notifications when a tariff is connected, so you can start fetching tariff rates and using other energy scheduling and cost reporting endpoints.This step only needs to be completed once.
2

Call Connect URL

Make a request to the Connect URL as shown in this example:
curl --request POST \
  --url https://connect.flatpeak.com \
  --header 'Content-Type: application/json' \
  --data '{
  "connect_token": "<connect_token>",
  "route": "session_start"
}'
The response will be one of the predefined pages listed below. Your application must support handling all of these pages.
The BACK action is available on every page, it lets customers reliably return to the previous step.
curl --request POST \
  --url https://connect.flatpeak.com \
  --header 'Content-Type: application/json' \
  --data '{
  "connect_token": "<connect_token>",
  "action": "BACK"
}'
I