> For the complete documentation index, see [llms.txt](https://docs.hivel.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hivel.ai/integrations/version-control/bitbucket-integration/bitbucket-integration-oauth.md).

# BitBucket Integration - OAUTH

**What data does Hivel require access to?**

Hivel securely accesses the last 60-90 days of commits and pull requests from active repositories.

**Authorization Control**

We utilize Bitbucket's OAuth for secure login. You retain full control and can revoke access at any time via Bitbucket's authorized apps settings.

**Pre-requisites**

A service account with *write* access to all applicable Bitbucket repositories. Write access is essential for publishing webhooks, enabling real-time data synchronization.

**Sign in to Hivel**

1. Navigate to the Hivel [sign-up page](https://app.hivel.ai/signup)
2. Add your work email id (If you'd like to use your personal email id please contact <support@hivel.ai)><br>

   <figure><img src="/files/gao9TgubChgJqc9oeP8o" alt=""><figcaption></figcaption></figure>
3. Now, you can use your Google or Microsoft login with your work email id; or create a password.
4. Create your Company Profile, and click '**Continue**.<br>

   <figure><img src="/files/ogiBvVcUjIqfm2JdolkM" alt=""><figcaption></figcaption></figure>
5. Once you've successfully created your Company Profile you will be redirected to the Integrations Page.
6. Select Bitbucket, and log in to your company's Bitbucket account using a service account.<br>

   <figure><img src="/files/9nEepejyv2j8Uqj2IrXw" alt=""><figcaption></figcaption></figure>
7. Authorize Hivel on the ensuing Bitbucket redirect.
8. Click "Grant" for desired workspaces.<br>

   <figure><img src="/files/W2X1F9BAPzMPb770Vf6k" alt=""><figcaption></figcaption></figure>
9. After authorization, you'll be redirected back to Hivel.
10. Once your Bitbucket is successfully integrated, we will start to pull data. It will take between 2 - 48 hours for the complete sync, depending on the volume of the data.
