How does our API authorisation works

How does the authorisation work

We use an API token as a header (called an x-token), which you can find under your Modo Energy account on the platform.

Use your token as a header.

X-Token: <token_from_account>

Here is an example of how it should look:

curl -
-location '' \
--header 'X-Token: <token_from_account>'


Keep your token secret

This token is a secret. To keep your integration secure, never store the token in your source code or commit it in version control. Instead, read the the token from an environment variable. Use a secret manager or deployment system to set the token in the environment.