Forums

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

Any simple curl example to access jira in cloud

Karl Pfalzer
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!
April 15, 2019

I am trying to use curl to verify the simplest way to access an issue in our cloud hosted jira.

% curl -D- -u myname@company.com:password -X GET -H "Content-Type: application/json" https://company.atlassian.net/rest/api/latest/issue/VERIF-655

But, I get:

HTTP/2 401 
...
x-seraph-loginreason: AUTHENTICATED_FAILED

 

Any examples please?

1 answer

1 accepted

1 vote
Answer accepted
Alexey Matveev
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.
April 15, 2019

Hello,

You need to provide Api key instead of the password.

You can get api key for your user here:

https://id.atlassian.com/manage/api-tokens

Karl Pfalzer
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!
April 16, 2019

Thank you.  That worked!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events