The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
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?
Hi @Swapnil Kamble ,
Which application you are using to run API like there is postman application. If not please confirm which method you are using to run confluence API.
In any of method you need to specify your admin credentials when you run any api of confluence.
Thanks,
Raghav Gupta
Hello @Swapnil Kamble
By any chance could you able to overcome this scenario.
I am facing this issue and stuck for quite a long time. Any reply would be much appreciated.
Regards,
Senthil Prasanth K
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
👋 Hello Community! My name is Stephanie Zhang, and I’m a product manager on the Confluence cloud team. Today, I’m excited to announce the rollout of Presenter Mode : a ...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.