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
Community Members
Community Events
Community Groups

API token generation using basic authentication doesn't work


I was trying to generate a new REST API token from a Fisheye and Crucible site 


with parameter ->

"userName": "myusername",
"password": "mypassword"

by following instruction from this:

I also tried

This also doesn't work. Can someone please tell me how to generate this API token.

1 answer

0 votes

Sorry someone is so late getting back to you.

Can you expand on what doesn't work? Are you getting some sort of error response?

Note that this token is temporary and not the recommended approach for rest authentication. You can't generate that token once, store it in your code and re-use it forever.

Generally, if a program or script has the username/password to be able to authenticate and generate a token for use in subsequent calls, then it's just as easy to always include these parameters in the authorization header for all api calls. See basic authentication

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

An update on Confluence Cloud customer feedback – June 2022

Hi everyone, We’re always looking at how to improve Confluence and customer feedback plays an important role in making sure we're investing in the areas that will bring the most value to the most c...

186 views 1 3
Read article

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