We often get asked if there is a myenergi API (or Application Programming Interface) that would allow you to create your computer programs to access and control your myenergi devices.
We don't currently have an "officially supported" API - we are working on an API that will be supported so watch this space.
For the time being, anyone interested in the API should look at the discussion on our forum https://myenergi.info/api-f54/
Obtaining an API key
Important
The API key is only available in the myaccount that was used to register the myenergi devices. If you are logged into a shared account then it is not possible to obtain the API key. If the "Advanced" button is not available please log out of myaccount and log back in again using the email address that was used when the devices were registered.
To access the myenergi API you will need the serial number of your hub and an API key.
This is a special code, unique to your system that is used to validate any calls that you make to the API.
- To obtain your API key you first need to login into myenergi myaccount.
- Navigate to the Products page At the top of the device list is your "Gateway Device" - either a myenergi hub or another device with built-in Ethernet/Wi-Fi which is providing the link to the internet for all your myenergi devices.
- Click on the button labelled "Advanced" with small key icon. The Advanced Options window will now open.
- Click on "Generate new API key".
NOTE: When you generate a new API key it will cancel your previous key if you have one. The system checks to make sure that you really do want to generate a new key.
- Click on "Yes, I am sure" to proceed.
- The new API key will displayed. This is the only time that the key will be shown so make a note of it or select the option to copy the key to the clipboard.
NOTE: If you lose the key you can always generate a new one by following these steps again.