Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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

Announcing Team Calendars in Confluence Data Center

Hi Community! We're thrilled to share that Team Calendars for Confluence is now a built-in feature for Confluence Data Center releases 7.11 and beyond.  A long time favorite,  Team Cale...

75 views 0 3
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