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`.

 

2 answers

1 accepted

1 vote
Answer accepted
Camila lily
July 22, 2026

Double check that the token was created with the required scopes and that you're using the correct authentication method. A Personal Access Token should typically be sent as a Bearer token, not Basic, unless the endpoint specifically requires Basic auth.

Jan Jansen
July 22, 2026

Other apis works fine with basic auth. I tried Bearer Auth but get only 404.

 

Like Barbara Szczesniak likes this
Jan Jansen
July 22, 2026

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

Like Barbara Szczesniak likes this
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