Bitbucket Cloud can be customized and extended by creating apps. Apps can:
integrate with an external service,
add new features,
update settings and
retrieve information from Bitbucket.
Options for integrating with Bitbucket Cloud
You have four main options for integrating with Bitbucket Cloud:
Build a Bitbucket app on Forge, our recommended platform for building secure,
reliable, and scalable apps.
Call the REST API
via scripts or other API clients to automate operations in Bitbucket Cloud not otherwise available
through the user interface.
Develop an Atlassian Connect app that
integrates in the Bitbucket Cloud UI to add contextual information or functions.
Develop a pipe for Bitbucket Pipelines
that can integrate with an external system to deploy code, scan your code, call other services or
implement other functionality.
Forge apps
Forge is our recommended platform for building apps. It’s designed to
revolutionize how Atlassian cloud products are customized, extended, and integrated.
To start building a Bitbucket app with Forge, see:
Forge in 5, a short YouTube video about the
Forge platform.
Connect apps
Before you build with Connect, consider Forge
We recommend Forge for building Atlassian cloud apps. Forge lets you host apps on infrastructure that is provisioned, managed, monitored, and scaled automatically by Atlassian.
Atlassian Connect is a framework for building apps for Jira, Confluence, and Bitbucket Cloud. It
remains an option for developers who want complete control over the tech stack and infrastructure,
for example, projects that require complex storage or compute hosting.
To start building a Bitbucket app with Connect, see:
Apps built without Forge or Connect can still access data and create content through the Bitbucket
APIs. These apps can use OAuth 2.0 (3LO) or basic auth to pass information between your app and
Bitbucket, depending on your security needs. See the Security section below for more
details.
Note that Forge and Connect are required to implement certain functionality in apps. For example,
only Forge and Connect apps can extend the user interface of products.
Using the APIs
You can use the Bitbucket APIs in Bitbucket apps, as well as in scripts, API clients, or other
methods of making calls.
REST API allows you to access and update Bitbucket
entities, such as commits and pull requests.
Forge JavaScript API provides additional functionality to
the Forge platform so that you can interact with REST endpoints and to store data.
Connect JavaScript API lets you use iframes with
your Connect app, so that your iframe can call APIs, store cookies, access user info, and more.
Atlassian development guidelines
Follow our design guidelines to make your app consistent with Atlassian's products.
Atlassian Design guidelines
Since Forge and Connect apps can insert content directly into the user interface, it's important
that apps are visually compatible with Atlassian design.
UI Kit - wide range of pre-built and customizable
components that align with Atlassian's design standards. Available only when building with Forge.
Atlaskit - library of reusable front-end UI components.
Available when building a Forge Custom UI app.
Security
There are a few basic options for security, depending on what sort of app you are trying to make:
Forge apps use OAuth 2.0 when authenticating with Bitbucket. Scopes are an OAuth 2.0 mechanism
that limits an app's access to a user's account. The Forge platform also provides managed APIs to
make requests on behalf of the user, meaning that third-party code is never trusted with user
credentials.
Connect apps have HTTPS and JWT authentication built in to secure communication between your app,
Bitbucket, and the user. Our Connect toolkits, Atlassian Connect Express (ACE) and Atlassian Connect
for Spring Boot, handle most of the security setup for new apps.
OAuth 2.0 (3LO) apps use OAuth 2.0 (3LO) to pass permissions and data from Bitbucket.
Basic auth is supported for making API calls via App Passwords and Access Tokens.
You can publish your Bitbucket Connect app on the Atlassian Marketplace so other cloud users can
install it, or list it privately if you don't intend to distribute your code. Private listings use
secret tokens that you can generate yourself.
Examples and resources
Check out our example apps and patterns for app ideas and strategies, or see some tutorials on more advanced topics:
When you visit any website, it may store or retrieve information on your browser, mostly in the form of cookies. This information might be about you, your preferences or your device and is mostly used to make the site work as you expect it to. The information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies. Click on the different category headings to find out more and change our default settings. However, blocking some types of cookies may impact your experience of the site and the services we are able to offer.
More information
Strictly Necessary Cookies
Always Active
These cookies are necessary for the website to function and cannot be switched off in our systems. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms. You can set your browser to block or alert you about these cookies, but some parts of the site will not then work. These cookies do not store any personally identifiable information.
Targeting Cookies
Always Active
These cookies may be set through our site by our advertising partners. They may be used by those companies to build a profile of your interests and show you relevant adverts on other sites. They are based on uniquely identifying your browser and internet device. If you do not allow these cookies, you will experience less targeted advertising.
Functional Cookies
Always Active
These cookies enable the website to provide enhanced functionality and personalisation. They may be set by us or by third party providers whose services we have added to our pages. If you do not allow these cookies then some or all of these services may not function properly.
Performance Cookies
Always Active
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us to know which pages are the most and least popular and see how visitors move around the site. If you do not allow these cookies we will not know when you have visited our site, and will not be able to monitor its performance.