Skip to main content

Generate your Electra token

To gain access to our data, you need a token. To Generate your token, visit electra.ng and signup. Go to settings and click on the developers tab. click on generate to generate a token or refresh in case your token is compromised.

White list your domain

Once your token is generated, you need to whitelist the domain you intend using to access our service. Again go to the developers tab on your settings and enter the domain and click on add domain to whitelist it. Once you complete this step, you can make requests from the just listed domain.
Note: if you intend to use the service in a development environment, you’ll need to add it as well. i.e http://localhost:<Your port>

Make a request

You can make a request using any library of your choice, All our requests are REST.
const data = await axios.get(`electra-api.xany.dev/device/{deviveId}/data`, {
  headers: {
    Bearer: "YOUR_ELECTRA_TOKEN",
  },
});
I