const options = {
method: 'POST',
headers: {cookie: 'session=', 'Content-Type': 'application/json'},
body: JSON.stringify({
type: '<string>',
title: '<string>',
message: '<string>',
clickActionUrl: '<string>',
primaryActionLabel: '<string>',
primaryActionUrl: '<string>',
secondaryActionLabel: '<string>',
secondaryActionUrl: '<string>'
})
};
fetch('https://api.example.com/v1/regions/global/notifications', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));