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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Basic Authentication Failure - Reason : AUTHENTICATION_DENIED

Hello. I am trying to access the confluence rest api and I am getting 401 Unauthorized.

the url i am trying to acces is https://domain-name/rest/api/content

Yesterday I used the api for the first time, i generated api token in attlasian account, i managed to connect via Postman, acces some descendants etc, but today I am getting error. The only different thing i made is that i generated another token and discarded the old one. For username i am using the full email. 

In my attlasian account the yesterday token appeared as never used before i erased it.

I even tried to manually build the authorization header but I had no success.

I saw all the other topics about this subject, i followed every step and i cannot see what the problem is. 

1 answer

0 votes
Prince Nyeche
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.
May 25, 2021

Hi @Maria Brobonea 

Is the instance accessible from your browser and are you able to login normally from there?

Hi, yes, I can log into confluence and jira form the browser.

Prince Nyeche
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.
May 26, 2021

Good, now can you try to access that endpoint you want on the browser and see if you get a response. You might want to open up your developer console (Network tab) to see the response you get.

{"results":[],"start":0,"limit":25,"size":0,"_links":{"self":"https://domain_name/rest/api/content","base":"https://domain_name","context":""}}

The status of the request is 200.

Trying to access the same link with basic Auth will generate the Unauthorized error.

Prince Nyeche
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.
May 27, 2021

Getting such results, I don't think you have access to such content and also this might be a permission problem.

Suggest an answer

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

Atlassian Community Events