Forums

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

JIRA 401 CURL command using correct email:api_token formatting

Isaac_McQueen
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 17, 2020

I feel like I've tried every possible format to enable a get request from JIRA with CURL and I continue to get a 401 error. I've triple checked my jira email to ensure it is correct. I'm using the api token i generated in jira. This is my format below. Is there any other reason that this request might fail? If I paste the url into my web browser I get the appropriate response from the issue (because cookie retrieval).

 

Any help would be greatly appreciated. I've been fighting this for hours. 

Thank You!

 

curl --request GET \
--url 'https://jira.<company_name>.com/rest/api/latest/issue/<issue_key>' \
--user 'first.last@<company_name>.com:<api_token>' \
--header 'Accept: application/json'

 

0 answers

Suggest an answer

Log in or Sign up to answer