const options = {
method: 'POST',
headers: {
Authorization: 'Bearer <authorization>',
'Content-Type': 'application/json',
},
};
fetch(
'https://api.getjusto.com/api/v2/health',
options
)
.then((response) => response.json())
.then((response) => console.log(response))
.catch((err) => console.error(err));