# BitBucket

Connecting your BitBucket account to Hatchbox for deploying apps is pretty straightforward.

We'll use a BitBucket App Password to clone your app and add webhook deployments.

To create an App Password, visit [the App Password section in your BitBucket account](https://bitbucket.org/account/admin/app-passwords) and create a key with the following permissions: Account:Write, Pull Request:Read and Webhooks.

![](/files/-LkxwKMnDnQfxuHKxRQp)

Account:Write allows us to add SSH Keys from each cluster to your Bitbucket account. This lets your clusters clone repositories you have access to.

Webhooks and PullRequests:Read allow us to enable Webhook deployments.

After you click Create, you'll be presented with the BitBucket App Password. Copy and paste this into the Connected Accounts section of [your Hatchbox settings](https://www.hatchbox.io/users/edit).&#x20;

Hit save and you're ready to deploy with BitBucket!


---

# 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://hatchbox.gitbook.io/hatchbox/apps/bitbucket.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.
