Forums

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

Getting 401 while accessing API

deepak_kumbhar46
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!
March 28, 2022

Hello everyone, 

I am using Jira agile API, I have created a Jira application and integrated that application with the account, and created an access token (Bearer). But while accessing the API it is giving me a 401 error. Can anyone please help me with this? Attaching the image for reference.

jira.png

Thanks in advance.

1 answer

0 votes
Benjamin
Community Champion
March 28, 2022

HI @deepak_kumbhar46 ,

 

Looks like an authorization error. Do you have permission to that page which your assessing? If you tried viewing the page as that actual user, are you able to see that page? Double check your bearer token as well to makes sure no typos or missing characters in there.

 

Thanks,

 

Ben

Deepak Govindram Kumbhar April 4, 2022

Hey @Benjamin Thanks for your reply,

Yes I do have. Can you tell me what scope will required to access the above API? And Yes I am able to access the page in browser (If I am logged into Jira cloud)

Benjamin
Community Champion
April 4, 2022

HI @Deepak Govindram Kumbhar ,

 

might be related to how you generated the token for you API call then is all your permission for user is okay.

 

See this post:

https://community.atlassian.com/t5/Jira-questions/JIRA-Rest-API-authentication-always-returns-401-unauthorized/qaq-p/1110047

 

-Ben

Deepak Govindram Kumbhar April 4, 2022

It is resolved. Closing this.

Like Iván Toro likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events