LAN API access
How to get access to the LAN API
The NET2GRID LAN API is protected with a user authentication token, this token can be requested with the account credentials from the platform. The LAN API key is rotated once a day.
Token authentication
Authenticating with the LAN API happens via a token retrieved from the platform. The /lan/token call returns the token that is necessary in the LAN API calls, authentication for the token request happens with the account credentials.
![](https://files.readme.io/3289f0c-LAN_API_token.drawio.png)
Follow the steps below to execute authenticated LAN API requests.
- Sign in with the account credentials with the token CE-API call
- Request a LAN token with the /lan/token CE-API call
- Execute any LAN API call, such as /meter/now with the
N2G-LAN-USER token="{{user_lan_token}}"
asAuthorization
key
Updated 10 months ago