Skip to main content
PATCH
Update a Connect session

Authorizations

Authorization
string
header
required

Bearer token obtained from POST /auth/tokens.

Path Parameters

session_id
string
required

Flatpeak Connect session ID.

Body

application/json

Connect init session data.

device_id
string

Flatpeak Device ID.

Pattern: ^[a-z]{2,4}_[A-Za-z0-9]+$
Example:

"dev_63a6087272941ef077a8fd3e"

location_id
string

Flatpeak Location ID.

Pattern: ^[a-z]{2,4}_[A-Za-z0-9]+$
Example:

"loc_641b90b758fb8e6293716e40"

supplier_id
string

Flatpeak ID of the energy supplier to preselect in the TARIFF flow, so the user skips supplier selection. Optional.

Pattern: ^[a-z]{2,4}_[A-Za-z0-9]+$
Example:

"sup_6a2be12ecf43cb7e3d6cefcd"

connect_url
string

URL the user is redirected to during the Handling the callback step of the Redirect function: your Connect web app or a deep link into your native app.

Example:

"myapp://nova/flatpeak/connect"

callback_url
string

URL to redirect the user to after they complete or exit their Connect session.

Example:

"myapp://nova/flatpeak/complete"

Response

Connect session response.

id
string
required

Flatpeak Connect session ID.

Example:

"cos_6a3196d6e61a44f33f7307ed"

object
string
required

Object type.

Example:

"connect_session"

live_mode
boolean
required

true for live data, false for test data.

Example:

true

location_id
string
required

Flatpeak Location ID.

Example:

"loc_641b90b758fb8e6293716e40"

time_created
string<date-time>
required

Time when the object was created, in UTC.

Example:

"2026-05-05T18:37:27Z"

time_expiry
string<date-time>
required

Time when the session expires.

Example:

"2026-12-28T03:00:00Z"

price_available
boolean
required

true when prices are available to fetch.

device_id
string

Flatpeak Device ID.

Example:

"dev_63a6087272941ef077a8fd3e"

supplier_id
string

Flatpeak ID of the energy supplier preselected for the TARIFF flow, when one was passed.

Example:

"sup_6a2b2460ba2259a0c4980afb"

connect_url
string

URL the user is redirected to during the Handling the callback step of the Redirect function: your Connect web app or a deep link into your native app.

Example:

"myapp://nova/flatpeak/connect"

callback_url
string

URL to redirect the user to after they complete or exit their Connect session.

Example:

"myapp://nova/flatpeak/complete"