Forums

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

jira create issue api giving unauthorized access

arunk525
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 10, 2021

I am working on Jira create issue using Api.

I followed all steps and was able to create jira tickets multiple times using Api.

  • Created Api token in jira 
  • Used basic authentication  (username/ api token)
  • Provided all fields.

 

Suddenly stopped working again getting unauthorized access 401 issue.

I didn't change anything. Definitely not from my side. And checked earlier postman history calls even they are not working now.

Please let me know why it is not  working?

2 answers

0 votes
Pavel Parma Sapientes September 11, 2021

@arunk525 Hi 👋,

I just checked the endpoint on my jira cloud instance from postman and everything worked.

Try to check in postman console (bottom panel) if authorization header is send correctly. You should see request header `Authorization: Basic <credentials in base64>`, then try to decode it for example here. If value of the header is not what you expected (exact format `<your email>:<api_token>`) or the header is not send at all, then the fix wil be just auth configuration for request or collection.

I for example have on request the authorization configuration as "Inherit auth from parent" (which is default) and then my credentials configured on collection "Jira", where the request is categorized.

0 votes
Suvarna Gaikwad
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 10, 2021

@arunk525 please check validity of your personal access token. It might have expired or deleted by mistake.

arunk525
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 10, 2021

I gave never expire. i didn't delete.

Suggest an answer

Log in or Sign up to answer