Token Request

Oauth Token Request

You must request the token from OAuth as follows. You will need to provide

  • client_id
  • client_secret

These can be obtained via the eDRV dashboard as described in eDRV API Auth

const request = require('request');

const options = {
  method: 'POST',
  url: '',
  headers: {
    'content-type': 'application/x-www-form-urlencoded',
  form: {
    grant_type: 'client_credentials',
    client_id: 'S4BTj2Kx8Oe75y64J2QeQ2j2oR1CeDRV',
    audience: '',

request(options, function (error, response, body) {
  if (error) throw new Error(error);
  let access_token = body.access_token;
    "access_token": "YOUR_ACCESS_TOKEN",
    "expires_in": 86400,
    "token_type": "Bearer",
    "scope": "read:x write:y",

Please grab the "access_token" above and set it within your application. You will use it to authenticate all API calls to eDRV.


Never give your Access Token to a third party

Your Access Token can give access to your private Charge Station data and should be treated like a password.

What’s Next

Use your access_token to authorize all eDRV API requests