Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,257,446
Community Members
 
Community Events
164
Community Groups

Confluence Cloud REST API : "message": "Current user not permitted to use Confluence", "statusCode":

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?

1 answer

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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Site Admin
TAGS
Community showcase
Published in Confluence Cloud

Presenter Mode for Confluence is here 🖥 👩‍💻

👋  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 ...

2,361 views 19 41
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you