Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

I keep getting a 403 error while trying to simply fetch available spaces

Prisme Dev
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 15, 2026

I'm using a cloud app secured with Oauth2 flow with all the granular scopes enabled to get spaces on the correct "Use App On" section (the domain I'm trying to reach). 

I then make a curl with the code received to receive my access token, but my request can't work and I always get this msg :

"statusCode": 403,
"message": "com.atlassian.confluence.mvc.rest.common.exception.StacklessResponseStatusException: 403 FORBIDDEN \"Request rejected because caller cannot access Confluence\""

Here's a exemple I made out of Postman :

GET https://myclouddomain.atlassian.net/wiki/rest/api/space
And in the Authorization tab : Bearer Token -> Token : the token I received

1 answer

0 votes
Mohamed Benziane
Community Champion
January 15, 2026

Hi,

are you using a service account ? If yes, the UrL should look like this :

https://api.atlassian.com/ex/confluence/{cloudid}/{endpoint}

here the documentation:

https://support.atlassian.com/user-management/docs/create-oauth-2-0-credential-for-service-accounts/

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
TAGS
AUG Leaders

Atlassian Community Events