The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Jira Rest API & Postman: 401 Auth. Error

thomas.duffin
October 18, 2021

To summarise:

I'm trying to use postman to retrieve the status of a (cloud) issue using the Jira REST API.

I've got an API key, and tried using Basic HTTP auth. to put the request through, but it comes back with a 401 HTTP error.

I've tried two methods:

* using my Jira login email for the username, and my API key for the password

* using base64 encoding to encode both my username AND key together and putting that in the password, and just using "Basic" in the username.

Both methods give me back the same error.

Screenshot 2021-10-18 115601.pngScreenshot 2021-10-18 115804.png

I've read on one issue that if you use a single sign-on (SSO) the email that you use to log in can be different to the email used for Auth. Can I find that original email anywhere to use instead to confirm this? Thanks folks! 

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

2 votes
Answer accepted
thomas.duffin
October 18, 2021

Fixed this one myself.

1. I was using jira.atlassian.com/rest/... as my api endpoint (this was really clear in the docs I read) but the correct (as of current) way to build the URI is as follows:

company.atlassian.net/rest/api/3/... (at least for cloud Jira integrations)

2. the pictured "Basic : Password" auth is deprecated, you use your email (for me my company one worked fine contrary to my post) and my api key as the password.

 

Combined I'm now able to locate info on my company's jira cloud platform!

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events