> For the complete documentation index, see [llms.txt](https://docs.veedna.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.veedna.com/deploying-lineaje/saas-deployment/integrations/source-code-management-scm-as-source/private-code-repositories/configure-bitbucket-credentials.md).

# Configure Bitbucket credentials

Bitbucket configuration requires "User Name" and "Access Token".

Bitbucket supports two types of access tokens depending on the access privileges. There are two types of tokens that can be generated based on your access rights to Bitbucket.

## Creating App password

Refer [Bitbucket Docs](https://support.atlassian.com/bitbucket-cloud/docs/create-an-app-password/) to learn about creating App password.

* Go to [bitbucket.org](https://bitbucket.org/).
* Go to your repository.
* Select the Settings cog in the upper-right corner of the top navigation bar.
* Under **Personal settings**, select **Personal Bitbucket settings.**
* On the left sidebar, select App passwords.
* Select Create app password, select permissions and save.
* Set the "User Name" in Lineaje configuration to your Bitbucket username. Please note that bitbucket username may not be the same as your email id.
* Add the newly generated token as "Access Token" in Lineaje configuration.

## Creating Access Tokens

Refer [Bitbucket Docs](https://support.atlassian.com/bitbucket-cloud/docs/access-tokens/) to learn about creating Repository/Project/Workspace Access Tokens and [creating](https://support.atlassian.com/bitbucket-cloud/docs/create-a-repository-access-token/) the repository tokens.

* Go to [bitbucket.org](https://bitbucket.org/).&#x20;
* Go to your repository.
* Click Repository Settings.
* Select Access tokens.
* Press Create Repository Access Token.
* Create a token name.
* Select the repository token permissions.
* Click the Create button.
* Copy the token and save it somewhere memorable. The token will be inaccessible once you leave the page.
* As per the Bitbucket docs, set the "User Name" to "**x-token-auth**" in Lineaje configuration.
* Add the newly generated token as "Access Token" in Lineaje configuration.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.veedna.com/deploying-lineaje/saas-deployment/integrations/source-code-management-scm-as-source/private-code-repositories/configure-bitbucket-credentials.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
