Skip to content
Scalekit Docs
Talk to an Engineer Dashboard

Bitbucket connector

OAuth 2.0Developer ToolsCollaboration

Connect to Bitbucket. Manage repositories, pipelines, pull requests, and code collaboration.

Bitbucket connector

  1. Terminal window
    npm install @scalekit-sdk/node

    Full SDK reference: Node.js | Python

  2. Add your Scalekit credentials to your .env file. Find values in app.scalekit.com > Developers > API Credentials.

    .env
    SCALEKIT_ENVIRONMENT_URL=<your-environment-url>
    SCALEKIT_CLIENT_ID=<your-client-id>
    SCALEKIT_CLIENT_SECRET=<your-client-secret>
  3. Register your Bitbucket credentials with Scalekit so it handles the token lifecycle. You do this once per environment.

    Dashboard setup steps

    Register your Bitbucket OAuth consumer credentials with Scalekit so it can manage the OAuth 2.0 authentication flow and token lifecycle on your behalf. You’ll need a Key (Client ID) and Secret (Client Secret) from your Bitbucket workspace settings.

    1. Open OAuth consumers in your Bitbucket workspace

      • Go to Bitbucket and open your workspace by clicking your avatar in the top-right corner and selecting the workspace you want to use.

      • In the left sidebar, click SettingsOAuth consumers.

        Bitbucket workspace settings showing OAuth consumers page
      • Click Add consumer to create a new OAuth application.

    2. Create the OAuth consumer

      • Fill in the consumer details:

        • Name — enter a descriptive name (e.g., Scalekit-Agent)
        • Description — optional description
        • URL — your application’s homepage URL
      • Leave the Callback URL field empty for now — you’ll fill it in after getting the redirect URI from Scalekit.

        Bitbucket Add OAuth consumer form
      • Under Permissions, select the scopes your agent needs. Recommended minimum:

        PermissionScopeRequired for
        AccountReadUser profile access
        RepositoriesReadRead code and metadata
        RepositoriesWriteCreate branches, push commits
        Pull requestsReadRead PR data
        Pull requestsWriteCreate, approve, and merge PRs
        PipelinesReadView pipeline runs
        PipelinesWriteTrigger pipelines
      • Click Save to create the consumer.

    3. Get the redirect URI from Scalekit

      • In Scalekit dashboard, go to AgentKit > Connections > Create Connection. Search for Bitbucket and click Create.

        Searching for Bitbucket in the Scalekit Create Connection panel
      • Copy the Redirect URI shown in the connection configuration panel. It looks like https://<SCALEKIT_ENVIRONMENT_URL>/sso/v1/oauth/<CONNECTION_ID>/callback.

        Scalekit Configure Bitbucket Connection panel showing Redirect URI, Client Key, and Client Secret fields
    4. Add the callback URL in Bitbucket

      • Back in Bitbucket, open your OAuth consumer and click Edit.

      • Paste the Scalekit Redirect URI into the Callback URL field.

      • Click Save to apply the change.

        Bitbucket Edit OAuth consumer with Scalekit callback URL added to the Callback URL field
    5. Copy your OAuth credentials

      • In Bitbucket, go back to Workspace settingsOAuth consumers and click on your consumer name to expand it.

      • The Key and Secret will be shown. Click Reveal next to the secret to display it.

        Bitbucket OAuth consumer expanded showing Key and Secret with Reveal button
      • Copy both values. The secret is not stored by Bitbucket after you leave this page — save it securely.

    6. Add credentials in Scalekit

      • In Scalekit dashboard, go to AgentKit > Connections and open the Bitbucket connection you created.

      • Enter your credentials:

        • Client Key — the Key from your Bitbucket OAuth consumer
        • Client Secret — the Secret from your Bitbucket OAuth consumer
        • Scopes — select the scopes that match the permissions you granted in step 2
      • Click Save.

  4. quickstart.ts
    import { ScalekitClient } from '@scalekit-sdk/node'
    import 'dotenv/config'
    const scalekit = new ScalekitClient(
    process.env.SCALEKIT_ENV_URL,
    process.env.SCALEKIT_CLIENT_ID,
    process.env.SCALEKIT_CLIENT_SECRET,
    )
    const actions = scalekit.actions
    const connector = 'bitbucket'
    const identifier = 'user_123'
    // Generate an authorization link for the user
    const { link } = await actions.getAuthorizationLink({ connectionName: connector, identifier })
    console.log('Authorize Bitbucket:', link)
    process.stdout.write('Press Enter after authorizing...')
    await new Promise(r => process.stdin.once('data', r))
    // Make your first call
    const result = await actions.executeTool({
    connector,
    identifier,
    toolName: 'bitbucket_user_emails_list',
    toolInput: {},
    })
    console.log(result)

Connect this agent connector to let your agent:

  • Get commit comment, workspace, merge base — Returns a specific comment on a commit
  • Search workspace — Searches for code across all repositories in a workspace
  • Delete workspace pipeline variable, deploy key, repository permission user — Deletes a workspace pipeline variable
  • Create tag, environment, commit build status — Creates a new tag in a Bitbucket repository pointing to a specific commit
  • Update pull request task, deployment variable, commit build status — Updates a task on a pull request (e.g
  • Unwatch issue — Stops watching an issue
Proxy API call
const user = await actions.request({
connectionName: 'bitbucket',
identifier: 'user_123',
path: '/2.0/user',
method: 'GET',
});
console.log(user);
Execute a tool
const result = await actions.executeTool({
connector: 'bitbucket',
identifier: 'user_123',
toolName: 'bitbucket_branch_create',
toolInput: {},
});
console.log(result);

Use the exact tool names from the Tool list below when you call execute_tool. If you’re not sure which name to use, list the tools available for the current user first.

bitbucket_branch_create#Creates a new branch in a Bitbucket repository from a specified commit hash or branch.4 params

Creates a new branch in a Bitbucket repository from a specified commit hash or branch.

NameTypeRequiredDescription
namestringrequiredName for the new branch.
repo_slugstringrequiredThe repository slug or UUID.
target_hashstringrequiredThe commit hash to create the branch from.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_branch_delete#Deletes a branch from a Bitbucket repository.3 params

Deletes a branch from a Bitbucket repository.

NameTypeRequiredDescription
namestringrequiredThe branch name to delete.
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_branch_get#Returns details of a specific branch in a Bitbucket repository.3 params

Returns details of a specific branch in a Bitbucket repository.

NameTypeRequiredDescription
namestringrequiredThe branch name.
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_branch_restriction_create#Creates a branch permission rule for a repository.7 params

Creates a branch permission rule for a repository.

NameTypeRequiredDescription
kindstringrequiredRestriction type: require_tasks_to_be_completed, require_approvals_to_merge, require_default_reviewer_approvals_to_merge, require_no_changes_requested, require_commits_behind, require_passing_builds_to_merge, reset_pullrequest_approvals_on_change, push, restrict_merges, force, delete, enforce_merge_checks.
patternstringrequiredBranch name or glob pattern to restrict, e.g. 'main' or 'release/*'.
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
groupsstringoptionalList of group slugs to exempt from the restriction.
usersstringoptionalList of user account IDs to exempt from the restriction.
valuestringoptionalNumeric value for count-based restrictions (e.g. required approvals).
bitbucket_branch_restriction_delete#Deletes a branch permission rule.3 params

Deletes a branch permission rule.

NameTypeRequiredDescription
idstringrequiredThe numeric ID of the branch restriction.
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_branch_restriction_get#Returns a specific branch permission rule by ID.3 params

Returns a specific branch permission rule by ID.

NameTypeRequiredDescription
idstringrequiredThe numeric ID of the branch restriction.
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_branch_restriction_update#Updates a branch permission rule.6 params

Updates a branch permission rule.

NameTypeRequiredDescription
idstringrequiredThe numeric ID of the branch restriction.
kindstringrequiredRestriction type (see Create Branch Restriction for valid values).
patternstringrequiredBranch name or glob pattern.
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
valuestringoptionalNumeric value for count-based restrictions.
bitbucket_branch_restrictions_list#Lists branch permission rules for a repository.2 params

Lists branch permission rules for a repository.

NameTypeRequiredDescription
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_branches_list#Returns all branches in a Bitbucket repository.4 params

Returns all branches in a Bitbucket repository.

NameTypeRequiredDescription
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
qstringoptionalQuery to filter branches, e.g. name~"feature".
sortstringoptionalSort field, e.g. -target.date for newest first.
bitbucket_branching_model_get#Returns the effective branching model for a repository (e.g. Gitflow config).2 params

Returns the effective branching model for a repository (e.g. Gitflow config).

NameTypeRequiredDescription
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_branching_model_settings_get#Returns the branching model configuration settings for a repository.2 params

Returns the branching model configuration settings for a repository.

NameTypeRequiredDescription
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_branching_model_settings_update#Updates the branching model configuration settings for a repository.4 params

Updates the branching model configuration settings for a repository.

NameTypeRequiredDescription
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
development_branchstringoptionalName of the development branch.
production_branchstringoptionalName of the production branch.
bitbucket_commit_approve#Approves a specific commit in a Bitbucket repository.3 params

Approves a specific commit in a Bitbucket repository.

NameTypeRequiredDescription
commitstringrequiredThe commit hash.
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_commit_build_status_create#Creates or updates a build status for a specific commit (used to report CI/CD results).8 params

Creates or updates a build status for a specific commit (used to report CI/CD results).

NameTypeRequiredDescription
commitstringrequiredThe commit hash.
keystringrequiredUnique identifier for the build (e.g. CI pipeline name).
repo_slugstringrequiredThe repository slug or UUID.
statestringrequiredBuild state: SUCCESSFUL, FAILED, INPROGRESS, STOPPED.
urlstringrequiredURL linking to the build result.
workspacestringrequiredThe workspace slug or UUID.
descriptionstringoptionalDescription of the build result.
namestringoptionalDisplay name for the build.
bitbucket_commit_build_status_get#Returns the build status for a specific commit and build key.4 params

Returns the build status for a specific commit and build key.

NameTypeRequiredDescription
commitstringrequiredThe commit hash.
keystringrequiredUnique identifier for the build.
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_commit_build_status_update#Updates an existing build status for a specific commit and key.8 params

Updates an existing build status for a specific commit and key.

NameTypeRequiredDescription
commitstringrequiredThe commit hash.
keystringrequiredUnique identifier for the build.
repo_slugstringrequiredThe repository slug or UUID.
statestringrequiredBuild state: SUCCESSFUL, FAILED, INPROGRESS, STOPPED.
urlstringrequiredURL linking to the build result.
workspacestringrequiredThe workspace slug or UUID.
descriptionstringoptionalDescription of the build result.
namestringoptionalDisplay name for the build.
bitbucket_commit_comment_create#Creates a new comment on a specific commit in a Bitbucket repository.4 params

Creates a new comment on a specific commit in a Bitbucket repository.

NameTypeRequiredDescription
commitstringrequiredThe commit hash.
contentstringrequiredThe comment text (Markdown supported).
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_commit_comment_delete#Deletes a specific comment on a commit.4 params

Deletes a specific comment on a commit.

NameTypeRequiredDescription
comment_idstringrequiredThe numeric ID of the comment.
commitstringrequiredThe commit hash.
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_commit_comment_get#Returns a specific comment on a commit.4 params

Returns a specific comment on a commit.

NameTypeRequiredDescription
comment_idstringrequiredThe numeric ID of the comment.
commitstringrequiredThe commit hash.
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_commit_comment_update#Updates an existing comment on a commit.5 params

Updates an existing comment on a commit.

NameTypeRequiredDescription
comment_idstringrequiredThe numeric ID of the comment.
commitstringrequiredThe commit hash.
contentstringrequiredUpdated comment text (Markdown supported).
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_commit_comments_list#Lists all comments on a specific commit in a Bitbucket repository.3 params

Lists all comments on a specific commit in a Bitbucket repository.

NameTypeRequiredDescription
commitstringrequiredThe commit hash.
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_commit_get#Returns details of a specific commit including author, message, date, and diff stats.3 params

Returns details of a specific commit including author, message, date, and diff stats.

NameTypeRequiredDescription
commitstringrequiredThe commit hash.
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_commit_statuses_list#Lists all statuses (build results) for a specific commit.3 params

Lists all statuses (build results) for a specific commit.

NameTypeRequiredDescription
commitstringrequiredThe commit hash.
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_commit_unapprove#Removes an approval from a specific commit.3 params

Removes an approval from a specific commit.

NameTypeRequiredDescription
commitstringrequiredThe commit hash.
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_commits_list#Returns a list of commits for a repository, optionally filtered by branch.3 params

Returns a list of commits for a repository, optionally filtered by branch.

NameTypeRequiredDescription
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
branchstringoptionalBranch or tag name to list commits for.
bitbucket_component_get#Returns a specific component by ID from the issue tracker.3 params

Returns a specific component by ID from the issue tracker.

NameTypeRequiredDescription
component_idstringrequiredThe numeric ID of the component.
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_components_list#Lists all components defined for a repository's issue tracker.2 params

Lists all components defined for a repository's issue tracker.

NameTypeRequiredDescription
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_default_reviewer_add#Adds a user as a default reviewer for a repository.3 params

Adds a user as a default reviewer for a repository.

NameTypeRequiredDescription
repo_slugstringrequiredThe repository slug or UUID.
usernamestringrequiredThe user's account ID or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_default_reviewer_get#Checks if a user is a default reviewer for a repository.3 params

Checks if a user is a default reviewer for a repository.

NameTypeRequiredDescription
repo_slugstringrequiredThe repository slug or UUID.
usernamestringrequiredThe user's account ID or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_default_reviewer_remove#Removes a user from the default reviewers for a repository.3 params

Removes a user from the default reviewers for a repository.

NameTypeRequiredDescription
repo_slugstringrequiredThe repository slug or UUID.
usernamestringrequiredThe user's account ID or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_default_reviewers_list#Lists all default reviewers for a repository.2 params

Lists all default reviewers for a repository.

NameTypeRequiredDescription
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_deploy_key_create#Adds a new deploy key (SSH public key) to a Bitbucket repository for read-only or read-write access.4 params

Adds a new deploy key (SSH public key) to a Bitbucket repository for read-only or read-write access.

NameTypeRequiredDescription
keystringrequiredThe SSH public key string.
labelstringrequiredA human-readable label for the deploy key.
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_deploy_key_delete#Removes a deploy key from a Bitbucket repository.3 params

Removes a deploy key from a Bitbucket repository.

NameTypeRequiredDescription
key_idintegerrequiredThe integer ID of the deploy key to delete.
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_deploy_keys_list#Returns a list of deploy keys (SSH keys) configured on a Bitbucket repository.2 params

Returns a list of deploy keys (SSH keys) configured on a Bitbucket repository.

NameTypeRequiredDescription
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_deployment_get#Returns a specific deployment by UUID.3 params

Returns a specific deployment by UUID.

NameTypeRequiredDescription
deployment_uuidstringrequiredThe UUID of the deployment.
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_deployment_variable_create#Creates a new variable for a deployment environment.6 params

Creates a new variable for a deployment environment.

NameTypeRequiredDescription
environment_uuidstringrequiredThe UUID of the environment.
keystringrequiredVariable name.
repo_slugstringrequiredThe repository slug or UUID.
valuestringrequiredVariable value.
workspacestringrequiredThe workspace slug or UUID.
securedstringoptionalWhether the variable is secret (masked in logs).
bitbucket_deployment_variable_delete#Deletes a variable from a deployment environment.4 params

Deletes a variable from a deployment environment.

NameTypeRequiredDescription
environment_uuidstringrequiredThe UUID of the environment.
repo_slugstringrequiredThe repository slug or UUID.
variable_uuidstringrequiredThe UUID of the variable.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_deployment_variable_update#Updates an existing variable for a deployment environment.7 params

Updates an existing variable for a deployment environment.

NameTypeRequiredDescription
environment_uuidstringrequiredThe UUID of the environment.
keystringrequiredVariable name.
repo_slugstringrequiredThe repository slug or UUID.
valuestringrequiredVariable value.
variable_uuidstringrequiredThe UUID of the variable.
workspacestringrequiredThe workspace slug or UUID.
securedstringoptionalWhether the variable is secret.
bitbucket_deployment_variables_list#Lists all variables for a deployment environment.3 params

Lists all variables for a deployment environment.

NameTypeRequiredDescription
environment_uuidstringrequiredThe UUID of the environment.
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_deployments_list#Lists all deployments for a repository.2 params

Lists all deployments for a repository.

NameTypeRequiredDescription
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_diff_get#Returns a JSON summary of file changes (diffstat) for a given commit spec (e.g. commit hash, branch..branch). Shows which files were added, modified, or deleted with line counts.4 params

Returns a JSON summary of file changes (diffstat) for a given commit spec (e.g. commit hash, branch..branch). Shows which files were added, modified, or deleted with line counts.

NameTypeRequiredDescription
repo_slugstringrequiredThe repository slug or UUID.
specstringrequiredDiff spec in the form of 'hash1..hash2' or 'branch1..branch2'.
workspacestringrequiredThe workspace slug or UUID.
pathstringoptionalLimit diff to a specific file path.
bitbucket_diffstat_get#Returns the diff stats between two commits or a branch/commit spec in a repository.3 params

Returns the diff stats between two commits or a branch/commit spec in a repository.

NameTypeRequiredDescription
repo_slugstringrequiredThe repository slug or UUID.
specstringrequiredRevision spec e.g. 'main..feature' or commit SHA.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_download_delete#Deletes a specific download artifact from a repository.3 params

Deletes a specific download artifact from a repository.

NameTypeRequiredDescription
filenamestringrequiredThe filename of the download artifact.
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_downloads_list#Lists all download artifacts for a repository.2 params

Lists all download artifacts for a repository.

NameTypeRequiredDescription
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_environment_create#Creates a new deployment environment for a repository.4 params

Creates a new deployment environment for a repository.

NameTypeRequiredDescription
environment_typestringrequiredType: Test, Staging, or Production.
namestringrequiredName of the environment.
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_environment_delete#Deletes a deployment environment by UUID.3 params

Deletes a deployment environment by UUID.

NameTypeRequiredDescription
environment_uuidstringrequiredThe UUID of the environment.
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_environment_get#Returns a specific deployment environment by UUID.3 params

Returns a specific deployment environment by UUID.

NameTypeRequiredDescription
environment_uuidstringrequiredThe UUID of the environment.
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_environments_list#Lists all deployment environments for a repository (e.g. Test, Staging, Production).2 params

Lists all deployment environments for a repository (e.g. Test, Staging, Production).

NameTypeRequiredDescription
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_file_history_list#Lists the commits that modified a specific file path.4 params

Lists the commits that modified a specific file path.

NameTypeRequiredDescription
commitstringrequiredThe commit hash or branch name.
pathstringrequiredPath to the file in the repository.
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_issue_comment_create#Posts a new comment on a Bitbucket issue.4 params

Posts a new comment on a Bitbucket issue.

NameTypeRequiredDescription
contentstringrequiredThe comment text (Markdown supported).
issue_idintegerrequiredThe issue ID to comment on.
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_issue_comment_delete#Deletes a specific comment on an issue.4 params

Deletes a specific comment on an issue.

NameTypeRequiredDescription
comment_idstringrequiredThe numeric ID of the comment.
issue_idstringrequiredThe numeric issue ID.
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_issue_comment_update#Updates an existing comment on an issue.5 params

Updates an existing comment on an issue.

NameTypeRequiredDescription
comment_idstringrequiredThe numeric ID of the comment.
contentstringrequiredUpdated comment text (Markdown).
issue_idstringrequiredThe numeric issue ID.
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_issue_comments_list#Returns all comments on a Bitbucket issue.3 params

Returns all comments on a Bitbucket issue.

NameTypeRequiredDescription
issue_idintegerrequiredThe issue ID.
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_issue_create#Creates a new issue in a Bitbucket repository's issue tracker.7 params

Creates a new issue in a Bitbucket repository's issue tracker.

NameTypeRequiredDescription
repo_slugstringrequiredThe repository slug or UUID.
titlestringrequiredTitle of the issue.
workspacestringrequiredThe workspace slug or UUID.
assignee_account_idstringoptionalAccount ID of the assignee.
contentstringoptionalDescription/body of the issue (Markdown supported).
kindstringoptionalIssue kind: bug, enhancement, proposal, or task.
prioritystringoptionalPriority: trivial, minor, major, critical, or blocker.
bitbucket_issue_delete#Deletes an issue from a Bitbucket repository's issue tracker.3 params

Deletes an issue from a Bitbucket repository's issue tracker.

NameTypeRequiredDescription
issue_idintegerrequiredThe issue ID to delete.
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_issue_get#Returns details of a specific issue in a Bitbucket repository.3 params

Returns details of a specific issue in a Bitbucket repository.

NameTypeRequiredDescription
issue_idintegerrequiredThe issue ID.
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_issue_unvote#Removes a vote from an issue.3 params

Removes a vote from an issue.

NameTypeRequiredDescription
issue_idstringrequiredThe numeric issue ID.
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_issue_unwatch#Stops watching an issue.3 params

Stops watching an issue.

NameTypeRequiredDescription
issue_idstringrequiredThe numeric issue ID.
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_issue_update#Updates an existing issue in a Bitbucket repository.8 params

Updates an existing issue in a Bitbucket repository.

NameTypeRequiredDescription
issue_idintegerrequiredThe issue ID to update.
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
contentstringoptionalNew content/body for the issue.
kindstringoptionalIssue kind: bug, enhancement, proposal, or task.
prioritystringoptionalPriority: trivial, minor, major, critical, or blocker.
statusstringoptionalIssue status: new, open, resolved, on hold, invalid, duplicate, or wontfix.
titlestringoptionalNew title for the issue.
bitbucket_issue_vote#Casts a vote for an issue.3 params

Casts a vote for an issue.

NameTypeRequiredDescription
issue_idstringrequiredThe numeric issue ID.
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_issue_vote_get#Checks if the authenticated user has voted for an issue.3 params

Checks if the authenticated user has voted for an issue.

NameTypeRequiredDescription
issue_idstringrequiredThe numeric issue ID.
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_issue_watch#Starts watching an issue to receive notifications.3 params

Starts watching an issue to receive notifications.

NameTypeRequiredDescription
issue_idstringrequiredThe numeric issue ID.
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_issue_watch_get#Checks if the authenticated user is watching an issue.3 params

Checks if the authenticated user is watching an issue.

NameTypeRequiredDescription
issue_idstringrequiredThe numeric issue ID.
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_issues_list#Returns all issues in a Bitbucket repository's issue tracker.4 params

Returns all issues in a Bitbucket repository's issue tracker.

NameTypeRequiredDescription
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
qstringoptionalFilter query, e.g. status="open" AND priority="major".
sortstringoptionalSort field, e.g. -updated_on.
bitbucket_merge_base_get#Returns the common ancestor (merge base) between two commits.3 params

Returns the common ancestor (merge base) between two commits.

NameTypeRequiredDescription
repo_slugstringrequiredThe repository slug or UUID.
revspecstringrequiredTwo commits separated by '..', e.g. 'abc123..def456'.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_milestone_get#Returns a specific milestone by ID from the issue tracker.3 params

Returns a specific milestone by ID from the issue tracker.

NameTypeRequiredDescription
milestone_idstringrequiredThe numeric ID of the milestone.
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_milestones_list#Lists all milestones defined for a repository's issue tracker.2 params

Lists all milestones defined for a repository's issue tracker.

NameTypeRequiredDescription
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_pipeline_get#Returns details of a specific Bitbucket pipeline run by its UUID.3 params

Returns details of a specific Bitbucket pipeline run by its UUID.

NameTypeRequiredDescription
pipeline_uuidstringrequiredThe pipeline UUID.
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_pipeline_schedule_create#Creates a new pipeline schedule for a repository.5 params

Creates a new pipeline schedule for a repository.

NameTypeRequiredDescription
branchstringrequiredBranch to run the pipeline on.
cron_expressionstringrequiredCron schedule expression (e.g. '0 0 * * *' for daily midnight).
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
enabledstringoptionalWhether the schedule is active.
bitbucket_pipeline_schedule_delete#Deletes a pipeline schedule.3 params

Deletes a pipeline schedule.

NameTypeRequiredDescription
repo_slugstringrequiredThe repository slug or UUID.
schedule_uuidstringrequiredThe UUID of the schedule.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_pipeline_schedule_get#Returns a specific pipeline schedule by UUID.3 params

Returns a specific pipeline schedule by UUID.

NameTypeRequiredDescription
repo_slugstringrequiredThe repository slug or UUID.
schedule_uuidstringrequiredThe UUID of the schedule.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_pipeline_schedule_update#Updates a pipeline schedule.5 params

Updates a pipeline schedule.

NameTypeRequiredDescription
repo_slugstringrequiredThe repository slug or UUID.
schedule_uuidstringrequiredThe UUID of the schedule.
workspacestringrequiredThe workspace slug or UUID.
cron_expressionstringoptionalUpdated cron expression.
enabledstringoptionalWhether the schedule is active.
bitbucket_pipeline_schedules_list#Lists all pipeline schedules for a repository.2 params

Lists all pipeline schedules for a repository.

NameTypeRequiredDescription
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_pipeline_step_log_get#Retrieves the log output for a specific step of a Bitbucket pipeline run.4 params

Retrieves the log output for a specific step of a Bitbucket pipeline run.

NameTypeRequiredDescription
pipeline_uuidstringrequiredThe UUID of the pipeline.
repo_slugstringrequiredThe repository slug or UUID.
step_uuidstringrequiredThe UUID of the pipeline step.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_pipeline_steps_list#Returns a list of steps for a specific Bitbucket pipeline run.3 params

Returns a list of steps for a specific Bitbucket pipeline run.

NameTypeRequiredDescription
pipeline_uuidstringrequiredThe UUID of the pipeline.
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_pipeline_stop#Stops a running Bitbucket pipeline by sending a stop request to the specified pipeline UUID.3 params

Stops a running Bitbucket pipeline by sending a stop request to the specified pipeline UUID.

NameTypeRequiredDescription
pipeline_uuidstringrequiredThe UUID of the pipeline to stop.
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_pipeline_trigger#Triggers a new Bitbucket pipeline run for a specific branch, tag, or commit.6 params

Triggers a new Bitbucket pipeline run for a specific branch, tag, or commit.

NameTypeRequiredDescription
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
branchstringoptionalBranch name to run the pipeline on.
commit_hashstringoptionalSpecific commit hash to run the pipeline on.
pipeline_namestringoptionalCustom pipeline name defined in bitbucket-pipelines.yml.
variablesstringoptionalJSON array of pipeline variables, e.g. [{"key":"ENV","value":"prod"}].
bitbucket_pipeline_variable_create#Creates a new pipeline variable for a Bitbucket repository.5 params

Creates a new pipeline variable for a Bitbucket repository.

NameTypeRequiredDescription
keystringrequiredThe variable name/key.
repo_slugstringrequiredThe repository slug or UUID.
valuestringrequiredThe variable value.
workspacestringrequiredThe workspace slug or UUID.
securedbooleanoptionalIf true, the variable value is masked in logs.
bitbucket_pipeline_variable_delete#Deletes a pipeline variable from a Bitbucket repository.3 params

Deletes a pipeline variable from a Bitbucket repository.

NameTypeRequiredDescription
repo_slugstringrequiredThe repository slug or UUID.
variable_uuidstringrequiredThe UUID of the pipeline variable to delete.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_pipeline_variable_update#Updates an existing pipeline variable for a Bitbucket repository.6 params

Updates an existing pipeline variable for a Bitbucket repository.

NameTypeRequiredDescription
keystringrequiredThe new variable name/key.
repo_slugstringrequiredThe repository slug or UUID.
valuestringrequiredThe new variable value.
variable_uuidstringrequiredThe UUID of the pipeline variable to update.
workspacestringrequiredThe workspace slug or UUID.
securedbooleanoptionalIf true, the variable value is masked in logs.
bitbucket_pipeline_variables_list#Returns a list of pipeline variables defined for the repository.2 params

Returns a list of pipeline variables defined for the repository.

NameTypeRequiredDescription
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_pipelines_list#Returns pipeline runs for a Bitbucket repository, optionally filtered by status or branch.3 params

Returns pipeline runs for a Bitbucket repository, optionally filtered by status or branch.

NameTypeRequiredDescription
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
sortstringoptionalSort field, e.g. -created_on for newest first.
bitbucket_pull_request_activity_list#Lists all activity (comments, approvals, updates) for a specific pull request.3 params

Lists all activity (comments, approvals, updates) for a specific pull request.

NameTypeRequiredDescription
pull_request_idstringrequiredThe numeric pull request ID.
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_pull_request_approve#Approves a pull request on behalf of the authenticated user.3 params

Approves a pull request on behalf of the authenticated user.

NameTypeRequiredDescription
pull_request_idintegerrequiredThe pull request ID to approve.
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_pull_request_comment_create#Posts a new comment on a pull request.4 params

Posts a new comment on a pull request.

NameTypeRequiredDescription
contentstringrequiredThe comment text (Markdown supported).
pull_request_idintegerrequiredThe pull request ID.
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_pull_request_comment_delete#Deletes a comment from a pull request.4 params

Deletes a comment from a pull request.

NameTypeRequiredDescription
comment_idintegerrequiredThe comment ID to delete.
pull_request_idintegerrequiredThe pull request ID.
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_pull_request_comments_list#Returns all comments on a pull request.3 params

Returns all comments on a pull request.

NameTypeRequiredDescription
pull_request_idintegerrequiredThe pull request ID.
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_pull_request_commits_list#Returns all commits included in a pull request.3 params

Returns all commits included in a pull request.

NameTypeRequiredDescription
pull_request_idintegerrequiredThe pull request ID.
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_pull_request_create#Creates a new pull request in a Bitbucket repository.8 params

Creates a new pull request in a Bitbucket repository.

NameTypeRequiredDescription
repo_slugstringrequiredThe repository slug or UUID.
source_branchstringrequiredSource branch name.
titlestringrequiredTitle of the pull request.
workspacestringrequiredThe workspace slug or UUID.
close_source_branchbooleanoptionalWhether to close the source branch after merge.
descriptionstringoptionalDescription of the pull request.
destination_branchstringoptionalDestination branch to merge into.
reviewersstringoptionalJSON array of reviewer account UUIDs, e.g. [{"uuid":"{account-uuid}"}].
bitbucket_pull_request_decline#Declines (rejects) an open pull request in a Bitbucket repository.3 params

Declines (rejects) an open pull request in a Bitbucket repository.

NameTypeRequiredDescription
pull_request_idintegerrequiredThe pull request ID to decline.
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_pull_request_diffstat_get#Returns a JSON diffstat for a pull request given the source and destination commit hashes. Get these from bitbucket_pull_request_get (source.commit.hash and destination.commit.hash).5 params

Returns a JSON diffstat for a pull request given the source and destination commit hashes. Get these from bitbucket_pull_request_get (source.commit.hash and destination.commit.hash).

NameTypeRequiredDescription
dest_commitstringrequiredDestination commit hash from the pull request (destination.commit.hash).
repo_slugstringrequiredThe repository slug or UUID.
source_commitstringrequiredSource commit hash from the pull request (source.commit.hash).
workspacestringrequiredThe workspace slug or UUID.
pull_request_idstringoptionalThe numeric pull request ID.
bitbucket_pull_request_get#Returns details of a specific pull request including title, description, source/destination branches, state, and reviewers.3 params

Returns details of a specific pull request including title, description, source/destination branches, state, and reviewers.

NameTypeRequiredDescription
pull_request_idintegerrequiredThe pull request ID.
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_pull_request_merge#Merges a pull request in a Bitbucket repository.6 params

Merges a pull request in a Bitbucket repository.

NameTypeRequiredDescription
pull_request_idintegerrequiredThe pull request ID to merge.
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
close_source_branchbooleanoptionalWhether to close the source branch after merge.
merge_strategystringoptionalMerge strategy: merge_commit, squash, or fast_forward.
messagestringoptionalCustom commit message for the merge commit.
bitbucket_pull_request_remove_request_changes#Removes a change request from a pull request.3 params

Removes a change request from a pull request.

NameTypeRequiredDescription
pull_request_idstringrequiredThe numeric pull request ID.
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_pull_request_request_changes#Requests changes on a pull request, blocking it from merging until changes are addressed.3 params

Requests changes on a pull request, blocking it from merging until changes are addressed.

NameTypeRequiredDescription
pull_request_idstringrequiredThe numeric pull request ID.
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_pull_request_statuses_list#Lists all commit statuses for the commits in a pull request.3 params

Lists all commit statuses for the commits in a pull request.

NameTypeRequiredDescription
pull_request_idstringrequiredThe numeric pull request ID.
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_pull_request_task_create#Creates a new task on a pull request.5 params

Creates a new task on a pull request.

NameTypeRequiredDescription
contentstringrequiredThe task description.
pull_request_idstringrequiredThe numeric pull request ID.
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
pendingstringoptionalWhether the task is pending (true) or resolved (false).
bitbucket_pull_request_task_delete#Deletes a task from a pull request.4 params

Deletes a task from a pull request.

NameTypeRequiredDescription
pull_request_idstringrequiredThe numeric pull request ID.
repo_slugstringrequiredThe repository slug or UUID.
task_idstringrequiredThe numeric task ID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_pull_request_task_get#Returns a specific task on a pull request.4 params

Returns a specific task on a pull request.

NameTypeRequiredDescription
pull_request_idstringrequiredThe numeric pull request ID.
repo_slugstringrequiredThe repository slug or UUID.
task_idstringrequiredThe numeric task ID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_pull_request_task_update#Updates a task on a pull request (e.g. resolve/reopen or change content).6 params

Updates a task on a pull request (e.g. resolve/reopen or change content).

NameTypeRequiredDescription
pull_request_idstringrequiredThe numeric pull request ID.
repo_slugstringrequiredThe repository slug or UUID.
task_idstringrequiredThe numeric task ID.
workspacestringrequiredThe workspace slug or UUID.
contentstringoptionalUpdated task description.
pendingstringoptionalSet to false to resolve the task, true to reopen.
bitbucket_pull_request_tasks_list#Lists all tasks on a pull request.3 params

Lists all tasks on a pull request.

NameTypeRequiredDescription
pull_request_idstringrequiredThe numeric pull request ID.
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_pull_request_unapprove#Removes the authenticated user's approval from a pull request.3 params

Removes the authenticated user's approval from a pull request.

NameTypeRequiredDescription
pull_request_idintegerrequiredThe pull request ID to unapprove.
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_pull_request_update#Updates a pull request's title, description, reviewers, or destination branch.6 params

Updates a pull request's title, description, reviewers, or destination branch.

NameTypeRequiredDescription
pull_request_idintegerrequiredThe pull request ID to update.
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
descriptionstringoptionalNew description for the pull request.
destination_branchstringoptionalNew destination branch.
titlestringoptionalNew title for the pull request.
bitbucket_pull_requests_activity_list#Lists overall activity for all pull requests in a repository.2 params

Lists overall activity for all pull requests in a repository.

NameTypeRequiredDescription
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_pull_requests_list#Returns pull requests for a Bitbucket repository, filterable by state.5 params

Returns pull requests for a Bitbucket repository, filterable by state.

NameTypeRequiredDescription
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
qstringoptionalQuery to filter pull requests.
sortstringoptionalSort field for pull requests.
statestringoptionalFilter by state: OPEN, MERGED, DECLINED, SUPERSEDED.
bitbucket_refs_list#Lists all branches and tags (refs) for a repository.2 params

Lists all branches and tags (refs) for a repository.

NameTypeRequiredDescription
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_repositories_list#Returns all repositories in a Bitbucket workspace.3 params

Returns all repositories in a Bitbucket workspace.

NameTypeRequiredDescription
workspacestringrequiredThe workspace slug or UUID.
qstringoptionalQuery to filter repositories, e.g. name~"my-repo".
sortstringoptionalSort field, e.g. -updated_on for newest first.
bitbucket_repository_create#Creates a new Bitbucket repository in the specified workspace.8 params

Creates a new Bitbucket repository in the specified workspace.

NameTypeRequiredDescription
repo_slugstringrequiredThe slug for the new repository.
workspacestringrequiredThe workspace slug or UUID.
descriptionstringoptionalA description for the repository.
has_issuesbooleanoptionalEnable the issue tracker for this repository.
has_wikibooleanoptionalEnable the wiki for this repository.
is_privatebooleanoptionalWhether the repository is private. Default is true.
project_keystringoptionalKey of the project to associate the repository with.
scmstringoptionalSource control type: git or hg. Default is git.
bitbucket_repository_delete#Permanently deletes a Bitbucket repository and all its data.2 params

Permanently deletes a Bitbucket repository and all its data.

NameTypeRequiredDescription
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_repository_fork#Forks a Bitbucket repository into the authenticated user's workspace or a specified workspace.5 params

Forks a Bitbucket repository into the authenticated user's workspace or a specified workspace.

NameTypeRequiredDescription
repo_slugstringrequiredThe repository slug to fork.
workspacestringrequiredThe workspace slug of the source repository.
is_privatebooleanoptionalWhether the fork should be private.
namestringoptionalName for the forked repository. Defaults to the source name.
workspace_destinationstringoptionalWorkspace to fork into. Defaults to the authenticated user's workspace.
bitbucket_repository_get#Returns details of a specific Bitbucket repository including description, language, size, and clone URLs.2 params

Returns details of a specific Bitbucket repository including description, language, size, and clone URLs.

NameTypeRequiredDescription
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_repository_permission_group_delete#Removes a group's explicit permission from a repository.3 params

Removes a group's explicit permission from a repository.

NameTypeRequiredDescription
group_slugstringrequiredThe group slug.
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_repository_permission_group_get#Returns the explicit repository permission for a specific group.3 params

Returns the explicit repository permission for a specific group.

NameTypeRequiredDescription
group_slugstringrequiredThe group slug.
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_repository_permission_group_update#Sets the explicit permission for a group on a repository.4 params

Sets the explicit permission for a group on a repository.

NameTypeRequiredDescription
group_slugstringrequiredThe group slug.
permissionstringrequiredPermission level: read, write, or admin.
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_repository_permission_user_delete#Removes a user's explicit permission from a repository.3 params

Removes a user's explicit permission from a repository.

NameTypeRequiredDescription
repo_slugstringrequiredThe repository slug or UUID.
usernamestringrequiredThe user's account ID or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_repository_permission_user_get#Returns the explicit repository permission for a specific user.3 params

Returns the explicit repository permission for a specific user.

NameTypeRequiredDescription
repo_slugstringrequiredThe repository slug or UUID.
usernamestringrequiredThe user's account ID or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_repository_permission_user_update#Sets the explicit permission for a user on a repository.4 params

Sets the explicit permission for a user on a repository.

NameTypeRequiredDescription
permissionstringrequiredPermission level: read, write, or admin.
repo_slugstringrequiredThe repository slug or UUID.
usernamestringrequiredThe user's account ID or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_repository_permissions_groups_list#Lists all explicit group permissions for a repository.2 params

Lists all explicit group permissions for a repository.

NameTypeRequiredDescription
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_repository_permissions_users_list#Lists all explicit user permissions for a repository.2 params

Lists all explicit user permissions for a repository.

NameTypeRequiredDescription
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_repository_update#Updates a Bitbucket repository's description, privacy, or other settings.6 params

Updates a Bitbucket repository's description, privacy, or other settings.

NameTypeRequiredDescription
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
descriptionstringoptionalNew description for the repository.
has_issuesbooleanoptionalEnable or disable the issue tracker.
has_wikibooleanoptionalEnable or disable the wiki.
is_privatebooleanoptionalWhether the repository should be private.
bitbucket_repository_watchers_list#Lists all users watching a repository.2 params

Lists all users watching a repository.

NameTypeRequiredDescription
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_src_get#Retrieves metadata (size, type, mimetype, last commit) for a file or directory in a Bitbucket repository at a specific commit. Returns JSON metadata via format=meta.4 params

Retrieves metadata (size, type, mimetype, last commit) for a file or directory in a Bitbucket repository at a specific commit. Returns JSON metadata via format=meta.

NameTypeRequiredDescription
commitstringrequiredBranch name, tag, or commit hash.
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
pathstringoptionalPath to the file or directory within the repository.
bitbucket_tag_create#Creates a new tag in a Bitbucket repository pointing to a specific commit.5 params

Creates a new tag in a Bitbucket repository pointing to a specific commit.

NameTypeRequiredDescription
namestringrequiredName for the new tag.
repo_slugstringrequiredThe repository slug or UUID.
target_hashstringrequiredThe commit hash to tag.
workspacestringrequiredThe workspace slug or UUID.
messagestringoptionalOptional message for an annotated tag.
bitbucket_tag_delete#Deletes a tag from a Bitbucket repository.3 params

Deletes a tag from a Bitbucket repository.

NameTypeRequiredDescription
namestringrequiredThe tag name to delete.
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_tags_list#Returns all tags in a Bitbucket repository.4 params

Returns all tags in a Bitbucket repository.

NameTypeRequiredDescription
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
qstringoptionalFilter query for tags.
sortstringoptionalSort field.
bitbucket_user_emails_list#Returns all email addresses associated with the authenticated Bitbucket user.0 params

Returns all email addresses associated with the authenticated Bitbucket user.

bitbucket_user_get#Returns the authenticated user's Bitbucket profile including display name, account ID, and account links.0 params

Returns the authenticated user's Bitbucket profile including display name, account ID, and account links.

bitbucket_version_get#Returns a specific version by ID from the issue tracker.3 params

Returns a specific version by ID from the issue tracker.

NameTypeRequiredDescription
repo_slugstringrequiredThe repository slug or UUID.
version_idstringrequiredThe numeric ID of the version.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_versions_list#Lists all versions defined for a repository's issue tracker.2 params

Lists all versions defined for a repository's issue tracker.

NameTypeRequiredDescription
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_webhook_create#Creates a new webhook on a Bitbucket repository to receive event notifications at a specified URL.7 params

Creates a new webhook on a Bitbucket repository to receive event notifications at a specified URL.

NameTypeRequiredDescription
eventsstringrequiredJSON array of event types to subscribe to, e.g. ["repo:push","pullrequest:created"].
repo_slugstringrequiredThe repository slug or UUID.
urlstringrequiredThe URL to receive webhook payloads.
workspacestringrequiredThe workspace slug or UUID.
activebooleanoptionalWhether the webhook is active.
descriptionstringoptionalA human-readable description of the webhook.
secretstringoptionalSecret string used to compute the HMAC signature of webhook payloads.
bitbucket_webhook_delete#Deletes a webhook from a Bitbucket repository.3 params

Deletes a webhook from a Bitbucket repository.

NameTypeRequiredDescription
repo_slugstringrequiredThe repository slug or UUID.
uidstringrequiredThe UID of the webhook to delete.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_webhook_get#Returns the details of a specific webhook installed on a Bitbucket repository.3 params

Returns the details of a specific webhook installed on a Bitbucket repository.

NameTypeRequiredDescription
repo_slugstringrequiredThe repository slug or UUID.
uidstringrequiredThe UID of the webhook.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_webhook_update#Updates an existing webhook on a Bitbucket repository, including its URL, events, and active status.7 params

Updates an existing webhook on a Bitbucket repository, including its URL, events, and active status.

NameTypeRequiredDescription
eventsstringrequiredJSON array of event types to subscribe to, e.g. ["repo:push","pullrequest:created"].
repo_slugstringrequiredThe repository slug or UUID.
uidstringrequiredThe UID of the webhook to update.
urlstringrequiredThe new URL to receive webhook payloads.
workspacestringrequiredThe workspace slug or UUID.
activebooleanoptionalWhether the webhook is active.
descriptionstringoptionalA human-readable description of the webhook.
bitbucket_webhooks_list#Returns a list of webhooks installed on a Bitbucket repository.2 params

Returns a list of webhooks installed on a Bitbucket repository.

NameTypeRequiredDescription
repo_slugstringrequiredThe repository slug or UUID.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_workspace_get#Returns details of a specific Bitbucket workspace by its slug.1 param

Returns details of a specific Bitbucket workspace by its slug.

NameTypeRequiredDescription
workspacestringrequiredThe workspace slug or UUID.
bitbucket_workspace_members_list#Returns all members of a Bitbucket workspace.1 param

Returns all members of a Bitbucket workspace.

NameTypeRequiredDescription
workspacestringrequiredThe workspace slug or UUID.
bitbucket_workspace_pipeline_variable_create#Creates a new pipeline variable at the workspace level.4 params

Creates a new pipeline variable at the workspace level.

NameTypeRequiredDescription
keystringrequiredVariable name.
valuestringrequiredVariable value.
workspacestringrequiredThe workspace slug or UUID.
securedstringoptionalWhether the variable is secret (masked in logs).
bitbucket_workspace_pipeline_variable_delete#Deletes a workspace pipeline variable.2 params

Deletes a workspace pipeline variable.

NameTypeRequiredDescription
variable_uuidstringrequiredThe UUID of the variable.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_workspace_pipeline_variable_get#Returns a specific workspace pipeline variable by UUID.2 params

Returns a specific workspace pipeline variable by UUID.

NameTypeRequiredDescription
variable_uuidstringrequiredThe UUID of the variable.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_workspace_pipeline_variable_update#Updates a workspace pipeline variable.5 params

Updates a workspace pipeline variable.

NameTypeRequiredDescription
keystringrequiredVariable name.
valuestringrequiredVariable value.
variable_uuidstringrequiredThe UUID of the variable.
workspacestringrequiredThe workspace slug or UUID.
securedstringoptionalWhether the variable is secret.
bitbucket_workspace_pipeline_variables_list#Lists all pipeline variables defined at the workspace level.1 param

Lists all pipeline variables defined at the workspace level.

NameTypeRequiredDescription
workspacestringrequiredThe workspace slug or UUID.
bitbucket_workspace_project_create#Creates a new project in a workspace.5 params

Creates a new project in a workspace.

NameTypeRequiredDescription
keystringrequiredUnique key for the project (uppercase letters/numbers).
namestringrequiredName of the project.
workspacestringrequiredThe workspace slug or UUID.
descriptionstringoptionalDescription of the project.
is_privatestringoptionalWhether the project is private.
bitbucket_workspace_project_delete#Deletes a project from a workspace.2 params

Deletes a project from a workspace.

NameTypeRequiredDescription
project_keystringrequiredThe project key.
workspacestringrequiredThe workspace slug or UUID.
bitbucket_workspace_project_get#Returns a specific project from a workspace by project key.2 params

Returns a specific project from a workspace by project key.

NameTypeRequiredDescription
project_keystringrequiredThe project key (e.g. PROJ).
workspacestringrequiredThe workspace slug or UUID.
bitbucket_workspace_project_update#Updates an existing project in a workspace.6 params

Updates an existing project in a workspace.

NameTypeRequiredDescription
keystringrequiredThe project key to set in the request body. To keep the existing key, pass the same value as project_key. To rename the key, pass the new key here.
namestringrequiredUpdated name of the project.
project_keystringrequiredThe current project key used in the URL path to identify which project to update (e.g. PROJ).
workspacestringrequiredThe workspace slug or UUID.
descriptionstringoptionalUpdated description.
is_privatestringoptionalWhether the project is private.
bitbucket_workspace_projects_list#Lists all projects in a workspace.1 param

Lists all projects in a workspace.

NameTypeRequiredDescription
workspacestringrequiredThe workspace slug or UUID.
bitbucket_workspace_search_code#Searches for code across all repositories in a workspace.4 params

Searches for code across all repositories in a workspace.

NameTypeRequiredDescription
search_querystringrequiredCode search query string.
workspacestringrequiredThe workspace slug or UUID.
pageintegeroptionalPage number for pagination.
pagelenintegeroptionalNumber of results per page (max 100).