> For the complete documentation index, see [llms.txt](https://docs.walnutai.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.walnutai.ai/getting-started/projects/create-a-new-project/external-data-and-connections/how-to-integrate-bitbucket-with-walnutai.md).

# How to Integrate Bitbucket with WalnutAI?

**Steps to Generate a Bitbucket API Token**

* Log in to your Bitbucket account.
* Click your profile avatar (top right).
* Select Account settings.

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

* Navigate to Security → Create and manage API tokens.

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

* Click Create API token.
* Configure the required permissions.
* Click Create and copy the API token

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

#### Connect Bitbucket to WalnutAI

* Log in to WalnutAI.
* Go to Integrations and select Bitbucket.

<figure><img src="/files/9pSbuhMZ6M5HWiMLivUt" alt=""><figcaption></figcaption></figure>

* Paste the copied Token, then enter the email ID and username associated with your account.
* Click Validate and Fetch to verify the token and retrieve repository details.

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

* Select the required repositories and relevant branches.
* Click Connect to complete the integration.
