Forums

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

We get a non-descriptive 401 error that doesn’t show the exact permission needed

Jon Caines
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!
September 8, 2025

We are using a token generated for a service account to access: developer.atlassian.com/cloud/confluence/rest/v2/api-group-space/#api-spaces-get

With permissions assigned, we still receive a 401 and cannot determine which permissions are still missing.

Can you offer any advice.

1 answer

1 vote
Mohamed Benziane
Community Champion
September 8, 2025

Hi,

Welcome to the community,

Are you using this base url : https://api.atlassian.com/ex/confluence/{cloudID} ?

Marc - Devoteam
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.
September 8, 2025

Hi @Jon Caines 

Welcome to the community.

@Mohamed Benziane is correct, if you use a service account, to use API, you need to use the url mentioned

Like Mohamed Benziane likes this
Jon Caines
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!
September 8, 2025

Many thanks for the welcome @Mohamed Benziane and for the feedback. We are using the one in the documentation https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-space/#api-spaces-get

Marc - Devoteam
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.
September 8, 2025

Hi @Jon Caines 

I see, but the prefix, before using this API endpoint, you need to use the url, mentioned by @Mohamed Benziane 

You can't use https://<instance-name>\...

Suggest an answer

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

Atlassian Community Events