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

0 votes
Karim ABO HASHISH
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events