Help with Javascript Node

Hi guys.

I have this javascript node that keeps giving me this error:
{“message”:“Please provide an API key or token.”}

The thing is, I cannot debug why this happens. Could someone help me out?

This is the code used:
const {
file,
filename,
mimetype,
token,
size,
folderid,
} = inputs;

var myHeaders = new Headers();
myHeaders.append(“x-oc-api-key”, “API_KEY”);
myHeaders.append(“Content-Type”, “application/json”);

var raw = {
type: ‘remote’,
source: file}
conversion: {
target: ‘png’}

var requestOptions = {
method: ‘POST’,
headers: myHeaders,
body: JSON.stringify(raw),
redirect: ‘follow’
};

const {url} = inputs;
try {
const response = await fetch(“https://apiwebsite.com”, requestOptions);
const outputvariableurl = await response.json();
return { outputvariableurl }
} catch (err) {
const error = {
code: ‘unknownError’,
message: ‘Something went wrong.’,
rawError: err,
}
return [1, { error }]
}