I use a personal access token with scope but the api "Get labels for page" fails with scope is missing.
Selected scopes
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`.
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.
Other apis works fine with basic auth. I tried Bearer Auth but get only 404.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I found the issue it was pages and not page. interesting error message
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.