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

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!

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