Bitbucket integration

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

Help Centre › Connectors

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: HTTP Basic.

  1. Atlassian retired Bitbucket app passwords. Use an API token instead.
  2. In your Atlassian account security settings, create an API token with scopes and pick Bitbucket as the app.
  3. Give it only the scopes the process needs – for example read and write on repositories and pull requests, and read on pipelines.
  4. In Automize, open Settings → Connectors → Bitbucket → Add connection.
  5. Enter your Atlassian account email in Atlassian account email and the API token in API token.

Find your credentials at https://id.atlassian.com/manage-profile/security/api-tokens.


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

My old app password stopped working.
Atlassian retired app passwords. Create an API token with Bitbucket scopes, then put your Atlassian account email in Username and the token in Password.
Why does my API token fail?
Check Username is your Atlassian account email, not your Bitbucket user name, and that the token has the scopes the step needs. API tokens expire, so make a new one when it runs out.
Data Center / Server – same connector?
No. Server / Data Center uses the Bitbucket REST API (different endpoints + auth). This connector targets Cloud.

Related connectors

Get started

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or have your first automation working in 7 days.