Go to www.hooktheory.com

Can't get Hooktheory Api activkey

I tried to use hooktheory api, but to access it I need my activkey.
So, I tried to get my activkey by following the api documentation (https://www.hooktheory.com/api/trends/docs) but as result I got an empty object without getting any errors.

Here is my code:
async function getData() {
try {
const entry = ‘https://api.hooktheory.com/v1/’;
const auth_prefix = ‘users/auth’;
const response = await fetch(entry+auth_prefix, {
method: ‘POST’,
headers: {
‘Content-Type’ : ‘application/json’,
‘Accept’ : ‘application/json’
},
mode: ‘cors’,
body: JSON.stringify({
username: “Nenino2”,
password: “***********”
})
});
const data = await JSON.stringify(response);
console.log(data);
} catch (error) {
console.log(error);
}
}
getData();

Am I doing it right? Please help.

I found my error:
I used the wrong Json to javascript object parse method:
I used JSON.stringify(response) instead of response.json();

This topic can be closed!