Hologram rest api

Hi all!

Since I’m quite a noob in HA and in configuration I would ask for some help if anyone has any idea how to tackle this…
I have rest sensor configured as follows:

rest:
  - resource: "https://dashboard.hologram.io/api/1/usage/data/monthly"
    method: GET
    username: "apikey"
    password: "******apikey base64 encoded********"
    headers:
      Authorization: "Basic"
    scan_interval: 120
    sensor:
      name: hologram_usage
      value_template: "{{ value_json }}"
      

The sensor output is this:

{'success': False, 'error': 'Invalid API Key'}

But if I do this command:

curl -X GET 'https://dashboard.hologram.io/api/1/usage/data/monthly' --header "Authorization: Basic ************apikey base64 encoded**************"

I get this:

{"success":true,"limit":100,"size":5,"continues":false,"lastid":"***********","data":[{"linkid":******,"record_id":"********","month":5,"year":2023,"session_count":"6","bytes":89106},{"linkid":2206890,"record_id":"*******","month":4,"year":2023,"session_count":"492","bytes":6962182},{"linkid":*****,"record_id":"*****","month":3,"year":2023,"session_count":"544","bytes":6380473},{"linkid":******,"record_id":"********","month":2,"year":2023,"session_count":"209","bytes":17380815},{"linkid":*******,"record_id":"*******","month":1,"year":2023,"session_count":"339","bytes":3853409}]}# 

Any suggestions how to configure this sensor or what could be the right way? I think the apikey is correct since I get some results from command call.
I would very much appreciate any help or suggestion, I have been struggling for some time now but no luck.