Grafana Loki Ingestion using Node Https

I am using grafana cloud and default loki sources that comes with it
example of default data source (loki name): grafanacloud--logs

Basically I write custom lambda function that generates logs and I want to push that logs into
default loki endpoint eg: hostname/loki/api/v1/push (using predefined url from data source)
However, it comes with basic auth and I am not aware of password since it is already default configured data source.

I am trying to achieve that using normal http request where my payload looks like this
const lokiPayload = {
streams: [
{
stream: { job: ‘s3-logs’ }, // Adjust the labels as needed
values: [
[Date.now() * 1000 * 1000, decompressed]
],
},
],
};

and headers like this
‘Content-Type’: ‘application/json’,
‘Access-Control-Allow-Origin’:“*”,
‘Access-Control-Allow-Methods’: ‘GET, POST’,
‘Access-Control-Allow-Headers’: ‘Content-Type, Authorization’
‘Authorization’:
},

I am getting Response from Loki: {“status”:“error”,“error”:“authentication error: no credentials provided”}

I want to know a way through which I can ingest my logs data to predefined loki endpoint