Could it be that you are missing the headers, like:
const headers = {
"Content-type": "application/json"
};
and then
var requestOptions = {
method: 'POST',
headers: headers,
body: raw,
redirect: 'follow'
};