Skip to main content

Bitbucket

Integrate Bitbucket with Torq to enhance your automated workflows.

Updated today

Bitbucket provides collaboration tools and Git-repository management and collaboration tools for dev teams.

Torq enables quick and easy integration with Bitbucket, so you can automate anything and everything within moments. Torq's public Bitbucket Steps include:

  • Generate Bitbucket Access Token

  • Get Repository

  • Get Root Directory Contents

  • List Repository Commits

  • And more...

If you don't see a Step you need, you can create your own in various ways, such as using the Send an HTTP Request Step or Torq’s Step Builder, and share it across your organization.

Use Bitbucket Steps in Torq

Generate a Bitbucket API Key

API tokens must have the necessary scopes to access Bitbucket APIs.

  1. Open Bitbucket: Navigate to Settings > Atlassian account settings > Security and click Create and manage API tokens.

  2. Create an API token: Click Create API token with scopes.

  3. Configure the token:

    1. Enter a meaningful name.

    2. Select an expiration date that is less than a year away.

    3. Click Next.

    4. Select Bitbucket as the app.

    5. Click Next.

    6. Select the necessary Bitbucket scopes.

    7. Click Next.

    8. Review the token and click Create token.

  4. Finalize: Copy the token to save it for later.

Create a Bitbucket Steps Integration in Torq

  1. Navigate to the integration: Go to Build > Integrations > Steps > Bitbucket and click Add Instance.

  2. Configure the integration:

    1. Give the integration a unique and meaningful name.

    2. Enter the email address of the user who created the API token for the client key.

    3. Paste the Bitbucket client secret that you copied earlier.

  3. Finalize: Click Add.


Templates

Now that you've added your integrations check out these specially crafted templates by Torq's security experts. Visit Torq's template library for more.

Did this answer your question?