> 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-walnut.md).

# How to Integrate Bitbucket with Walnut?

**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 Walnut

* Log in to Walnut.
* 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.

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

* Click Connect to complete the integration.

&#x20;


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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.walnutai.ai/getting-started/projects/create-a-new-project/external-data-and-connections/how-to-integrate-bitbucket-with-walnut.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.
