1
Create device identifier (optional)
- Start by calling the create-a-device endpoint using your internal device reference.
- Store the returned Flatpeak
device_id
permanently in your system. - This step only needs to be performed once per device.
2
Submit meter records & get cost
- Use the instant-cost-calculate endpoint to submit energy consumption or export meter records from your system or device.
- Optionally include the
device_id
you created earlier — this enables tagging and tracking by device.
Simulating energy cost profiles
To estimate energy cost without storing the data, pass thenon_persistent=true
in your request to the instant-cost-calculate endpoint.
This lets you model scenarios without affecting actual meter data or triggering downstream reporting.