Forums

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

Why am I getting 401 "scope does not match" when accessing Confluence /spaces API via OAuth 2.0?

aqi-bagus
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!
July 2, 2025

I'm building an app that uses 3-legged OAuth (3LO) to publish meeting notes from my web app to Confluence Cloud. I successfully obtained access tokens via the authorization flow.

However, when I try to call:

`GET https://api.atlassian.com/ex/confluence/{cloudId}/wiki/api/v2/spaces`

I get the following error:

code 401
message Unauthorized; scope does not match

I made sure to request these scopes during login:

  • read:confluence-space.summary

  • read:page:confluence

  • write:page:confluence

  • "read:confluence-content.summary"

And I confirmed the client ID, redirect URI, and cloudId are correct.

Do I need additional scopes? Or is there something I need to configure in the Atlassian Developer Console?

Thanks!

1 answer

0 votes
Oleksii Melnyk
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 2, 2025

Hi @aqi-bagus !

Hi, I recommend checking the scopes again. Also try to add read:confluence-content.all

I recommend checking this article:
https://developer.atlassian.com/cloud/confluence/scopes-for-oauth-2-3LO-and-forge-apps/

Suggest an answer

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

Atlassian Community Events