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:
And in my header-collection, I have added the "user" line with my email address, like this:
The "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 :-)
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 ... :-)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.