Forums

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

Getting Issue from REST API using POSTMAN

Jesper Lund Stocholm June 28, 2020

Granted, this is the first time ever working with the REST API's of JIRA, but I am having some issues authenticating using an API token.

We are in our preliminary analysis phase, and we are using Postman to investigate and document the usage of the API's - and we cannot seem to authenticate correctly.

Note: we can connect correctly using e.g. Microsoft Power Automate (formerly known as "Flow"), and I can successfully connect using curl.

My curl command is this:

curl -v https://myworkspace.atlassian.net/rest/api/2/issue/PDEM-3 --user myemailaddress:myapikey

So I know that my user name + API key works.

However. when I use Postman, I get this response:

{"errorMessages":["Issue does not exist or you do not have permission to see it."],"errors":{}}

The URI I am trying to hit using Postman is this:

https://myworkspace.atlassian.net/rest/api/2/issue/PDEM-3

Authorize is set to this:

JIRA Postman authorization.jpg

And in my header-collection, I have added the "user" line with my email address, like this:

JIRA Postman headers.jpgThe "id" line contains my API key.

There must be some small thing that I am missing in Postman to authenticate correctly.

Can you guys help?

Thanks :-)

 

1 answer

1 accepted

0 votes
Answer accepted
Jesper Lund Stocholm June 28, 2020

Damn ... all that text and then I found out myself two minutes later.

I had to select the "Authorization type" to be "Basic auth", use my email address as "Username" and my API key as password.

... so embarrassed ... :-) 

Suggest an answer

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

Atlassian Community Events