Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Getting a 401-Unauthorized Error on REST API


I am using Confluence Cloud. All worked perfectly but suddenly (max 1 months ago) my REST API call stopped working and it returns me an unauthorized error. I have tried both basic authentication call which I do believe are 100% correct. When I use URL in the browser when I am logged into the Confluence all works fine.

My commands:

1) curl -u -X GET ",history,metadata.labels&type=page&spaceKey=PKB&limit=100&start=0"

2) curl -X GET -H "Authorization: Basic BASE64TOKEN" -H "Content-Type: application/json" ",history,metadata.labels&type=page&spaceKey=PKB&limit=100&start=0"

I set up basic authentication based on this article.

Found among the articles that it could be caused my CAPTCHA in case log-in failed more times. First, of I am never asked for CAPTCHA when I am logging in but in Security Configuration is set to 3 and cannot be disabled.

I have tested API call in Postman as well and the result is the same unauthorization error.

Does anyone have any hint? Thanks

1 answer

1 accepted

3 votes
Answer accepted
edwin Community Leader May 29, 2019

Hi @Stanislav Vincent ,

Please take a look at this similar question.

Client must be authenticated to access this resource.

Thanks a lot, @edwin . Works perfectly!

Like edwin likes this

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira Service Management

Security Advisory for Jira Service Management

On October 20, 2021, Atlassian published a security advisory for Jira Service Management. The full advisory is available at this link.  We've seen a number of questions already asking for...

76 views 0 1
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you