# 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: 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.veedna.com/sbom360-osm/generate-an-sbom/source-code-management-scm-as-source/private-code-repositories/configure-bitbucket-credentials.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.
