Bitbucket integration

Source control: repos, pull requests, commits, branches, pipelines, deployments

Help CentreConnectors

Overview

Bitbucket is Atlassian's Git hosting + CI/CD platform – Atlassian's GitHub equivalent, tightly integrated with Jira. The Automize Bitbucket connector covers repositories, branches, commits, pull requests, and pipelines.

  • Regions: Bitbucket Cloud is global – api.bitbucket.org. Bitbucket Data Center (self-hosted) uses a different API (Stash REST) – separate config. Connector targets Cloud.
  • Plans: Free, Standard, Premium – all expose the API. Premium adds enforced merge checks, IP allow lists, advanced security.

Setting up the connection

Auth type: Bearer Token.

  1. Sign in to Bitbucket → Personal Settings → App passwords → Create.
  2. Select scopes (repository read/write, pull requests read/write, pipelines read).
  3. Copy the app password.
  4. In Automize, open Settings → Connectors → Bitbucket → Add connection. Use your Bitbucket username + app password as the bearer token (the connector may concatenate them as username:app_password).

Find your credentials at https://bitbucket.org/account/settings/app-passwords/.


Rate limits

Bitbucket enforces 1,000 requests/hour per user. Higher with OAuth flow via team apps. Connector retries 429 with Retry-After.


Data model

Workspace ─┬─ Projects (optional grouping)
           └─ Repositories ─┬─ Branches ─── Commits
                            ├─ Pull Requests ─── Comments + Reviews
                            ├─ Pipelines (CI/CD runs)
                            └─ Webhooks

workspace is the Bitbucket workspace slug (e.g. yourcompany). repo_slug
is the repo's URL slug.

Available operations

9 operations available. Click any row to jump to its detail.

OperationCategoryWhat it does
Create Pull RequestGeneralCreate a pull request
Get Pull RequestGeneralGet PR details
Get RepoGeneralGet repository details
List BranchesGeneralList branches
List CommitsGeneralList commits
List PipelinesGeneralList CI/CD pipelines
List Pull RequestsGeneralList pull requests
List ReposGeneralList repositories for a workspace
Trigger PipelineGeneralTrigger a pipeline run

Operations

Create Pull Request

Create a pull request

ParameterRequiredTypeDescription
Workspace workspaceYestext
Repo Slug repo_slugYestext
Title titleYestext
Source sourceYestext
Destination destinationYestext
Description descriptionYestext

Tips

  • title + source.branch.name + destination.branch.name.
  • description in Markdown. reviewers[]: usernames of reviewers to assign.

Get Pull Request

Get PR details

ParameterRequiredTypeDescription
Workspace workspaceYestext
Repo Slug repo_slugYestext
Pr Id pr_idYestext

Tips

  • Returns PR + source + destination branches + author + reviewers.

Get Repo

Get repository details

ParameterRequiredTypeDescription
Workspace workspaceYestext
Repo Slug repo_slugYestext

Tips

  • workspace + repo_slug. Returns full repo metadata.

List Branches

List branches

ParameterRequiredTypeDescription
Workspace workspaceYestext
Repo Slug repo_slugYestext

Tips

  • Pages via page. Filter by name.

List Commits

List commits

ParameterRequiredTypeDescription
Workspace workspaceYestext
Repo Slug repo_slugYestext

Tips

  • Page via page. Filter by branch (include=<branch>) and date.

List Pipelines

List CI/CD pipelines

ParameterRequiredTypeDescription
Workspace workspaceYestext
Repo Slug repo_slugYestext

Tips

  • Returns CI/CD runs. Filter by sort, target.ref_name (branch).

List Pull Requests

List pull requests

ParameterRequiredTypeDescription
Workspace workspaceYestext
Repo Slug repo_slugYestext

Tips

  • Filter by state (OPEN, MERGED, DECLINED, SUPERSEDED).
  • Multiple states: state=OPEN&state=MERGED.

List Repos

List repositories for a workspace

ParameterRequiredTypeDescription
Workspace workspaceYestext

Tips

  • workspace required. Page via page + pagelen (max 100).
  • Filter via q parameter: ?q=name~"foo".

Trigger Pipeline

Trigger a pipeline run

ParameterRequiredTypeDescription
Workspace workspaceYestext
Repo Slug repo_slugYestext
Target targetYestext

Tips

  • target: {ref_type: 'branch', ref_name: 'main', type: 'pipeline_ref_target'}.
  • selector for custom pipelines (defined in bitbucket-pipelines.yml).

FAQ

Why does my app password fail?
Bitbucket requires username + app password (basic auth shape). The connector handles this but verify the username is your Bitbucket login name (NOT email). Also verify the app password has the right scopes.
OAuth 2 vs app password?
App password is fine for personal automation. OAuth 2 (via a Bitbucket OAuth consumer) is recommended for multi-user/org automation. App passwords don't expire – rotate manually.
Data Center / Server – same connector?
No. Server / Data Center uses the Bitbucket REST API (different endpoints + auth). This connector targets Cloud.

Related connectors

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or go live in 7 days.