Sign inStart your trial

Bitbucket

Reference

107 actions for Bitbucket workflows.

01. Operations

Act on Bitbucket from a workflow

Operations are the actions a workflow can take in Bitbucket, grouped by category. Each lists its method, parameters, and a template you can drop it into.

Branches

4 operations

Manage version control branches and tags within repositories. These operations let you create new branches, retrieve branch information, list all branches and tags, and check repository branching models—essential for coordinating collaborative development workflows.

Action

Create a branch

BITBUCKET_CREATE_BRANCH

Automatically create a new branch in your Bitbucket repository to organize feature development, bug fixes, or experimental work without manual setup in the UI.

4 input
Action

Get branch

BITBUCKET_GET_BRANCH

Retrieve detailed information about a specific branch in your Bitbucket repository, including its current commit and metadata. Use this to verify branch status, track which commits are deployed, or confirm a branch exists before performing actions on it.

3 input
Action

Get effective branching model

BITBUCKET_GET_REPOSITORIES_EFFECTIVE_BRANCHING_MODEL

Retrieves the current branching model configuration for a Bitbucket repository, including inherited project-level settings, to understand your team's branch workflow structure.

2 input
Action

Get Repository Branching Model

BITBUCKET_GET_REPOSITORIES_BRANCHING_MODEL

Retrieve your repository's branching strategy and branch naming conventions to understand how code flows through your development workflow.

2 input

Comments

8 operations

Handle discussions across commits, pull requests, snippets, and issues. Use these operations to create, retrieve, update, and delete comments in various contexts, enabling teams to maintain code review conversations and track feedback throughout the development process.

Action

Create an issue comment

BITBUCKET_CREATE_ISSUE_COMMENT

Add comments to existing Bitbucket issues to provide updates, feedback, or ask questions on code discussions and bug reports.

4 input
Action

Create pull request comment

BITBUCKET_CREATE_PULL_REQUEST_COMMENT

Add comments to pull requests in Bitbucket to provide code feedback, ask questions, or discuss changes with your team. This helps streamline code reviews and keep all feedback organized in one place.

6 input
Action

Create snippet comment

BITBUCKET_CREATE_SNIPPET_COMMENT

Add comments or replies to code snippets in Bitbucket to provide feedback, ask questions, or collaborate with team members on shared code segments.

4 input
Action

Delete commit comment

BITBUCKET_DELETE_COMMIT_COMMENT

Remove a comment you posted on a commit when it's no longer relevant, incorrect, or needs to be cleaned up from your repository's history.

4 input
Action

Delete pull request comment

BITBUCKET_DELETE_PULL_REQUEST_COMMENT

Permanently removes a comment from a pull request, allowing you to clean up outdated feedback, incorrect suggestions, or unwanted discussions during code reviews.

4 input
Action

Get commit comment

BITBUCKET_GET_COMMIT_COMMENT

Retrieves the full details of a specific comment on a commit, including the message, author, and when it was posted. Use this to review feedback or discussions tied to your code changes without having to browse through your entire commit history.

4 input
Action

Get commit comments

BITBUCKET_GET_REPOSITORIES_COMMIT_COMMENTS

Retrieve all comments and feedback that team members have left on a specific commit, including both general discussions and inline code notes. This helps you track code review conversations and implementation decisions in one place.

5 input
Action

Get pull request comment

BITBUCKET_GET_PULL_REQUEST_COMMENT

Retrieve the full details of a specific comment from a pull request, including its content, author information, and when it was posted. This helps you access individual feedback or discussions without loading the entire pull request.

4 input

Commits

7 operations

Access detailed commit information including diffs, changes, build statuses, and commit history. These operations help you track code changes, review what was modified, check build results, and navigate commit lineage for auditing and troubleshooting purposes.

Action

Get Commit Build Status

BITBUCKET_GET_COMMIT_BUILD_STATUS

Retrieve the build status of a specific commit to see if tests passed, failed, or are still running. This helps you verify code quality before merging or deploying.

4 input
Action

Get Commit Changes

BITBUCKET_GET_COMMIT_CHANGES

Retrieve all files and changes made in a specific commit, including details about lines added, removed, and modification status. This helps you understand exactly what code changes were made in each commit for review and audit purposes.

5 input
Action

Get Commit Diff

BITBUCKET_GET_COMMIT_DIFF

Retrieve detailed code changes between commits or within a single commit in your Bitbucket repository. Use this to understand exactly what code was modified, added, or removed without having to review files manually.

10 input
Action

Get commit statuses

BITBUCKET_GET_REPOSITORIES_COMMIT_STATUSES

Retrieves all build and deployment statuses for a specific commit, allowing you to check CI/CD pipeline results and test outcomes at a glance.

3 input
Action

Get Repositories Merge Base

BITBUCKET_GET_REPOSITORIES_MERGE_BASE

Finds the common ancestor commit between two branches or commits in your Bitbucket repository, helping you understand what changes are unique to each branch before merging.

3 input
Action

Get Repository Commit

BITBUCKET_GET_REPOSITORIES_COMMIT

Retrieve detailed information about a specific commit in your Bitbucket repository, including author details, commit message, timestamp, and related metadata to track code changes and history.

3 input
Action

List commits from revision (POST)

BITBUCKET_CREATE_REPOSITORIES_COMMITS2

Retrieve a list of commits from a specific revision in your Bitbucket repository, with support for complex filtering parameters that may exceed URL length limits.

8 input

Deployments

2 operations

Retrieve deployment environments and their configurations. These operations provide access to deployment targets, environment variables, and deployment history, supporting automation workflows that need to track or manage application releases.

Action

Get deployment environment variables

BITBUCKET_GET_DEPLOYMENT_ENVIRONMENT_VARIABLES

Retrieve configuration variables that are set for a specific deployment environment in your Bitbucket repository, allowing you to review what settings are active for that environment.

3 input
Action

Get Repository Environment

BITBUCKET_GET_REPOSITORIES_ENVIRONMENTS2

Retrieve detailed configuration and settings for a specific deployment environment in your Bitbucket repository, including deployment rules and restrictions.

3 input

Issues

3 operations

Create, manage, and track issues in repositories. These operations enable your automation to create work items, update issue status and metadata, delete resolved issues, and monitor team voting, keeping project management integrated with your development workflow.

Action★ Featured

Create an issue

BITBUCKET_CREATE_ISSUE

Create a new issue in your Bitbucket repository to track bugs, feature requests, or tasks with automatic validation of assignees and project references.

11 input
Action

Check if user voted for issue

BITBUCKET_GET_REPOSITORIES_ISSUES_VOTE

Verify whether you've already voted on a specific issue in your Bitbucket repository to avoid duplicate votes and track your engagement.

3 input
Action

Delete issue

BITBUCKET_DELETE_ISSUE

Permanently remove a specific issue from your Bitbucket repository to clean up resolved, duplicate, or outdated tracked items.

3 input

Pipelines

5 operations

Configure and monitor continuous integration and deployment pipelines. These operations let you manage pipeline variables, view pipeline runs and schedules, access runner information and SSH keys, and retrieve pipeline artifacts like caches—critical for automating CI/CD workflows.

Action

Create team pipeline variable

BITBUCKET_CREATE_TEAMS_PIPELINES_CONFIG_VARIABLES

Set up environment variables and configuration values that are automatically available to all your team's automated pipelines, eliminating the need to configure the same settings repeatedly across different projects.

4 input
Action

Create user pipeline variable

BITBUCKET_CREATE_USERS_PIPELINES_CONFIG_VARIABLES

Creates account-level configuration variables that can be reused across all your Bitbucket repositories, eliminating the need to set the same values repeatedly for each project.

4 input
Action

Delete user pipeline variable

BITBUCKET_DELETE_USER_PIPELINE_VARIABLE

Remove user-level pipeline variables that are no longer needed, helping you keep your CI/CD configuration clean and organized.

2 input
Action

Get repository pipelines caches

BITBUCKET_GET_REPOSITORIES_PIPELINES_CONFIG_CACHES

Retrieve all configured caches for your repository's CI/CD pipelines, helping you understand what build artifacts and dependencies are being cached to optimize pipeline performance.

2 input
Action

Get specific pipeline

BITBUCKET_GET_REPOSITORIES_PIPELINES2

Fetch detailed information about a specific pipeline execution in your Bitbucket repository, including its current status, build number, and test results. This helps you monitor the health and progress of individual builds without manually checking the Bitbucket interface.

3 input

Pull Requests

6 operations

Manage the full pull request lifecycle from creation to merge. These operations cover creating PRs, retrieving details and diffs, approving changes, requesting reviews, tracking task lists, and checking status—enabling comprehensive code review automation.

Action★ Featured

Create a pull request

BITBUCKET_CREATE_PULL_REQUEST

Automatically create pull requests in Bitbucket to streamline code review workflows and maintain organized development branches without manual setup.

8 input
Action

Approve Pull Request

BITBUCKET_APPROVE_PULL_REQUEST

Formally approve a pull request to signal that you've reviewed the changes and they're ready to merge. This is essential for maintaining code quality and facilitating team collaboration in your development workflow.

3 input
Action

Get Pull Request

BITBUCKET_GET_PULL_REQUEST

Retrieve detailed information about a specific pull request, including status, reviewers, and changes, to understand the current state of code reviews and collaboration.

3 input
Action

Get Pull Request Commits

BITBUCKET_GET_PULL_REQUEST_COMMITS

Retrieves all commits included in a pull request, allowing you to review the specific changes and work history within that PR without navigating Bitbucket directly.

5 input
Action

Get Pull Request Diff

BITBUCKET_GET_PULL_REQUEST_DIFF

Retrieve the complete code changes from a pull request in Bitbucket to review what was modified. This helps you understand the differences between branches before approving or merging code.

4 input
Action

Get Pull Request Diffstat

BITBUCKET_GET_PULL_REQUEST_DIFFSTAT

Retrieve detailed statistics about changes in a pull request, including which files were modified and how many lines were added or removed in each file. This helps you quickly understand the scope and impact of code changes without reviewing the entire diff.

5 input

Reports

5 operations

Create and manage commit quality reports and annotations. These operations let you add code analysis results, insights, and annotations to commits, supporting automation that surfaces code quality metrics and compliance checks within the repository.

Action

Create commit report annotations

BITBUCKET_CREATE_REPOSITORIES_COMMIT_REPORTS_ANNOTATIONS

Add code analysis findings like vulnerabilities, bugs, and code smells directly to your commit reports, helping your team catch quality issues before code reaches production. This enables automated feedback on code changes without leaving your development workflow.

5 input
Action

Delete commit report annotation

BITBUCKET_DELETE_REPOSITORIES_COMMIT_REPORTS_ANNOTATIONS

Remove unwanted annotations from your commit code analysis reports to keep your repository documentation accurate and up-to-date. This helps maintain clean feedback history by deleting specific comments or findings that are no longer relevant.

5 input
Action

Get commit report

BITBUCKET_GET_REPOSITORIES_COMMIT_REPORT

Retrieves a specific analysis report attached to a commit, such as security scans, code coverage, or test results. This helps you track code quality and identify issues in your project without manually checking each commit.

4 input
Action

Get commit report annotation

BITBUCKET_GET_REPOSITORIES_COMMIT_REPORTS_ANNOTATIONS

Retrieve detailed information about a specific code analysis finding (such as a vulnerability, code smell, or bug) from a commit report by its ID. This helps you review and understand individual issues identified in your code reviews.

5 input
Action

Get Commit Reports

BITBUCKET_GET_REPOSITORIES_COMMIT_REPORTS

Retrieve analysis results, test reports, security scans, and code coverage data linked to a specific commit in your Bitbucket repository. This helps you track code quality and testing metrics for each change in your project.

3 input

Repositories

6 operations

Retrieve repository metadata, file contents, and structure information. These operations give you access to repository details, file browsing, commit history for files, watchers, and version information—useful for workflows that need repository intelligence.

Action

Browse repository path

BITBUCKET_BROWSE_REPOSITORY_PATH

Access and view file contents or directory listings from your Bitbucket repository at any point in your project's history. Use this to inspect code, documentation, or assets without cloning the entire repository.

10 input
Action

Create repository

BITBUCKET_CREATE_REPOSITORY

Creates a new Git repository in your Bitbucket workspace to organize and version control your code projects. This helps you establish a central place to store, manage, and collaborate on source code.

9 input
Action

Delete repository

BITBUCKET_DELETE_REPOSITORY

Permanently removes a repository from your Bitbucket workspace. This action cannot be undone, and any forks of the repository remain unaffected.

2 input
Action

Get file commit history

BITBUCKET_GET_REPOSITORIES_FILEHISTORY

Retrieves the complete commit history for a specific file, showing all changes, who made them, and when they occurred. Use this to track file evolution, identify responsible parties for modifications, and understand when critical changes were introduced.

9 input
Action

Get file from repository

BITBUCKET_GET_FILE_FROM_REPOSITORY

Retrieves the content of a specific file from your Bitbucket repository at any point in time, using commit references, branches, or tags. This lets you access code, documentation, or configuration files programmatically without manually downloading them.

4 input
Action

Get raw file content

BITBUCKET_GET_RAW_FILE_CONTENT

Retrieves the raw content of a file from a Bitbucket repository at a specific commit, branch, or tag, allowing you to access and read file contents programmatically without viewing the Bitbucket interface.

4 input

Security

1 operation

Access security configuration for authentication and identity. These operations retrieve SSH keys and OIDC configuration, supporting secure automation setup and identity verification in pipeline environments.

Action

Get OpenID configuration for OIDC in Pipelines

BITBUCKET_GET_OPENID_CONFIGURATION

Retrieves the OpenID Connect configuration needed to securely authenticate Bitbucket Pipelines with external services like AWS, Google Cloud, or HashiCorp Vault without storing credentials in your repository.

1 input

Snippets

1 operation

Work with code snippets stored in Bitbucket. These operations let you list snippets, retrieve snippet content, and manage watch status, enabling workflows that share or reference reusable code fragments.

Action

Delete snippet watch

BITBUCKET_DELETE_SNIPPETS_WATCH

Stops receiving notifications for a specific code snippet by removing your watch. Use this when you're no longer interested in updates about a particular snippet.

2 input

Users

1 operation

Retrieve user profile and contact information. These operations fetch current user details, email addresses, and user metadata, helping you personalize workflows or validate user identity and communication preferences.

Action

Get current user (v2)

BITBUCKET_GET_CURRENT_USER2

Retrieves your complete Bitbucket profile information to verify your account details and access your account ID, username, and other profile data. Useful for confirming your identity and pulling your account information into other systems.

Webhooks

1 operation

Query available webhook event types. This operation lists events you can subscribe to for notifications, supporting setup and discovery of integration triggers.

Action

Get hook events

BITBUCKET_GET_HOOK_EVENTS

Retrieves all available webhook event types that can be monitored for a repository or workspace, helping you understand which actions you can automate. Use this to discover and configure automated workflows triggered by specific Bitbucket events.

1 input

Crm

57 operations
Action

Get pipeline steps

BITBUCKET_GET_REPOSITORIES_PIPELINES_STEPS

Retrieves all steps for a given pipeline.

3 input
Action

Get pull request comments

BITBUCKET_GET_REPOSITORIES_PULLREQUESTS_COMMENTS

Retrieves a paginated list of comments on a specific pull request in a Bitbucket repository.

6 input
Action

Get pull request statuses

BITBUCKET_GET_REPOSITORIES_PULLREQUESTS_STATUSES

Returns all build statuses (e.g., CI/CD pipeline results) for a specific pull request.

5 input
Action

Get pull requests activity log

BITBUCKET_GET_REPOSITORIES_PULLREQUESTS_ACTIVITY

Get paginated activity log for all pull requests in a repository.

4 input
Action

Get repositories src

BITBUCKET_GET_REPOSITORIES_SRC

Lists the contents of the root directory on the repository's main branch without needing to specify a commit or branch.

3 input
Action

Get repository

BITBUCKET_GET_REPOSITORY

Retrieves detailed information about a specific repository in a Bitbucket workspace.

2 input
Action

Get Repository Patch

BITBUCKET_GET_REPOSITORY_PATCH

Tool to retrieve the git patch content for a Bitbucket repository at a specified revision or commit range.

4 input
Action

Get repository pipeline runners

BITBUCKET_GET_REPOSITORIES_PIPELINES_CONFIG_RUNNERS

Retrieves the list of self-hosted runners configured for a repository's pipelines.

2 input
Action

Get repository pipeline schedules

BITBUCKET_GET_REPOSITORIES_PIPELINES_CONFIG_SCHEDULES

Retrieves configured pipeline schedules for a Bitbucket repository.

2 input
Action

Get repository pipeline variables

BITBUCKET_GET_REPOSITORIES_PIPELINES_CONFIG_VARIABLES

Retrieves repository-level pipeline variables for a specific Bitbucket repository.

6 input
Action

Get repository refs

BITBUCKET_GET_REPOSITORIES_REFS

Returns the branches and tags in the repository.

6 input
Action

Get repository SSH known hosts

BITBUCKET_GET_REPOSITORIES_PIPELINES_CONFIG_SSH_KNOWN_HOSTS

Retrieves repository-level SSH known hosts configured for Bitbucket Pipelines.

2 input
Action

Get repository watchers

BITBUCKET_GET_REPOSITORIES_WATCHERS

Retrieves a paginated list of all the watchers on the specified repository.

2 input
Action

Get snippet

BITBUCKET_GET_SNIPPET

Retrieves a specific Bitbucket snippet by its encoded ID from an existing workspace, returning its metadata and file structure.

3 input
Action

Get snippet watch status

BITBUCKET_GET_SNIPPETS_WATCH

Checks if the current user is watching a specific snippet.

2 input
Action

Get SSH keys for user

BITBUCKET_GET_SSH_LATEST_KEYS

Retrieves a paginated list of SSH keys for a specified Bitbucket user.

3 input
Action

Get tag

BITBUCKET_GET_REPOSITORIES_REFS_TAGS

Retrieves detailed information about a specific tag in a Bitbucket repository.

3 input
Action

Get user

BITBUCKET_GET_USER

Retrieves public profile information for a specific Bitbucket user by username or UUID.

1 input
Action

Get user email details

BITBUCKET_GET_USER_EMAILS2

Retrieves details about a specific email address for the authenticated user.

1 input
Action

Get user emails

BITBUCKET_GET_USER_EMAILS

Returns all the authenticated user's email addresses, both confirmed and unconfirmed.

Action

Get user permissions for repositories

BITBUCKET_GET_USER_PERMISSIONS_REPOSITORIES

Returns an object for each repository the caller has explicit access to, including their permission level.

2 input
Action

Get user permissions for workspaces

BITBUCKET_GET_USER_PERMISSIONS_WORKSPACES

Retrieves workspace memberships and permission levels for the authenticated user.

3 input
Action

Get user workspaces

BITBUCKET_GET_USER_WORKSPACES

Tool to retrieve all workspaces accessible to the authenticated user.

1 input
Action

Get workspace

BITBUCKET_GET_WORKSPACE

Retrieves detailed information about a specific Bitbucket workspace.

1 input
Action

Get Workspace Pull Requests by User

BITBUCKET_GET_WORKSPACES_PULLREQUESTS

Tool to get all workspace pull requests authored by a specified user.

5 input
Action

List all public repositories

BITBUCKET_LIST_REPOSITORIES

Retrieves a paginated list of all public repositories on Bitbucket.

6 input
Action

List branches

BITBUCKET_LIST_BRANCHES

Lists branches in a Bitbucket repository with optional server-side filtering by name pattern (BBQL) and sorting.

6 input
Action

List commits

BITBUCKET_LIST_COMMITS

Tool to retrieve a page of commits from a Bitbucket repository.

7 input
Action

List commits from revision

BITBUCKET_LIST_COMMITS_FROM_REVISION

Tool to list commits starting from a specific revision in a Bitbucket repository.

8 input
Action

List commits on master

BITBUCKET_LIST_COMMITS_ON_MASTER

Lists commits on the master branch of a Bitbucket repository.

4 input
Action

List deployments

BITBUCKET_LIST_DEPLOYMENTS

Lists deployments for a specified Bitbucket repository.

6 input
Action

List issues in a repository

BITBUCKET_LIST_ISSUES

Lists issues in a Bitbucket repository with optional filtering by state, priority, kind, or assignee.

8 input
Action

List pipelines

BITBUCKET_LIST_PIPELINES

Tool to find pipelines in a Bitbucket repository.

4 input
Action

List pull request tasks

BITBUCKET_LIST_PULL_REQUEST_TASKS

Lists all tasks associated with a pull request in a Bitbucket repository.

5 input
Action

List pull requests

BITBUCKET_LIST_PULL_REQUESTS

Lists pull requests in a specified, accessible Bitbucket repository, optionally filtering by state (OPEN, MERGED, DECLINED).

5 input
Action

List repositories in workspace

BITBUCKET_LIST_REPOSITORIES_IN_WORKSPACE

Lists repositories in a specified Bitbucket workspace, accessible to the authenticated user, with options to filter by role or query string, and sort results.

6 input
Action

List repository environments

BITBUCKET_LIST_REPOSITORIES_ENVIRONMENTS

List all deployment environments configured for a Bitbucket repository.

6 input
Action

List repository paths

BITBUCKET_LIST_REPOSITORY_PATHS

Lists file and directory entries under a repository path at a given revision, with optional breadth-first recursion via maxdepth for repository traversal and…

9 input
Action

List snippets

BITBUCKET_LIST_SNIPPETS

Returns all snippets accessible to the authenticated user.

3 input
Action

List tags

BITBUCKET_LIST_TAGS

Lists tags in a Bitbucket repository with optional server-side filtering by name pattern or commit hash (BBQL) and sorting.

6 input
Action

List versions

BITBUCKET_LIST_VERSIONS

Lists versions (milestones) in a Bitbucket repository's issue tracker.

6 input
Action

List workspace members

BITBUCKET_LIST_WORKSPACE_MEMBERS

Lists all members of a specified Bitbucket workspace; the workspace must exist.

3 input
Action

List workspace projects

BITBUCKET_LIST_WORKSPACE_PROJECTS

Lists projects in a specified Bitbucket workspace.

5 input
Action

List workspaces

BITBUCKET_LIST_WORKSPACES

Lists Bitbucket workspaces accessible to the authenticated user, optionally filtered and sorted.

4 input
Action

Merge Pull Request

BITBUCKET_MERGE_PULL_REQUEST

Tool to merge a Bitbucket Cloud pull request via the REST API.

6 input
Action

Request Pull Request Changes

BITBUCKET_REQUEST_PULL_REQUEST_CHANGES

Tool to request changes on a pull request as the authenticated user.

3 input
Action

Resolve pull request comment

BITBUCKET_RESOLVE_PULL_REQUEST_COMMENT

Tool to resolve or reopen a pull request comment thread.

5 input
Action

Search code in team repositories

BITBUCKET_SEARCH_TEAM_CODE

Search for code in repositories of a specified team.

4 input
Action

Search code in user repositories

BITBUCKET_SEARCH_USER_REPOSITORIES_CODE

Tool to search for code in the repositories of a specified user.

5 input
Action

Search code in workspace

BITBUCKET_GET_WORKSPACES_SEARCH_CODE

Tool to search for code in the repositories of the specified workspace.

5 input
Action

Update an issue

BITBUCKET_UPDATE_ISSUE

Updates an existing issue in a Bitbucket repository by modifying specified attributes; requires workspace, reposlug, issueid, and at least one attribute to…

12 input
Action

Update commit comment

BITBUCKET_UPDATE_REPOSITORIES_COMMIT_COMMENTS

Updates the contents of a comment on a commit.

5 input
Action

Update commit insight report

BITBUCKET_UPDATE_INSIGHTS_PROJECTS_REPOS_COMMITS_REPORTS

Create or update an insight report for a commit.

13 input
Action

Update commit report annotation

BITBUCKET_UPDATE_REPOSITORIES_COMMIT_REPORTS_ANNOTATIONS

Creates or updates an individual annotation for a commit report.

14 input
Action

Update Pull Request

BITBUCKET_UPDATE_PULL_REQUEST

Tool to update an existing pull request's editable fields (e.g., title, description, reviewers) via the Bitbucket Cloud API.

8 input
Action

Update team pipeline variable

BITBUCKET_UPDATE_TEAMS_PIPELINES_CONFIG_VARIABLES

Updates a team-level pipeline configuration variable in Bitbucket.

5 input
Action

Update user pipeline variable

BITBUCKET_UPDATE_USERS_PIPELINES_CONFIG_VARIABLES

Updates a user-level pipeline variable for Bitbucket pipelines.

5 input
What now

Use Bitbucket in a workflow

Drop a trigger and an action into a template; approve from your phone; the workflow runs.