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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Hi,

I have created TOKENS in https://id.atlassian.com/manage/api-tokens, but the problem is i am not able to call the api in postman 

I have configured api token by following the steps in JIRA Documentation. Please refer the below screen shot for more info.

jiraAuthentication.PNG

1 answer

0 votes

Hello Harish,

Thank you for contacting us. Happy to help!

Do you have your email address and token entered in under Authorization

I'm testing this with my Jira Cloud instance, and it seems to work:

Screenshot 2019-06-13 at 13.24.23.png

Looking forward to hearing from you soon!

Regards,

Shannon

@Shannon Spaniol  Yes I do have 

[PRIVATE INFORMATION REDACTED]

Hello Harish,

I've removed your private information for your safety. So you are aware, this is a public forum and it's not recommended to share your private data.

If you can confirm that you've already filled in your username and API token in the Authentication tab, then you need to check with the Cloud team why this isn't working. You can reach them from our Support Portal

Please make sure to include a link to this thread so they can let us know what the issue was. 

Regards,

Shannon

Yes I have filled 

Thank you, Harish! One more test you can do is using CURL and your email and token:

curl -v https://mysite.atlassian.net --user me@example.com:my-api-token

Please be sure not to share your URL, username, or token with us in your reply.

If that still does not work, then there's something with your account and you want to Contact Support. If it does work, then there's still an issue with your settings in Postman and you will want to double-check your settings.

Regards,

Shannon

@Shannon Spaniol  I am able to get the response in curl but not in Postman. Please check it

Please reply to this ticket ASAP. I am not able to proceed further. 

Hello Harish,

Thank you for following up. I want to first make sure we have set the proper expectation with you in regards to the Atlassian Community site. Questions here may be answered by Atlassian Staff, Community Leaders, and other members of the Atlassian Community. There are no specific SLAs or hours of availability. You can find further details about our support offerings from the page Atlassian Support Offerings. If you're ever in need of urgent support, I would suggest that you raise a ticket at support.atlassian.com as I suggested previously.

That said, I used the base 64 encoding provided by you earlier and decoded it. From this information I was able to test your credentials against your instance's REST API. I can confirm that it works in Postman without any issues. You can see the results of my test below:

Screenshot_2019-06-14_at_11_42_00.png

Because you are getting a 401 error, it tells me that you haven't entered the correct information. Since we've already seen your credentials, I believe the problem now is related to the endpoint you are using.

  1. Can you confirm the URL you are connecting to is your own Cloud URL?
  2. Tell us which endpoint you are trying to connect to. Please do not include your instance URL for your security; only share the endpoint itself. 

Thank you for your help!

Regards,

Shannon

Thank you for the reply @Shannon Spaniol 

I am getting empty results if I run in postman, Can u please mail me the username passwords and headers used in your post man.

Please find the attachment for more info.emptyresults.png

Hello Harish,

Thank you for sharing that.

I cannot mail you the email address and token I used, but I directly decoded it from the base 64 you provided. You can compare this with the portion as seen in your first screenshot.

I can see in your 2nd screenshot that you are now getting a different message, saying that it connected successfully, but isn't able to load any data from Jira. 

Can you please send me another screenshot now of your headers from Postman, including the Base 64 again? Please censor out the middle of your token but leave the beginning and end so we can compare it. Below is my example:

Screenshot_2019-06-14_at_14_07_00.png

Regards,

Shannon

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Jira Core

How to manage many similar workflows?

I have multiple projects that use variations of the same base workflow. The variations depend on the requirements of the project or issue type. The variations mostly come in the form of new statuses ...

3,998 views 11 5
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you