Hello all:
I am trying to access Jira via the APIs. When logged into Jira, if I run an API request in a browser it works fine (but that is because I am already authenticated). However, when I attempt to run the same query either using a test app I created in C# or Postman I get a response back saying "Unauthorized (401)".
I created an API token and I also created a personal token. I tried both to authenticate but no luck.
Here is the cURL command I am using:
curl -D- \
-X GET \
-H "Authorization: Basic base64 user name and api token here" \
-H "Content-Type: application/json" \
https://my jira server/rest/api/2/search?jql=jql query
What am I doing wrong?
Thanks in advance.
Regards
Yas