Forums

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

API failing with scope missing

Jan Jansen
July 22, 2026

I use a personal access token with scope but the api "Get labels for page" fails with scope is missing. 

 

Selected scopes

  • read:content-details:confluence
  • read:label:confluence
  • read:page:confluence
  • read:custom-content:confluence
  • read:hierarchical-content:confluence
curl --request GET \
--url https://api.atlassian.com/ex/confluence/{id}/wiki/api/v2/page/{id}/labels/ \
--header 'authorization: Basic XXXX'

Result

{
"code": 401,
"message": "Unauthorized; scope does not match"
}

 How to fix it?

Documentation just says `read:page:confluence`.

 

1 answer

0 votes
Tomislav Tobijas
Community Champion
July 22, 2026

@Jan Jansen I've seen people claiming there are some issues with specific scopes so you could try just giving all scopes in order to confirm that you're not missing anything.

Although, as per your last reply:

...I found the issue it was pages and not page. interesting error message...

I'm guessing you've found what the issue (potentially restrictions??) was.

Cheers,
Tobi

Suggest an answer

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

Atlassian Community Events