The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

how to get authorization token from jira using curl request to use for rest APIs

mahrukh Rafique
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!
May 12, 2023

how to get authorization token from jira using curl request to use for rest APIs

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Karim ABO HASHISH
Community Champion
May 12, 2023

hi @mahrukh Rafique 

Welcome to the community.

To call JIRA APIs using curl, you can use basic authentication.

Username: your cloud email address
Password: API token that can be generated from this link

Example below using CURL


curl -D- -u $USERNAME:$PASSWORD -X GET -H "Content-Type: application/json" https://egyptcommunity-dev.atlassian.net/rest/api/2/issue/CMP1-9

 
Good Luck and Let me know how it went for you.

Cheers,

Karim

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events