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

Swapnil Kamble December 29, 2020

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

0 votes
Raghav Gupta December 29, 2020

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

Senthil Prasanth March 11, 2022

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
AUG Leaders

Atlassian Community Events