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

Bitbucket Cloud App - Determine current installations


We are currently in the process of developing an external cloud app for Bitbucket but we ran into a snag. We have noticed that if the user uninstalls an app, the app is notified but if for some reason the app is not running, the uninstall succeeds, but the app doesn't know that. This can cause the app and Bitbucket to become out of sync.

We are essentially looking for a way to make sure that the app is able to sync up with Bitbucket. We are wondering if there is any way to get a list of installations for an app, possibly through an API call? We found this page that describes the licensing process for cloud apps and this page that describes the API calls but the response does not seem particularly helpful in this case.

Any help would be greatly appreciated!

1 answer

0 votes
seanaty Atlassian Team Oct 26, 2021

Bitbucket doesn't have an API to display the number of installations, unfortunately.

The best way to sync or check if a user has uninstalled (if you missed the callback) would to make a request to an endpoint that requires authentication. If you get a 401 back, this would mean that the application has been uninstalled. Be careful when developing this, however because you don't want to have a mistake in your authentication code and accidentally remove an installation.

Suggest an answer

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

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,263 views 2 9
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