Creating a Connect session allows you to interact with selected Flatpeak API endpoints from your app or frontend. It enables your customers to authorise access to their account with their energy provider or VPP operator, so your system can retrieve and manage the required data.
Each session generates an individual, time-limited token (referred to as connect_token) scoped only to that specific session. Because the token cannot access anything beyond its scope, it is safe to use directly in your frontend or mobile application.
Authenticate with bearer you obtained from authentication endpoint.
Connect init session data.
Flatpeak Locaiton ID
"loc_641b90b758fb8e6293716e40"
URL the customer is redirected to during the Handling Callback step of the Provider Login Redirect. Specify either the URL where your Connect web app is hosted or a deep link into your native app.
"myapp://nova/flatpeak/connect"
URL where the customer is redirected after they complete or exit their Connect session.
"myapp://nova/flatpeak/complete"
Flatpeak Device ID
"dev_63a6087272941ef077a8fd3e"