Access API through NodeJS?

Hello I have been trying to access all card that are in my Kanboard using NodeJS, though I’m currently stuck at the authentication part.
This is what I currently have:

const axios = require('axios').default;

    method: 'get',
    url: '',
    headers: {
        'Content-Type': 'application/json;charset=UTF-8',
        'X-API-Auth': 'api_key',
}).then(function(res) {

The output I get:

{ jsonrpc: '2.0',
  error: { code: -32700, message: 'Parse error' },
  id: null }

Any ideas what I might be doing wrong?

Your request data is missing. You are just calling the API endpoint with no request.

No it was just me that had a typo in the config.php: X-API-Ath instead of X-API-Auth