Keep your
client_secret
secure and never expose it in client-side code. An API key provides full access to all the
data in a project. Don’t hardcode it in code repositories and don’t share it with others.1
Get your credentials
Contact support@nomos.energy to obtain your
client_id
and client_secret
.2
Exchange for tokens
Exchange your client credentials for access and refresh tokens by making a request from your backend server. The The response will include an access token (valid for 60 minutes) and a refresh token:
client_id
and client_secret
must be sent in the Authorization header as Basic authentication credentials:3
Make authenticated requests
Include the access token in the Authorization header of your API requests:
4
Refresh expired tokens
When the access token expires, use the refresh token to obtain a new one: