> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stackone.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Bitbucket

> How to set up the Bitbucket connector, plus the actions and events that are available.

![Bitbucket](https://stackone-logos.com/api/bitbucket/filled/svg)

Previewv3.0.0[See changelog](https://docs.stackone.com/connectors/bitbucket/changelog.md)

[142 actions](#actions) · [26 events](#events) · 6 auth methods

Developer Tools
IAM

## Getting Started

**1. Create or Select a Project**

Set up a new project or select an existing one. See [Organizations & Projects](https://docs.stackone.com/gateway/concepts/organizations-and-projects.md).

**2. Configure the Connector**

Enable the connector and create a Connector Profile in your project. See [Setup Connector Profile](https://docs.stackone.com/gateway/quickstart.md#setup-connector-profile).

> [card] [OAuth 2.0 (Legacy) · Connector Profile](https://docs.stackone.com/connectors/bitbucket/guides/connector-profile/oauth-2-0-legacy.md)
>
> For OAuth consumers Atlassian has not yet migrated to the Atlassian identity platform. Create an OAuth consumer for your...

> [card] [OAuth 2.0 (Atlassian Identity Platform) · Connector Profile](https://docs.stackone.com/connectors/bitbucket/guides/connector-profile/oauth-2-0-atlassian-identity-platform.md)
>
> For OAuth consumers Atlassian has already migrated to the Atlassian identity platform. The authorization code and tokens...

> [card] [API Token · Connector Profile](https://docs.stackone.com/connectors/bitbucket/guides/connector-profile/api-token.md)
>
> No app registration required. Acts as the Atlassian user who created the scoped API token; tokens expire within a year.

> [card] [Repository Access Token · Connector Profile](https://docs.stackone.com/connectors/bitbucket/guides/connector-profile/repository-access-token.md)
>
> Works on any Bitbucket plan but reaches only one repository. Can't call workspace, project, user, or permission APIs.

> [card] [Project Access Token · Connector Profile](https://docs.stackone.com/connectors/bitbucket/guides/connector-profile/project-access-token.md)
>
> Requires Bitbucket Premium. Reaches one project and its repositories, plus read access to the project itself.

> [card] [Workspace Access Token · Connector Profile](https://docs.stackone.com/connectors/bitbucket/guides/connector-profile/workspace-access-token.md)
>
> Requires Bitbucket Premium. Reaches a whole workspace and supports webhook events. Can't call user or permission APIs.

Optionally, configure receiving Events for Bitbucket into StackOne.

> [card] [Webhooks setup](https://docs.stackone.com/connectors/bitbucket/guides/webhook-setup.md)

**3. Link an Account**

Link an account [from the dashboard](https://docs.stackone.com/connect/managing-connectors/linking-accounts.md#link-from-the-dashboard) (or via [StackOne Hub](https://docs.stackone.com/embed/account-linking/overview)).

See the guide for the authentication type chosen in the Connector Profile:

> [card] [OAuth 2.0 (Legacy) · Link Account](https://docs.stackone.com/connectors/bitbucket/guides/link-account/oauth-2-0-legacy.md)

> [card] [OAuth 2.0 (Atlassian Identity Platform) · Link Account](https://docs.stackone.com/connectors/bitbucket/guides/link-account/oauth-2-0-atlassian-identity-platform.md)

> [card] [API Token · Link Account](https://docs.stackone.com/connectors/bitbucket/guides/link-account/api-token.md)

> [card] [Repository Access Token · Link Account](https://docs.stackone.com/connectors/bitbucket/guides/link-account/repository-access-token.md)

> [card] [Project Access Token · Link Account](https://docs.stackone.com/connectors/bitbucket/guides/link-account/project-access-token.md)

> [card] [Workspace Access Token · Link Account](https://docs.stackone.com/connectors/bitbucket/guides/link-account/workspace-access-token.md)

**4. Use Actions**

Connect an AI platform to the linked account's actions. See [AI Platforms](https://docs.stackone.com/ai-platforms/overview.md).

Other ways to call actions are listed in [Protocols & SDKs](https://docs.stackone.com/connect/protocols-and-sdks.md).

## Actions

Authentication type

Select all
|
Clear

API Token

OAuth 2.0 (Atlassian Identity Platform)

OAuth 2.0 (Legacy)

Project Access Token

Repository Access Token

Workspace Access Token

No auth methods found

Scopes

Select all
|
Clear

account

account:write

admin:pipeline:bitbucket

admin:pipeline:bitbucket-legacy

admin:project:bitbucket

admin:project:bitbucket-legacy

admin:repository:bitbucket

admin:repository:bitbucket-legacy

delete:repository:bitbucket

delete:repository:bitbucket-legacy

delete:ssh-key:bitbucket

pipeline

pipeline:variable

pipeline:write

project

project:admin

pullrequest

pullrequest:write

read:account:bitbucket-legacy

read:pipeline:bitbucket

read:pipeline:bitbucket-legacy

read:project:bitbucket

read:project:bitbucket-legacy

read:pullrequest:bitbucket

read:pullrequest:bitbucket-legacy

read:repository:bitbucket

read:repository:bitbucket-legacy

read:ssh-key:bitbucket

read:user:bitbucket

read:workspace:bitbucket

repository

repository:admin

repository:delete

repository:write

write:account:bitbucket-legacy

write:pipeline:bitbucket

write:pipeline:bitbucket-legacy

write:pullrequest:bitbucket

write:pullrequest:bitbucket-legacy

write:repository:bitbucket

write:repository:bitbucket-legacy

write:ssh-key:bitbucket

No scopes found

142 actions

ActionDescriptionRequired scopes

List Branches`bitbucket_list_branches`

List open branches

`repository``read:repository:bitbucket-legacy``read:repository:bitbucket`

Create Branches`bitbucket_create_branches`

Create a branch

`repository:write``write:repository:bitbucket-legacy``read:repository:bitbucket``write:repository:bitbucket`

List Branch Restrictions`bitbucket_list_branch_restrictions`

List branch restrictions

`repository:admin``admin:repository:bitbucket-legacy``admin:repository:bitbucket`

Create Branch Restrictions`bitbucket_create_branch_restrictions`

Create a branch restriction rule

`repository:admin``admin:repository:bitbucket-legacy``admin:repository:bitbucket`

Delete Branch Restrictions`bitbucket_delete_branch_restrictions`

Delete a branch restriction rule

`repository:admin``admin:repository:bitbucket-legacy``admin:repository:bitbucket`

Get Branch Restrictions`bitbucket_get_branch_restrictions`

Get a branch restriction rule

`repository:admin``admin:repository:bitbucket-legacy``admin:repository:bitbucket`

Update Branch Restrictions`bitbucket_update_branch_restrictions`

Update a branch restriction rule

`repository:admin``admin:repository:bitbucket-legacy``admin:repository:bitbucket`

Get Branching Model`bitbucket_get_branching_model`

Get the branching model for a repository

`repository``read:repository:bitbucket-legacy``read:repository:bitbucket`

Get Branching Model Settings`bitbucket_get_branching_model_settings`

Get the branching model config for a repository

`repository:admin``admin:repository:bitbucket-legacy``admin:repository:bitbucket`

Update Settings`bitbucket_update_settings`

Update the branching model config for a repository

`repository:admin``admin:repository:bitbucket-legacy``admin:repository:bitbucket`

List Branching Model`bitbucket_get_project_branching_model`

Get the branching model for a project

`project:admin``admin:project:bitbucket-legacy``read:repository:bitbucket`

Get Project Branching Model Settings`bitbucket_get_project_branching_model_settings`

Get the branching model config for a project

`project:admin``admin:project:bitbucket-legacy``admin:project:bitbucket`

Update Settings`bitbucket_update_project_settings`

Update the branching model config for a project

`project:admin``admin:project:bitbucket-legacy``admin:project:bitbucket`

Get Branches`bitbucket_get_branches`

Get a branch

`repository``read:repository:bitbucket-legacy``read:repository:bitbucket`

Get Commit`bitbucket_get_commit`

Get a commit

`repository``read:repository:bitbucket-legacy``read:repository:bitbucket`

Unapprove Commit`bitbucket_unapprove_commit`

Unapprove a commit

`repository:write``write:repository:bitbucket-legacy``write:repository:bitbucket`

Approve Commit`bitbucket_approve_commit`

Approve a commit

`repository:write``write:repository:bitbucket-legacy``read:repository:bitbucket``write:repository:bitbucket`

List Commits`bitbucket_list_commits`

List commits

`repository``read:repository:bitbucket-legacy``read:repository:bitbucket`

List Comments`bitbucket_list_comments`

List a commit's comments

`repository``read:repository:bitbucket-legacy``read:repository:bitbucket`

Create Comments`bitbucket_create_comments`

Create comment for a commit

`repository``read:repository:bitbucket-legacy``read:repository:bitbucket`

Delete Comments`bitbucket_delete_comments`

Delete a commit comment

`repository``read:repository:bitbucket-legacy``read:repository:bitbucket`

Get Comments`bitbucket_get_comments`

Get a commit comment

`repository``read:repository:bitbucket-legacy``read:repository:bitbucket`

Update Comments`bitbucket_update_comments`

Update a commit comment

`repository``read:repository:bitbucket-legacy``read:repository:bitbucket`

List Reports`bitbucket_list_reports`

List reports

`repository``read:repository:bitbucket-legacy``read:repository:bitbucket`

Update Reports`bitbucket_update_reports`

Create or update a report

`repository``read:repository:bitbucket-legacy``read:repository:bitbucket`

Get Reports`bitbucket_get_reports`

Get a report

`repository``read:repository:bitbucket-legacy``read:repository:bitbucket`

Delete Reports`bitbucket_delete_reports`

Delete a report

`repository``read:repository:bitbucket-legacy``read:repository:bitbucket`

List Statuses`bitbucket_list_statuses`

List commit statuses for a commit

`repository``read:repository:bitbucket-legacy``read:repository:bitbucket`

Create Build`bitbucket_create_build`

Create a build status for a commit

`repository``read:repository:bitbucket-legacy``read:repository:bitbucket`

Get Build`bitbucket_get_build`

Get a build status for a commit

`repository``read:repository:bitbucket-legacy``read:repository:bitbucket`

Update Build`bitbucket_update_build`

Update a build status for a commit

`repository``read:repository:bitbucket-legacy``read:repository:bitbucket`

Create Commits`bitbucket_create_commits`

List commits with include/exclude refs

`repository``read:repository:bitbucket-legacy``read:repository:bitbucket`

List Deployments`bitbucket_list_deployments`

List deployments for a repository

`pipeline``read:pipeline:bitbucket-legacy``read:pipeline:bitbucket`

Get Deployment`bitbucket_get_deployments`

Get a deployment by UUID

`pipeline``read:pipeline:bitbucket-legacy``read:pipeline:bitbucket`

List Environments`bitbucket_list_environments`

List deployment environments for a repository

`pipeline``read:pipeline:bitbucket-legacy``read:pipeline:bitbucket`

Create Environment`bitbucket_create_environments`

Create a deployment environment for a repository

`pipeline:write``write:pipeline:bitbucket-legacy``admin:pipeline:bitbucket`

Get Environment`bitbucket_get_environments`

Get a deployment environment by UUID

`pipeline``read:pipeline:bitbucket-legacy``read:pipeline:bitbucket`

Update Environment`bitbucket_update_environment`

Update a deployment environment configuration

`pipeline:write``write:pipeline:bitbucket-legacy``admin:pipeline:bitbucket`

Get Unified Credentials`bitbucket_unified_get_me`

Return the authenticated identity and auth type for the current Bitbucket connection. Wraps GET /user for identity. Maps...

`account``read:account:bitbucket-legacy``read:user:bitbucket`

List Unified Organizations`bitbucket_unified_list_organizations`

List the Bitbucket workspaces the authenticated identity belongs to, mapped to the IAM unified organization schema. Wrap...

`account``read:account:bitbucket-legacy``read:workspace:bitbucket`

Get Unified Organization`bitbucket_unified_get_organization`

Retrieve a single Bitbucket workspace by its slug (e.g. "stackone"), mapped to the IAM unified organization schema. Wrap...

`account``read:account:bitbucket-legacy``read:workspace:bitbucket`

List Unified Resource Types`bitbucket_unified_list_resource_types`

List unified resource types in Bitbucket.

`account``read:account:bitbucket-legacy``read:user:bitbucket`

List Unified Resource Users`bitbucket_unified_list_resource_users`

List unified resource users in Bitbucket.

`read:project:bitbucket``read:repository:bitbucket`

List Unified Roles`bitbucket_unified_list_roles`

Return the three stable workspace-permission IAM roles Bitbucket exposes ("owner", "collaborator", "member") synthesized...

`account``read:account:bitbucket-legacy``read:user:bitbucket`

Get Unified Role`bitbucket_unified_get_role`

Retrieve a single synthesized Bitbucket IAM workspace-permission role by stable key ("owner", "collaborator", or "member...

`account``read:account:bitbucket-legacy``read:user:bitbucket`

List Unified Users`bitbucket_unified_list_users`

List the members of a single Bitbucket workspace mapped to the IAM unified user schema, cursor-paginated 100 per page. f...

`account``read:account:bitbucket-legacy``read:workspace:bitbucket`

Get Unified User`bitbucket_unified_get_user`

Retrieve a single Bitbucket user by account\_id (e.g. "557058:..."), mapped to the IAM unified user schema. Wraps GET /us...

`account``read:account:bitbucket-legacy``read:user:bitbucket``read:workspace:bitbucket`

List Pipelines`bitbucket_list_pipelines`

List pipelines

`pipeline``read:pipeline:bitbucket-legacy``read:pipeline:bitbucket`

Create Pipelines`bitbucket_create_pipelines`

Run a pipeline

`pipeline:write``write:pipeline:bitbucket-legacy``read:pipeline:bitbucket``write:pipeline:bitbucket`

Get Pipelines`bitbucket_get_pipelines`

Get a pipeline

`pipeline``read:pipeline:bitbucket-legacy``read:pipeline:bitbucket`

Get Pipelines Config`bitbucket_get_pipelines_config`

Get configuration

`pipeline``read:pipeline:bitbucket-legacy``admin:repository:bitbucket`

List Steps`bitbucket_list_steps`

List steps for a pipeline

`pipeline``read:pipeline:bitbucket-legacy``read:pipeline:bitbucket`

Get Steps`bitbucket_get_steps`

Get a step of a pipeline

`pipeline``read:pipeline:bitbucket-legacy``read:pipeline:bitbucket`

Get Log`bitbucket_get_log`

Get log file for a step

`pipeline``read:pipeline:bitbucket-legacy``read:pipeline:bitbucket`

Get Logs`bitbucket_get_logs`

Get the logs for the build container or a service container for a given step of a pipeline.

`pipeline``read:pipeline:bitbucket-legacy``read:pipeline:bitbucket`

Create Schedules`bitbucket_create_schedules`

Create a schedule

`pipeline:write``write:pipeline:bitbucket-legacy``read:pipeline:bitbucket``write:pipeline:bitbucket`

List Schedules`bitbucket_list_schedules`

List schedules

`pipeline``read:pipeline:bitbucket-legacy``read:pipeline:bitbucket`

Get Schedules`bitbucket_get_schedules`

Get a schedule

`pipeline``read:pipeline:bitbucket-legacy``read:pipeline:bitbucket`

Update Schedules`bitbucket_update_schedules`

Update a schedule

`pipeline:write``write:pipeline:bitbucket-legacy``read:pipeline:bitbucket``write:pipeline:bitbucket`

Delete Schedules`bitbucket_delete_schedules`

Delete a schedule

`pipeline:write``write:pipeline:bitbucket-legacy``write:pipeline:bitbucket`

List Variables`bitbucket_list_variables`

List variables for a repository

`pipeline``read:pipeline:bitbucket-legacy``read:pipeline:bitbucket`

Create Variables`bitbucket_create_variables`

Create a variable for a repository

`pipeline:variable``admin:pipeline:bitbucket-legacy``admin:pipeline:bitbucket`

Get Variables`bitbucket_get_variables`

Get a variable for a repository

`pipeline``read:pipeline:bitbucket-legacy``read:pipeline:bitbucket`

Update Variables`bitbucket_update_variables`

Update a variable for a repository

`pipeline:variable``admin:pipeline:bitbucket-legacy``admin:pipeline:bitbucket`

Delete Variables`bitbucket_delete_variables`

Delete a variable for a repository

`pipeline:variable``admin:pipeline:bitbucket-legacy``admin:pipeline:bitbucket`

Stop Pipeline`bitbucket_stop_pipeline`

Stop a pipeline

`pipeline:write``write:pipeline:bitbucket-legacy``write:pipeline:bitbucket`

Update Pipelines Config`bitbucket_update_pipelines_config`

Update configuration

`repository:admin``admin:repository:bitbucket-legacy``admin:repository:bitbucket`

Update Build Number`bitbucket_update_build_number`

Update the next build number

`pipeline:write``write:pipeline:bitbucket-legacy``admin:pipeline:bitbucket`

List Projects`bitbucket_list_projects`

List all projects in a workspace

`project``read:project:bitbucket-legacy``read:project:bitbucket`

Get Project`bitbucket_get_project`

Get a specific project by key

`project``read:project:bitbucket-legacy``read:project:bitbucket`

Create Project`bitbucket_create_project`

Create a new project in a workspace

`project:admin``admin:project:bitbucket-legacy``admin:project:bitbucket`

Update Project`bitbucket_update_project`

Update an existing project

`project:admin``admin:project:bitbucket-legacy``admin:project:bitbucket`

Delete Project`bitbucket_delete_project`

Delete a project from a workspace

`project:admin``admin:project:bitbucket-legacy``admin:project:bitbucket`

List Pullrequests`bitbucket_list_commit_pullrequests`

List pull requests that contain a commit

`pullrequest``read:pullrequest:bitbucket-legacy``read:pullrequest:bitbucket`

List Pullrequests`bitbucket_list_pullrequests`

List pull requests

`pullrequest``read:pullrequest:bitbucket-legacy``read:pullrequest:bitbucket`

Create Pullrequests`bitbucket_create_pullrequests`

Create a pull request

`pullrequest:write``write:pullrequest:bitbucket-legacy``read:pullrequest:bitbucket``write:pullrequest:bitbucket`

Get Pullrequests`bitbucket_get_pullrequests`

Get a pull request

`pullrequest``read:pullrequest:bitbucket-legacy``read:pullrequest:bitbucket`

Update Pullrequests`bitbucket_update_pullrequests`

Update a pull request

`pullrequest:write``write:pullrequest:bitbucket-legacy``read:pullrequest:bitbucket``write:pullrequest:bitbucket`

Unapprove Pull Request`bitbucket_unapprove_pullrequest`

Unapprove a pull request

`pullrequest:write``write:pullrequest:bitbucket-legacy``write:pullrequest:bitbucket`

Approve Pull Request`bitbucket_approve_pullrequest`

Approve a pull request

`pullrequest:write``write:pullrequest:bitbucket-legacy``read:pullrequest:bitbucket``write:pullrequest:bitbucket`

List Pull Request Commits`bitbucket_list_pullrequest_commits`

List commits on a pull request

`pullrequest``read:pullrequest:bitbucket-legacy``read:pullrequest:bitbucket`

Decline Pull Request`bitbucket_decline_pullrequest`

Decline a pull request

`pullrequest:write``write:pullrequest:bitbucket-legacy``read:pullrequest:bitbucket``write:pullrequest:bitbucket`

Merge Pull Request`bitbucket_merge_pullrequest`

Merge a pull request

`pullrequest:write``write:pullrequest:bitbucket-legacy``read:pullrequest:bitbucket``write:pullrequest:bitbucket`

List Pullrequests`bitbucket_list_user_pullrequests`

List workspace pull requests for a user

`pullrequest``read:pullrequest:bitbucket-legacy``read:pullrequest:bitbucket`

List Comments`bitbucket_list_pullrequest_comments`

List comments on a pull request

`pullrequest``read:pullrequest:bitbucket-legacy``read:pullrequest:bitbucket`

Create Comments`bitbucket_create_pullrequest_comment`

Create a comment on a pull request

`pullrequest``read:pullrequest:bitbucket-legacy``read:pullrequest:bitbucket`

Delete Comments`bitbucket_delete_pullrequest_comment`

Delete a comment on a pull request

`pullrequest``read:pullrequest:bitbucket-legacy``read:pullrequest:bitbucket`

Get Comments`bitbucket_get_pullrequest_comment`

Get a comment on a pull request

`pullrequest``read:pullrequest:bitbucket-legacy``read:pullrequest:bitbucket`

Update Comments`bitbucket_update_pullrequest_comment`

Update a comment on a pull request

`pullrequest``read:pullrequest:bitbucket-legacy``read:pullrequest:bitbucket`

Unresolve Pull Request Comment`bitbucket_unresolve_pullrequest_comment`

Reopen a comment thread

`pullrequest``read:pullrequest:bitbucket-legacy``read:pullrequest:bitbucket`

Resolve Pull Request Comment`bitbucket_resolve_pullrequest_comment`

Resolve a comment thread

`pullrequest``read:pullrequest:bitbucket-legacy``read:pullrequest:bitbucket`

Get Diff`bitbucket_get_pullrequest_diff`

List changes in a pull request

`pullrequest``read:pullrequest:bitbucket-legacy``read:pullrequest:bitbucket``read:repository:bitbucket`

Get Diffstat`bitbucket_get_pullrequest_diffstat`

Get the diff stat for a pull request

`pullrequest``read:pullrequest:bitbucket-legacy``read:pullrequest:bitbucket``read:repository:bitbucket`

List Statuses`bitbucket_list_pullrequest_statuses`

List commit statuses for a pull request

`pullrequest``read:pullrequest:bitbucket-legacy``read:pullrequest:bitbucket`

Get Patch`bitbucket_get_pullrequest_patch`

Get the patch for a pull request

`pullrequest``read:pullrequest:bitbucket-legacy``read:pullrequest:bitbucket``read:repository:bitbucket`

Remove Request Changes`bitbucket_remove_request_changes_pullrequest`

Remove change request for a pull request

`pullrequest:write``write:pullrequest:bitbucket-legacy``write:pullrequest:bitbucket`

Request Changes`bitbucket_request_changes_pullrequest`

Request changes for a pull request

`pullrequest:write``write:pullrequest:bitbucket-legacy``read:pullrequest:bitbucket``write:pullrequest:bitbucket`

List Repositories In Workspace`bitbucket_list_repositories_in_workspace`

List all repositories in a workspace

`repository``read:repository:bitbucket-legacy``read:repository:bitbucket`

Get Repository`bitbucket_get_repository`

Get a repository

`repository``read:repository:bitbucket-legacy``read:repository:bitbucket`

Create Repository`bitbucket_create_repository`

Create a new repository

`repository:admin``admin:repository:bitbucket-legacy``admin:repository:bitbucket`

List Default Reviewers`bitbucket_list_default_reviewers`

List default reviewers

`pullrequest``read:pullrequest:bitbucket-legacy``read:pullrequest:bitbucket`

Delete Default Reviewers`bitbucket_delete_default_reviewers`

Remove a user from the default reviewers

`repository:admin``admin:repository:bitbucket-legacy``admin:repository:bitbucket`

Get Default Reviewers`bitbucket_get_default_reviewers`

Get a default reviewer

`pullrequest``read:pullrequest:bitbucket-legacy``read:pullrequest:bitbucket`

Add Default Reviewer`bitbucket_add_default_reviewer`

Add a user to the default reviewers

`repository:admin``admin:repository:bitbucket-legacy``admin:repository:bitbucket`

List Deploy Keys`bitbucket_list_deploy_keys`

List repository deploy keys

`repository:admin``admin:repository:bitbucket-legacy``admin:repository:bitbucket`

Create Deploy Keys`bitbucket_create_deploy_keys`

Add a repository deploy key

`repository:admin``admin:repository:bitbucket-legacy``admin:repository:bitbucket``write:ssh-key:bitbucket`

Delete Deploy Keys`bitbucket_delete_deploy_keys`

Delete a repository deploy key

`repository:admin``admin:repository:bitbucket-legacy``admin:repository:bitbucket``delete:ssh-key:bitbucket`

Get Deploy Keys`bitbucket_get_deploy_keys`

Get a repository deploy key

`repository:admin``admin:repository:bitbucket-legacy``admin:repository:bitbucket`

Update Deploy Keys`bitbucket_update_deploy_keys`

Update a repository deploy key

`repository:admin``admin:repository:bitbucket-legacy``admin:repository:bitbucket``write:ssh-key:bitbucket`

Get Diff`bitbucket_get_diff`

Compare two commits

`repository``read:repository:bitbucket-legacy``read:repository:bitbucket`

Get Diffstat`bitbucket_get_diffstat`

Compare two commit diff stats

`repository``read:repository:bitbucket-legacy``read:repository:bitbucket`

List Forks`bitbucket_list_forks`

List repository forks

`repository``read:repository:bitbucket-legacy``read:repository:bitbucket`

List Src`bitbucket_list_src`

Get the root directory of the main branch

`repository``read:repository:bitbucket-legacy``read:repository:bitbucket`

Create Src`bitbucket_create_src`

Create a commit by uploading a file

`repository:admin``admin:repository:bitbucket-legacy``write:repository:bitbucket`

Get Src`bitbucket_get_src`

Get file or directory contents

`repository``read:repository:bitbucket-legacy``read:repository:bitbucket`

List Watchers`bitbucket_list_watchers`

List repositories watchers

`repository``read:repository:bitbucket-legacy``read:repository:bitbucket`

List Downloads`bitbucket_list_downloads`

List download artifacts

`repository``read:repository:bitbucket-legacy``read:repository:bitbucket`

Get Patch`bitbucket_get_patch`

Get a patch for two commits

`repository``read:repository:bitbucket-legacy``read:repository:bitbucket`

Delete Repository`bitbucket_delete_repository`

Delete a repository

`repository:delete``delete:repository:bitbucket-legacy``delete:repository:bitbucket`

List Repository Groups`bitbucket_list_repository_groups`

List explicit group permissions for a repository

`repository:admin``admin:repository:bitbucket-legacy``read:repository:bitbucket`

Get Authenticated User`bitbucket_get_authenticated_user`

Get the currently authenticated user

`account``read:account:bitbucket-legacy``read:user:bitbucket`

Get User`bitbucket_get_user`

Get a user

`account``read:account:bitbucket-legacy``read:user:bitbucket`

List Ssh Keys`bitbucket_list_ssh_keys`

List SSH keys

`account``read:account:bitbucket-legacy``read:ssh-key:bitbucket`

Create Ssh Keys`bitbucket_create_ssh_keys`

Add a new SSH key

`account:write``write:account:bitbucket-legacy``read:ssh-key:bitbucket``write:ssh-key:bitbucket`

Delete Ssh Keys`bitbucket_delete_ssh_keys`

Delete a SSH key

`account:write``write:account:bitbucket-legacy``delete:ssh-key:bitbucket`

Get SSH Key`bitbucket_get_ssh_key`

Get a SSH key

`account``read:account:bitbucket-legacy``read:ssh-key:bitbucket`

Update Ssh Keys`bitbucket_update_ssh_keys`

Update a SSH key

`account:write``write:account:bitbucket-legacy``read:ssh-key:bitbucket``write:ssh-key:bitbucket`

List Workspaces`bitbucket_list_workspaces`

List workspaces for the current user

`account``read:account:bitbucket-legacy``read:workspace:bitbucket`

Get Workspace`bitbucket_get_workspace`

Get a workspace

`account``read:account:bitbucket-legacy``read:workspace:bitbucket`

List User Repository Permissions`bitbucket_list_user_repository_permissions`

List repository permissions in a workspace for the authenticated user

`account``read:account:bitbucket-legacy``read:repository:bitbucket`

List Workspace Repository Permissions`bitbucket_list_workspace_repository_permissions`

List all repository permissions for a workspace

`account``read:account:bitbucket-legacy``read:repository:bitbucket`

List Repository Permissions`bitbucket_list_repository_permissions`

List all user permissions for a specific repository in a workspace

`repository``read:repository:bitbucket-legacy``read:repository:bitbucket`

List Default Reviewers`bitbucket_list_project_default_reviewers`

List the default reviewers in a project

`project:admin``admin:project:bitbucket-legacy``read:pullrequest:bitbucket`

Update Default Reviewer`bitbucket_update_project_default_reviewer`

Add a user as a default reviewer for the project

`project:admin``admin:project:bitbucket-legacy``admin:project:bitbucket`

Get Default Reviewer`bitbucket_get_project_default_reviewer`

Get a specific default reviewer for a project

`project:admin``admin:project:bitbucket-legacy``read:pullrequest:bitbucket`

Delete Default Reviewer`bitbucket_delete_project_default_reviewer`

Remove a user from the project's default reviewers

`project:admin``admin:project:bitbucket-legacy``admin:project:bitbucket`

List Deploy Keys`bitbucket_list_project_deploy_keys`

List deploy keys for a project

`project:admin``admin:project:bitbucket-legacy``admin:project:bitbucket``project`

Create Deploy Key`bitbucket_create_project_deploy_key`

Create a deploy key for a project

`project:admin``admin:project:bitbucket-legacy``admin:project:bitbucket``write:ssh-key:bitbucket`

Get Deploy Key`bitbucket_get_project_deploy_key`

Get a project deploy key

`project:admin``admin:project:bitbucket-legacy``admin:project:bitbucket`

Delete Deploy Key`bitbucket_delete_project_deploy_key`

Delete a deploy key from a project

`project:admin``admin:project:bitbucket-legacy``admin:project:bitbucket``delete:ssh-key:bitbucket`

List Permissions`bitbucket_list_permissions`

List user permissions in a workspace

`account``read:account:bitbucket-legacy``read:workspace:bitbucket`

List Workspace Members`bitbucket_list_workspace_members`

List all members of a workspace

`account``read:account:bitbucket-legacy``read:workspace:bitbucket`

## Events

Tags

Select all
|
Clear

Commits

Forks

Health Checks

Projects

Pull Requests

Repositories

No tags found

26 events

EventDescriptionTags

Active Check`bitbucket_active_check`

Responds with 200 OK to any Bitbucket delivery that carries no X-Event-Key header.

Health Checks

Repository Push`bitbucket_webhook_repo_push`

Fired when one or more commits, branches, or tags are pushed to a Bitbucket repository.

Repositories

Repository Forked`bitbucket_webhook_repo_fork`

Fired when a Bitbucket repository is forked.

Forks

Repository Updated`bitbucket_webhook_repo_updated`

Fired when a repository's name, description, website, or language is changed.

Repositories

Repository Created`bitbucket_webhook_repo_created`

Fired when a new repository is created in the workspace. Workspace-level subscriptions only.

Repositories

Repository Deleted`bitbucket_webhook_repo_deleted`

Fired when a repository is hard-deleted from the workspace. Workspace-level subscriptions only.

Repositories

Repository Imported`bitbucket_webhook_repo_imported`

Fired when a repository import into the workspace completes. Workspace-level subscriptions only.

Repositories

Repository Transfer Accepted`bitbucket_webhook_repo_transfer`

Fired when a repository transfer into the workspace is accepted. Workspace-level subscriptions only.

Repositories

Commit Comment Created`bitbucket_webhook_repo_commit_comment_created`

Fired when a user comments on a commit in a repository.

Commits

Build Status Created`bitbucket_webhook_repo_commit_status_created`

Fired when a CI system or app creates a build status on a commit.

Commits

Build Status Updated`bitbucket_webhook_repo_commit_status_updated`

Fired when a CI system or app updates an existing build status on a commit.

Commits

Project Updated`bitbucket_webhook_project_updated`

Fired when any field on a workspace project is updated. Workspace-level subscriptions only.

Projects

Pull Request Created`bitbucket_webhook_pullrequest_created`

Fired when a new pull request is opened in a repository.

Pull Requests

Pull Request Updated`bitbucket_webhook_pullrequest_updated`

Fired when a pull request's title, description, reviewers, or destination branch is changed.

Pull Requests

Pull Request Pushed`bitbucket_webhook_pullrequest_push`

Fired when new commits are pushed to the source branch of an open pull request.

Pull Requests

Pull Request Approved`bitbucket_webhook_pullrequest_approved`

Fired when a user approves a pull request.

Pull Requests

Pull Request Approval Removed`bitbucket_webhook_pullrequest_unapproved`

Fired when a user removes their approval from a pull request.

Pull Requests

Pull Request Changes Requested`bitbucket_webhook_pullrequest_changes_request_created`

Fired when a reviewer sets Request changes on a pull request.

Pull Requests

Pull Request Changes Request Removed`bitbucket_webhook_pullrequest_changes_request_removed`

Fired when a reviewer removes their Request changes status from a pull request.

Pull Requests

Pull Request Merged`bitbucket_webhook_pullrequest_fulfilled`

Fired when a pull request is merged.

Pull Requests

Pull Request Declined`bitbucket_webhook_pullrequest_rejected`

Fired when a pull request is declined.

Pull Requests

Pull Request Comment Created`bitbucket_webhook_pullrequest_comment_created`

Fired when a user comments on a pull request.

Pull Requests

Pull Request Comment Updated`bitbucket_webhook_pullrequest_comment_updated`

Fired when a user edits a comment on a pull request.

Pull Requests

Pull Request Comment Deleted`bitbucket_webhook_pullrequest_comment_deleted`

Fired when a user deletes a comment on a pull request.

Pull Requests

Pull Request Comment Resolved`bitbucket_webhook_pullrequest_comment_resolved`

Fired when a user resolves a comment thread on a pull request.

Pull Requests

Pull Request Comment Reopened`bitbucket_webhook_pullrequest_comment_reopened`

Fired when a user reopens a previously resolved comment thread on a pull request.

Pull Requests


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.