Hello everyone, just started to explore confluence REST APIs. I was trying a simple code api-content-get
const fetch = require('node-fetch');
fetch('https://your-domain.atlassian.net/wiki/rest/api/content', {
method: 'GET',
headers: {
'Accept': 'application/json'
}
})
.then(response => {
console.log(
`Response: ${response.status} ${response.statusText}`
);
return response.text();
})
.then(text => console.log(text))
.catch(err => console.error(err));
But I am getting this error
{
"message": "Current user not permitted to use Confluence",
"statusCode": 403
}Additional info: I was able to follow and run all the example give here connect-tutorials-and-guides
and I have the Admin access to my domain. I think somewhere I need to give my credentials but I don't know where. I can't figure out what the issue is, can anyone help?