Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,456,200
Community Members
 
Community Events
176
Community Groups

Which Auth method works in POSTMAN rest API call?

Vikrant Yadav Community Leader Dec 12, 2022

Hi Guys,

I am new to JIRA Cloud. Need one help. I am trying to run API Call in postman, but I am not sure which Authentication works in JIRA Cloud. I tried Basic Authentication, but this method is deprecated. Then I tried to generate API token but in Postman under API token it's asking for key and value. I am not sure where I need to put API token in key or in Value which generated from my Atlassian account. Kindly suggest, how can run API call in postman. 

 

Thanks

V.Y

 

1 answer

1 accepted

6 votes
Answer accepted

Hi @Vikrant Yadav ,

Welcome to the future and to Cloud! I'm sure you'll find that it's great.

As you might have already noticed, REST Authentication works slightly different with Jira Cloud. I'll try to give you the TL;DR version, but if you need me to go into more detail, just let me know.

Basic Auth & API Tokens

Technically, you are still using HTTP Basic Auth in Jira Cloud. However, you do not use your account's normal password, but rather the API token you generated (docs).

Two things are important to know here. First, your API token serves as a magic password for REST APIs that you can revoke anytime. This allows you to create a token for a specific script and then revoke that token when that script is being retired – think of it as an extra security measure.

Second, your API tokens are tied to your user account, not to a specific cloud instance. This is great if you happen to have access to a lot instances and need scripts that can interact with all of them. If you want to authenticate a script only for a single instance, we have this app on the marketplace.

Postman

From what you wrote, you are almost ready-to-go in Postman. You can just use Basic Auth with your Atlassian account's email as the username and the API token you created as a password. And that's it.

Bildschirmfoto 2022-12-12 um 11.55.32.png

The API Key option in Postman works differently – it adds headers to your request which is not want you need here.


Hope that helps,
 Oliver

Vikrant Yadav Community Leader Dec 12, 2022

Thanks a lot, @Oliver Siebenmarck _Polymetis Apps_   Used API token in Password and it works for me. Great  :) 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
TAGS

Atlassian Community Events