Add an API token to Sourcetree or another application

For 3rd party applications that use currently App passwords to authenticate with Bitbucket, you can migrate to API tokens by replacing the username with your Atlassian email and substitute your app password with a newly generated API token.

Sourcetree

To add your API token to Sourcetree:

  1. Go to the tab where you'll add or edit your account details:

    1. (Windows) Go to Tools > Options. From the Options dialog, select the Authentication tab.

    2. (macOS) Go to Sourcetree > Preferences. From the dialog that options, select the Accounts tab.

  2. Select Edit to edit your account details or Add to add a new one.

  3. From Authentication or Auth Type, select Basic, and enter your Atlassian email if it's not already there.

  4. Enter the API token you just created as your Password. If you're on Windows, you'll need to select Refresh Password first.

  5. Select OK or Save to save your account details.

Renovate

To add your API token to the Renovate bot:

  1. Set your API token as a password in your config.js file.

  2. Set your API token as an environment variable RENOVATE_PASSWORD.

  3. Set your API token when you run Renovate in the CLI with --password=.

  4. Set the username for the bot account as your Atlassian email.

Other 3rd-party applications

To add your API token to another application, see the application's documentation for how to apply the API token.

For other applications that use App passwords to authenticate with Bitbucket, replace your username with your Atlassian email and substitute your previous app password with a newly generated API token.

Still need help?

The Atlassian Community is here for you.