# Bitbucket Cloud Integration

## 1. **Create an Atlassian API token**

1. Navigate to [Atlassian Account – Security → API tokens](https://id.atlassian.com/manage-profile/security/api-tokens).&#x20;
2. Click **Create API token with scopes**.

<figure><img src="/files/u7wqNjc1JAZahfxECbNC" alt=""><figcaption></figcaption></figure>

3. Name your token and choose an expiration date.

<figure><img src="/files/gsArWjU5HhbLZBjPS4hz" alt=""><figcaption></figcaption></figure>

4. Select Bitbucket from the app list.

<figure><img src="/files/RF6mTKVcN5BqzAKs4mUm" alt=""><figcaption></figcaption></figure>

5. Select the scopes as shown below:<br>

<figure><img src="/files/ge8h9S4kmJTXxiJ0mu6S" alt=""><figcaption></figcaption></figure>

6. Review the token and complete the token creation process.

## **2. Install Bitbucket Cloud Addon on Oobeya** :jigsaw:&#x20;

1. Log in to Oobeya with an *Administrator* account.
2. Navigate to **Integrations** and select the **Bitbucket Cloud** addon and then click the **"Install"** button.&#x20;

![](/files/7DWsU9dZaV7yJjL6CV3A)

## **3. Add A New Data Source** :electric\_plug:&#x20;

1\. Navigate to **Data Sources**, and select Bitbucket Cloud to add a new data source.&#x20;

![](https://firebasestorage.googleapis.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MGIlBSTjQtZxUoFwUx4%2Fuploads%2FR6StYegMSpYq1AvucXED%2Ffile.png?alt=media)

2\. Click the **"New Data Source"** button and fill in the form by using the *API Token (instead of the App Password, which will be changed in the next release),* which was generated on Bitbucket Cloud in the first step.&#x20;

**Data Source Name:** A custom name for your data source (e.g., "Bitbucket Cloud").&#x20;

**Username:** E-mail account used for Atlassian.

**App Password:** API Token created in the previous steps.

**Workspace:** Your workspace on Bitbucket Cloud.

<figure><img src="/files/j5WgHfzhXFaZ3toNKurI" alt=""><figcaption></figcaption></figure>

3\. Click the **"Test Connection"** button to verify the connection.

## **Ready to Connect** :rocket:&#x20;

Now Oobeya is connected with your own Bitbucket Cloud account to get the real-time statistics of your code repositories to track each development activity.

## **Next Steps** :dart:&#x20;

* [Add a new Widget](/dashboards/adding-a-new-widget.md)
* [Create a new Gitwiser Analysis](/gitwiser-repo-analytics/settings-for-git-analytics/initialize-development-analytics.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.oobeya.io/integrations/all-integrations/scm-addons/bitbucket-cloud-integration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
