Connectors

Cloud Infrastructure & DevOps

Bitbucket

Git hosting: repositories, pull requests, pipelines, and commit events
Bitbucket API referenceAPI checked August 17, 2026
Signs in with
Username and password
Runs on
Cloud or On-Prem Worker
Operations
331
Ready-made triggers
0

Connect Bitbucket

  1. In Neblex open Connect › Connections and click New Connection.
  2. Search for Bitbucket and give the connection a clear name.
  3. Fill in the fields. Secret values are encrypted and never shown again.
  4. Click Test, then Create Connection.
FieldWhat to enter
UsernameRequired
App passwordRequiredSecret

Use it in a flow

  1. Open a flow, open the node library and search for Bitbucket.
  2. Drag it onto the canvas and choose an Operation and your connection.
  3. Map the operation's fields from earlier steps, or click Map with Matt.
  4. Use Test this step to see what it returns, then save.

To start a flow from Bitbucket without a ready-made trigger: a Poll for changes trigger can check one of its list operations on a schedule and pass on only what is new; if Bitbucket can send webhooks, a Webhook trigger receives them at its own URL.

Operations

331 operations in 23 groups. Each one is a step you can add to a flow.

Addon3
Delete an appdeleteaddonDELETEDeletes the application for the user.
Get the client key of a Connect addongetaddon_addon_key_client_keyGETGet the client key of the Connect addon associated with a Forge app install via forgeAppId linkage.
Update an installed appputaddonPUTUpdates the application installation for the user.
Branch Restrictions5
Create a branch restriction rulepostrepositories_workspace_repo_slug_branch_restrictionsPOSTCreates a new branch restriction rule for a repository.
Delete a branch restriction ruledeleterepositories_workspace_repo_slug_branch_restrictions_idDELETEDeletes an existing branch restriction rule.
Get a branch restriction rulegetrepositories_workspace_repo_slug_branch_restrictions_idGETReturns a specific branch restriction rule.
List branch restrictionsgetrepositories_workspace_repo_slug_branch_restrictionsGETReturns a paginated list of all branch restrictions on the repository.
Update a branch restriction ruleputrepositories_workspace_repo_slug_branch_restrictions_idPUTUpdates an existing branch restriction rule.
Branching Model7
Get the branching model config for a projectgetworkspaces_workspace_projects_project_key_branching_model_settingsGETReturn the branching model configuration for a project.
Get the branching model config for a repositorygetrepositories_workspace_repo_slug_branching_model_settingsGETReturn the branching model configuration for a repository.
Get the branching model for a projectgetworkspaces_workspace_projects_project_key_branching_modelGETReturn the branching model set at the project level.
Get the branching model for a repositorygetrepositories_workspace_repo_slug_branching_modelGETReturn the branching model as applied to the repository.
Get the effective, or currently applied, branching model for a repositorygetrepositories_workspace_repo_slug_effective_branching_modelGETGet the effective, or currently applied, branching model for a repository
Update the branching model config for a projectputworkspaces_workspace_projects_project_key_branching_model_settingsPUTUpdate the branching model configuration for a project.
Update the branching model config for a repositoryputrepositories_workspace_repo_slug_branching_model_settingsPUTUpdate the branching model configuration for a repository.
Commit Statuses4
Create a build status for a commitpostrepositories_workspace_repo_slug_commit_commit_statuses_buildPOSTCreates a new build status against the specified commit.
Get a build status for a commitgetrepositories_workspace_repo_slug_commit_commit_statuses_build_keyGETReturns the specified build status for a commit.
List commit statuses for a commitgetrepositories_workspace_repo_slug_commit_commit_statusesGETReturns all statuses (e.g. build results) for a specific commit.
Update a build status for a commitputrepositories_workspace_repo_slug_commit_commit_statuses_build_keyPUTUsed to update the current status of a build status object on the specific commit.
Commits17
Approve a commitpostrepositories_workspace_repo_slug_commit_commit_approvePOSTApprove the specified commit as the authenticated user.
Compare two commit diff statsgetrepositories_workspace_repo_slug_diffstat_specGETProduces a response in JSON format with a record for every path modified, including information on the type of the change and the number of lines added and removed.
Compare two commitsgetrepositories_workspace_repo_slug_diff_specGETProduces a raw git-style diff.
Create comment for a commitpostrepositories_workspace_repo_slug_commit_commit_commentsPOSTCreates new comment on the specified commit.
Delete a commit commentdeleterepositories_workspace_repo_slug_commit_commit_comments_comment_idDELETEDeletes the specified commit comment.
Get a commitgetrepositories_workspace_repo_slug_commit_commitGETReturns the specified commit.
Get a commit commentgetrepositories_workspace_repo_slug_commit_commit_comments_comment_idGETReturns the specified commit comment.
Get a patch for two commitsgetrepositories_workspace_repo_slug_patch_specGETProduces a raw patch for a single commit (diffed against its first parent), or a patch-series for a revspec of 2 commits (e.g. 3a8b42..9ff173 where the first commit represents the source...
Get file conflicts for a commit specgetrepositories_workspace_repo_slug_file_conflicts_specGETGet file conflicts for a commit spec
Get the common ancestor between two commitsgetrepositories_workspace_repo_slug_merge_base_revspecGETReturns the best common ancestor between two commits, specified in a revspec of 2 commits (e.g. 3a8b42..9ff173).
List a commit's commentsgetrepositories_workspace_repo_slug_commit_commit_commentsGETReturns the commit's comments.
List commitsgetrepositories_workspace_repo_slug_commitsGETThese are the repository's commits.
List commits for revisiongetrepositories_workspace_repo_slug_commits_revisionGETThese are the repository's commits.
List commits for revision using include/excludepostrepositories_workspace_repo_slug_commits_revisionPOSTIdentical to GET /repositories/{workspace}/{repo slug}/commits/{revision}, except that POST allows clients to place the include and exclude parameters in the request body to avoid URL...
List commits with include/excludepostrepositories_workspace_repo_slug_commitsPOSTIdentical to GET /repositories/{workspace}/{repo slug}/commits, except that POST allows clients to place the include and exclude parameters in the request body to avoid URL length issues.
Unapprove a commitdeleterepositories_workspace_repo_slug_commit_commit_approveDELETERedact the authenticated user's approval of the specified commit.
Update a commit commentputrepositories_workspace_repo_slug_commit_commit_comments_comment_idPUTUsed to update the contents of a comment.
Deployments16
Add a repository deploy keypostrepositories_workspace_repo_slug_deploy_keysPOSTCreate a new deploy key in a repository.
Create a project deploy keypostworkspaces_workspace_projects_project_key_deploy_keysPOSTCreate a new deploy key in a project.
Create an environmentcreateEnvironmentPOSTCreate an environment.
Delete a deploy key from a projectdeleteworkspaces_workspace_projects_project_key_deploy_keys_key_idDELETEThis deletes a deploy key from a project.
Delete a repository deploy keydeleterepositories_workspace_repo_slug_deploy_keys_key_idDELETEThis deletes a deploy key from a repository.
Delete an environmentdeleteEnvironmentForRepositoryDELETEDelete an environment
Get a deploymentgetDeploymentForRepositoryGETRetrieve a deployment
Get a project deploy keygetworkspaces_workspace_projects_project_key_deploy_keys_key_idGETReturns the deploy key belonging to a specific key ID.
Get a repository deploy keygetrepositories_workspace_repo_slug_deploy_keys_key_idGETReturns the deploy key belonging to a specific key.
Get an environmentgetEnvironmentForRepositoryGETRetrieve an environment
List deploymentsgetDeploymentsForRepositoryGETFind deployments
List environmentsgetEnvironmentsForRepositoryGETFind environments
List project deploy keysgetworkspaces_workspace_projects_project_key_deploy_keysGETReturns all deploy keys belonging to a project.
List repository deploy keysgetrepositories_workspace_repo_slug_deploy_keysGETReturns all deploy-keys belonging to a repository.
Update a repository deploy keyputrepositories_workspace_repo_slug_deploy_keys_key_idPUTUpdate an existing deploy key in a repository.
Update an environmentupdateEnvironmentForRepositoryPOSTUpdate an environment
Downloads4
Delete a download artifactdeleterepositories_workspace_repo_slug_downloads_filenameDELETEDeletes the specified download artifact from the repository.
Get a download artifact linkgetrepositories_workspace_repo_slug_downloads_filenameGETReturn a redirect to the contents of a download artifact.
List download artifactsgetrepositories_workspace_repo_slug_downloadsGETReturns a list of download links associated with the repository.
Upload a download artifactpostrepositories_workspace_repo_slug_downloadsPOSTUpload new download artifacts.
GPG4
Add a new GPG keypostusers_selected_user_gpg_keysPOSTAdds a new GPG public key to the specified user account and returns the resulting key.
Delete a GPG keydeleteusers_selected_user_gpg_keys_fingerprintDELETEDeletes a specific GPG public key from a user's account.
Get a GPG keygetusers_selected_user_gpg_keys_fingerprintGETReturns a specific GPG public key belonging to a user.
List GPG keysgetusers_selected_user_gpg_keysGETReturns a paginated list of the user's GPG public keys.
Issue Tracker33
Check if current user is watching a issuegetrepositories_workspace_repo_slug_issues_issue_id_watchGETIndicated whether or not the authenticated user is watching this issue.
Check if current user voted for an issuegetrepositories_workspace_repo_slug_issues_issue_id_voteGETCheck whether the authenticated user has voted for this issue.
Check issue export statusgetrepositories_workspace_repo_slug_issues_export_repo_name_issues_task_id_zipGETThis endpoint is used to poll for the progress of an issue export job and return the zip file after the job is complete.
Check issue import statusgetrepositories_workspace_repo_slug_issues_importGETWhen using GET, this endpoint reports the status of the current import task.
Create a comment on an issuepostrepositories_workspace_repo_slug_issues_issue_id_commentsPOSTCreates a new issue comment.
Create an issuepostrepositories_workspace_repo_slug_issuesPOSTCreates a new issue.
Delete a comment on an issuedeleterepositories_workspace_repo_slug_issues_issue_id_comments_comment_idDELETEDeletes the specified comment.
Delete an attachment for an issuedeleterepositories_workspace_repo_slug_issues_issue_id_attachments_pathDELETEDeletes an attachment.
Delete an issuedeleterepositories_workspace_repo_slug_issues_issue_idDELETEDeletes the specified issue.
Export issuespostrepositories_workspace_repo_slug_issues_exportPOSTA POST request to this endpoint initiates a new background celery task that archives the repo's issues.
Get a comment on an issuegetrepositories_workspace_repo_slug_issues_issue_id_comments_comment_idGETReturns the specified issue comment object.
Get a component for issuesgetrepositories_workspace_repo_slug_components_component_idGETReturns the specified issue tracker component object.
Get a defined version for issuesgetrepositories_workspace_repo_slug_versions_version_idGETReturns the specified issue tracker version object.
Get a milestonegetrepositories_workspace_repo_slug_milestones_milestone_idGETReturns the specified issue tracker milestone object.
Get an issuegetrepositories_workspace_repo_slug_issues_issue_idGETReturns the specified issue.
Get attachment for an issuegetrepositories_workspace_repo_slug_issues_issue_id_attachments_pathGETReturns the contents of the specified file attachment.
Get issue change objectgetrepositories_workspace_repo_slug_issues_issue_id_changes_change_idGETReturns the specified issue change object.
Import issuespostrepositories_workspace_repo_slug_issues_importPOSTA POST request to this endpoint will import the zip file given by the archive parameter into the repository.
List attachments for an issuegetrepositories_workspace_repo_slug_issues_issue_id_attachmentsGETReturns all attachments for this issue.
List changes on an issuegetrepositories_workspace_repo_slug_issues_issue_id_changesGETReturns the list of all changes that have been made to the specified issue.
List comments on an issuegetrepositories_workspace_repo_slug_issues_issue_id_commentsGETReturns a paginated list of all comments that were made on the specified issue.
List componentsgetrepositories_workspace_repo_slug_componentsGETReturns the components that have been defined in the issue tracker.
List defined versions for issuesgetrepositories_workspace_repo_slug_versionsGETReturns the versions that have been defined in the issue tracker.
List issuesgetrepositories_workspace_repo_slug_issuesGETReturns the issues in the issue tracker.
List milestonesgetrepositories_workspace_repo_slug_milestonesGETReturns the milestones that have been defined in the issue tracker.
Modify the state of an issuepostrepositories_workspace_repo_slug_issues_issue_id_changesPOSTMakes a change to the specified issue.
Remove vote for an issuedeleterepositories_workspace_repo_slug_issues_issue_id_voteDELETERetract your vote.
Stop watching an issuedeleterepositories_workspace_repo_slug_issues_issue_id_watchDELETEStop watching this issue.
Update a comment on an issueputrepositories_workspace_repo_slug_issues_issue_id_comments_comment_idPUTUpdates the content of the specified issue comment.
Update an issueputrepositories_workspace_repo_slug_issues_issue_idPUTModifies the issue.
Upload an attachment to an issuepostrepositories_workspace_repo_slug_issues_issue_id_attachmentsPOSTUpload new issue attachments.
Vote for an issueputrepositories_workspace_repo_slug_issues_issue_id_votePUTVote for this issue.
Watch an issueputrepositories_workspace_repo_slug_issues_issue_id_watchPUTStart watching this issue.
Pipelines68
Create a known hostcreateRepositoryPipelineKnownHostPOSTCreate a repository level known host.
Create a schedulecreateRepositoryPipelineSchedulePOSTCreate a schedule for the given repository.
Create a variable for a repositorycreateRepositoryPipelineVariablePOSTCreate a repository level variable.
Create a variable for a usercreatePipelineVariableForTeamPOSTCreate an account level variable.
Create a variable for a usercreatePipelineVariableForUserPOSTCreate a user level variable.
Create a variable for a workspacecreatePipelineVariableForWorkspacePOSTCreate a workspace level variable.
Create a variable for an environmentcreateDeploymentVariablePOSTCreate a deployment environment level variable.
Create repository runnercreateRepositoryRunnerPOSTCreate repository runner.
Create workspace runnercreateWorkspaceRunnerPOSTCreate workspace runner.
Delete a cachedeleteRepositoryPipelineCacheDELETEDelete a repository cache.
Delete a known hostdeleteRepositoryPipelineKnownHostDELETEDelete a repository level known host.
Delete a scheduledeleteRepositoryPipelineScheduleDELETEDelete a schedule.
Delete a variable for a repositorydeleteRepositoryPipelineVariableDELETEDelete a repository level variable.
Delete a variable for a teamdeletePipelineVariableForTeamDELETEDelete a team level variable.
Delete a variable for a userdeletePipelineVariableForUserDELETEDelete an account level variable.
Delete a variable for a workspacedeletePipelineVariableForWorkspaceDELETEDelete a workspace level variable.
Delete a variable for an environmentdeleteDeploymentVariableDELETEDelete a deployment environment level variable.
Delete cachesdeleteRepositoryPipelineCachesDELETEDelete repository cache versions by name.
Delete repository runnerdeleteRepositoryRunnerDELETEDelete repository runner by uuid.
Delete SSH key pairdeleteRepositoryPipelineKeyPairDELETEDelete the repository SSH key pair.
Delete workspace runnerdeleteWorkspaceRunnerDELETEDelete workspace runner by uuid.
Get a known hostgetRepositoryPipelineKnownHostGETRetrieve a repository level known host.
Get a pipelinegetPipelineForRepositoryGETRetrieve a specified pipeline
Get a schedulegetRepositoryPipelineScheduleGETRetrieve a schedule by its UUID.
Get a step of a pipelinegetPipelineStepForRepositoryGETRetrieve a given step of a pipeline.
Get a summary of test reports for a given step of a pipeline.getPipelineTestReportsGETGet a summary of test reports for a given step of a pipeline.
Get a variable for a repositorygetRepositoryPipelineVariableGETRetrieve a repository level variable.
Get a variable for a teamgetPipelineVariableForTeamGETRetrieve a team level variable.
Get a variable for a usergetPipelineVariableForUserGETRetrieve a user level variable.
Get cache content URIgetRepositoryPipelineCacheContentURIGETRetrieve the URI of the content of the specified cache.
Get configurationgetRepositoryPipelineConfigGETRetrieve the repository pipelines configuration.
Get keys for OIDC in PipelinesgetOIDCKeysGETThis is part of OpenID Connect for Pipelines, see https://support.atlassian.com/bitbucket-cloud/docs/integrate-pipelines-with-resource-servers-using-oidc/
Get log file for a stepgetPipelineStepLogForRepositoryGETRetrieve the log file for a given step of a pipeline.
Get OpenID configuration for OIDC in PipelinesgetOIDCConfigurationGETThis is part of OpenID Connect for Pipelines, see https://support.atlassian.com/bitbucket-cloud/docs/integrate-pipelines-with-resource-servers-using-oidc/
Get repository runnergetRepositoryRunnerGETRetrieve repository runner by uuid.
Get repository runnersgetRepositoryRunnersGETRetrieve repository runners.
Get SSH key pairgetRepositoryPipelineSshKeyPairGETRetrieve the repository SSH key pair excluding the SSH private key.
Get test case reasons (output) for a given test case in a step of a pipeline.getPipelineTestReportTestCaseReasonsGETGet test case reasons (output) for a given test case in a step of a pipeline.
Get test cases for a given step of a pipeline.getPipelineTestReportTestCasesGETGet test cases for a given step of a pipeline.
Get the logs for the build container or a service container for a given step of a pipeline.getPipelineContainerLogGETRetrieve the log file for a build container or service container.
Get variable for a workspacegetPipelineVariableForWorkspaceGETRetrieve a workspace level variable.
Get workspace runnergetWorkspaceRunnerGETGet workspace runner by uuid.
Get workspace runnersgetWorkspaceRunnersGETRetrieve workspace runners.
List cachesgetRepositoryPipelineCachesGETRetrieve the repository pipelines caches.
List executions of a schedulegetRepositoryPipelineScheduleExecutionsGETRetrieve the executions of a given schedule.
List known hostsgetRepositoryPipelineKnownHostsGETFind repository level known hosts.
List pipelinesgetPipelinesForRepositoryGETFind pipelines in a repository.
List schedulesgetRepositoryPipelineSchedulesGETRetrieve the configured schedules for the given repository.
List steps for a pipelinegetPipelineStepsForRepositoryGETFind steps for the given pipeline.
List variables for a repositorygetRepositoryPipelineVariablesGETFind repository level variables.
List variables for a usergetPipelineVariablesForUserGETFind user level variables.
List variables for a workspacegetPipelineVariablesForWorkspaceGETFind workspace level variables.
List variables for an accountgetPipelineVariablesForTeamGETFind account level variables.
List variables for an environmentgetDeploymentVariablesGETFind deployment environment level variables.
Run a pipelinecreatePipelineForRepositoryPOSTEndpoint to create and initiate a pipeline.
Stop a pipelinestopPipelinePOSTSignal the stop of a pipeline and all of its steps that not have completed yet.
Update a known hostupdateRepositoryPipelineKnownHostPUTUpdate a repository level known host.
Update a scheduleupdateRepositoryPipelineSchedulePUTUpdate a schedule.
Update a variable for a repositoryupdateRepositoryPipelineVariablePUTUpdate a repository level variable.
Update a variable for a teamupdatePipelineVariableForTeamPUTUpdate a team level variable.
Update a variable for a userupdatePipelineVariableForUserPUTUpdate a user level variable.
Update a variable for an environmentupdateDeploymentVariablePUTUpdate a deployment environment level variable.
Update configurationupdateRepositoryPipelineConfigPUTUpdate the pipelines configuration for a repository.
Update repository runnerupdateRepositoryRunnerPUTUpdate repository runner.
Update SSH key pairupdateRepositoryPipelineKeyPairPUTCreate or update the repository SSH key pair.
Update the next build numberupdateRepositoryBuildNumberPUTUpdate the next build number that should be assigned to a pipeline.
Update variable for a workspaceupdatePipelineVariableForWorkspacePUTUpdate a workspace level variable.
Update workspace runnerupdateWorkspaceRunnerPUTUpdate workspace runner.
Projects16
Add the specific user as a default reviewer for the projectputworkspaces_workspace_projects_project_key_default_reviewers_selected_userPUTAdds the specified user to the project's list of default reviewers.
Create a project in a workspacepostworkspaces_workspace_projectsPOSTCreates a new project.
Delete a project for a workspacedeleteworkspaces_workspace_projects_project_keyDELETEDeletes this project.
Delete an explicit group permission for a projectdeleteworkspaces_workspace_projects_project_key_permissions_config_groups_group_slugDELETEDeletes the project group permission between the requested project and group, if one exists.
Delete an explicit user permission for a projectdeleteworkspaces_workspace_projects_project_key_permissions_config_users_selected_user_idDELETEDeletes the project user permission between the requested project and user, if one exists.
Get a default reviewergetworkspaces_workspace_projects_project_key_default_reviewers_selected_userGETReturns the specified default reviewer.
Get a project for a workspacegetworkspaces_workspace_projects_project_keyGETReturns the requested project.
Get an explicit group permission for a projectgetworkspaces_workspace_projects_project_key_permissions_config_groups_group_slugGETReturns the group permission for a given group and project.
Get an explicit user permission for a projectgetworkspaces_workspace_projects_project_key_permissions_config_users_selected_user_idGETReturns the explicit user permission for a given user and project.
List explicit group permissions for a projectgetworkspaces_workspace_projects_project_key_permissions_config_groupsGETReturns a paginated list of explicit group permissions for the given project.
List explicit user permissions for a projectgetworkspaces_workspace_projects_project_key_permissions_config_usersGETReturns a paginated list of explicit user permissions for the given project.
List the default reviewers in a projectgetworkspaces_workspace_projects_project_key_default_reviewersGETReturn a list of all default reviewers for a project.
Remove the specific user from the project's default reviewersdeleteworkspaces_workspace_projects_project_key_default_reviewers_selected_userDELETERemoves a default reviewer from the project.
Update a project for a workspaceputworkspaces_workspace_projects_project_keyPUTSince this endpoint can be used to both update and to create a project, the request body depends on the intent.
Update an explicit group permission for a projectputworkspaces_workspace_projects_project_key_permissions_config_groups_group_slugPUTUpdates the group permission, or grants a new permission if one does not already exist.
Update an explicit user permission for a projectputworkspaces_workspace_projects_project_key_permissions_config_users_selected_user_idPUTUpdates the explicit user permission for a given user and project.
Properties12
Delete a commit application propertydeleteCommitHostedPropertyValueDELETEDelete an application property value stored against a commit.
Delete a pull request application propertydeletePullRequestHostedPropertyValueDELETEDelete an application property value stored against a pull request.
Delete a repository application propertydeleteRepositoryHostedPropertyValueDELETEDelete an application property value stored against a repository.
Delete a user application propertydeleteUserHostedPropertyValueDELETEDelete an application property value stored against a user.
Get a commit application propertygetCommitHostedPropertyValueGETRetrieve an application property value stored against a commit.
Get a pull request application propertygetPullRequestHostedPropertyValueGETRetrieve an application property value stored against a pull request.
Get a repository application propertygetRepositoryHostedPropertyValueGETRetrieve an application property value stored against a repository.
Get a user application propertyretrieveUserHostedPropertyValueGETRetrieve an application property value stored against a user.
Update a commit application propertyupdateCommitHostedPropertyValuePUTUpdate an application property value stored against a commit.
Update a pull request application propertyupdatePullRequestHostedPropertyValuePUTUpdate an application property value stored against a pull request.
Update a repository application propertyupdateRepositoryHostedPropertyValuePUTUpdate an application property value stored against a repository.
Update a user application propertyupdateUserHostedPropertyValuePUTUpdate an application property value stored against a user.
Pullrequests37
Add a user to the default reviewersputrepositories_workspace_repo_slug_default_reviewers_target_usernamePUTAdds the specified user to the repository's list of default reviewers.
Approve a pull requestpostrepositories_workspace_repo_slug_pullrequests_pull_request_id_approvePOSTApprove the specified pull request as the authenticated user.
Create a comment on a pull requestpostrepositories_workspace_repo_slug_pullrequests_pull_request_id_commentsPOSTCreates a new pull request comment.
Create a pull requestpostrepositories_workspace_repo_slug_pullrequestsPOSTCreates a new pull request where the destination repository is this repository and the author is the authenticated user.
Create a task on a pull requestpostrepositories_workspace_repo_slug_pullrequests_pull_request_id_tasksPOSTCreates a new pull request task.
Decline a pull requestpostrepositories_workspace_repo_slug_pullrequests_pull_request_id_declinePOSTDeclines the pull request.
Delete a comment on a pull requestdeleterepositories_workspace_repo_slug_pullrequests_pull_request_id_comments_comment_idDELETEDeletes a specific pull request comment.
Delete a task on a pull requestdeleterepositories_workspace_repo_slug_pullrequests_pull_request_id_tasks_task_idDELETEDeletes a specific pull request task.
Get a comment on a pull requestgetrepositories_workspace_repo_slug_pullrequests_pull_request_id_comments_comment_idGETReturns a specific pull request comment.
Get a default reviewergetrepositories_workspace_repo_slug_default_reviewers_target_usernameGETReturns the specified reviewer.
Get a pull requestgetrepositories_workspace_repo_slug_pullrequests_pull_request_idGETReturns the specified pull request.
Get a task on a pull requestgetrepositories_workspace_repo_slug_pullrequests_pull_request_id_tasks_task_idGETReturns a specific pull request task.
Get file conflicts for a pull requestgetrepositories_workspace_repo_slug_pullrequests_pull_request_id_conflictsGETRedirects to the repository file conflicts with the revspec that corresponds to the pull request.
Get the diff stat for a pull requestgetrepositories_workspace_repo_slug_pullrequests_pull_request_id_diffstatGETRedirects to the repository diffstat with the revspec that corresponds to the pull request.
Get the merge task status for a pull requestgetrepositories_workspace_repo_slug_pullrequests_pull_request_id_merge_task_status_task_idGETWhen merging a pull request takes too long, the client receives a task ID along with a 202 status code.
Get the patch for a pull requestgetrepositories_workspace_repo_slug_pullrequests_pull_request_id_patchGETRedirects to the repository patch with the revspec that corresponds to pull request.
List a pull request activity loggetrepositories_workspace_repo_slug_pullrequests_activityGETReturns a paginated list of the pull request's activity log.
List a pull request activity loggetrepositories_workspace_repo_slug_pullrequests_pull_request_id_activityGETReturns a paginated list of the pull request's activity log.
List changes in a pull requestgetrepositories_workspace_repo_slug_pullrequests_pull_request_id_diffGETRedirects to the repository diff with the revspec that corresponds to the pull request.
List comments on a pull requestgetrepositories_workspace_repo_slug_pullrequests_pull_request_id_commentsGETReturns a paginated list of the pull request's comments.
List commit statuses for a pull requestgetrepositories_workspace_repo_slug_pullrequests_pull_request_id_statusesGETReturns all statuses (e.g. build results) for the given pull request.
List commits on a pull requestgetrepositories_workspace_repo_slug_pullrequests_pull_request_id_commitsGETReturns a paginated list of the pull request's commits.
List default reviewersgetrepositories_workspace_repo_slug_default_reviewersGETReturns the repository's default reviewers.
List effective default reviewersgetrepositories_workspace_repo_slug_effective_default_reviewersGETReturns the repository's effective default reviewers.
List pull requestsgetrepositories_workspace_repo_slug_pullrequestsGETReturns all pull requests on the specified repository.
List pull requests that contain a commitgetPullrequestsForCommitGETReturns a paginated list of all pull requests as part of which this commit was reviewed.
List tasks on a pull requestgetrepositories_workspace_repo_slug_pullrequests_pull_request_id_tasksGETReturns a paginated list of the pull request's tasks.
Merge a pull requestpostrepositories_workspace_repo_slug_pullrequests_pull_request_id_mergePOSTMerges the pull request.
Remove a user from the default reviewersdeleterepositories_workspace_repo_slug_default_reviewers_target_usernameDELETERemoves a default reviewer from the repository.
Remove change request for a pull requestdeleterepositories_workspace_repo_slug_pullrequests_pull_request_id_request_changesDELETERemove change request for a pull request
Reopen a comment threaddeleterepositories_workspace_repo_slug_pullrequests_pull_request_id_comments_comment_id_resolveDELETEReopen a comment thread
Request changes for a pull requestpostrepositories_workspace_repo_slug_pullrequests_pull_request_id_request_changesPOSTRequest changes for a pull request
Resolve a comment threadpostrepositories_workspace_repo_slug_pullrequests_pull_request_id_comments_comment_id_resolvePOSTResolve a comment thread
Unapprove a pull requestdeleterepositories_workspace_repo_slug_pullrequests_pull_request_id_approveDELETERedact the authenticated user's approval of the specified pull request.
Update a comment on a pull requestputrepositories_workspace_repo_slug_pullrequests_pull_request_id_comments_comment_idPUTUpdates a specific pull request comment.
Update a pull requestputrepositories_workspace_repo_slug_pullrequests_pull_request_idPUTMutates the specified pull request.
Update a task on a pull requestputrepositories_workspace_repo_slug_pullrequests_pull_request_id_tasks_task_idPUTUpdates a specific pull request task.
Refs9
Create a branchpostrepositories_workspace_repo_slug_refs_branchesPOSTCreates a new branch in the specified repository.
Create a tagpostrepositories_workspace_repo_slug_refs_tagsPOSTCreates a new annotated tag in the specified repository.
Delete a branchdeleterepositories_workspace_repo_slug_refs_branches_nameDELETEDelete a branch in the specified repository.
Delete a tagdeleterepositories_workspace_repo_slug_refs_tags_nameDELETEDelete a tag in the specified repository.
Get a branchgetrepositories_workspace_repo_slug_refs_branches_nameGETReturns a branch object within the specified repository.
Get a taggetrepositories_workspace_repo_slug_refs_tags_nameGETReturns the specified tag.
List branches and tagsgetrepositories_workspace_repo_slug_refsGETReturns the branches and tags in the repository.
List open branchesgetrepositories_workspace_repo_slug_refs_branchesGETReturns a list of all open branches within the specified repository.
List tagsgetrepositories_workspace_repo_slug_refs_tagsGETReturns the tags in the repository.
Reports9
Bulk create or update annotationsbulkCreateOrUpdateAnnotationsPOSTBulk upload of annotations.
Create or update a reportcreateOrUpdateReportPUTCreates or updates a report for the specified commit.
Create or update an annotationcreateOrUpdateAnnotationPUTCreates or updates an individual annotation for the specified report.
Delete a reportdeleteReportDELETEDeletes a single Report matching the provided ID.
Delete an annotationdeleteAnnotationDELETEDeletes a single Annotation matching the provided ID.
Get a reportgetReportGETReturns a single Report matching the provided ID.
Get an annotationgetAnnotationGETReturns a single Annotation matching the provided ID.
List annotationsgetAnnotationsForReportGETReturns a paginated list of Annotations for a specified report.
List reportsgetReportsForCommitGETReturns a paginated list of Reports linked to this commit.
Repositories26
Create a repositorypostrepositories_workspace_repo_slugPOSTCreates a new repository.
Create a webhook for a repositorypostrepositories_workspace_repo_slug_hooksPOSTCreates a new webhook on the specified repository.
Delete a repositorydeleterepositories_workspace_repo_slugDELETEDeletes the repository.
Delete a webhook for a repositorydeleterepositories_workspace_repo_slug_hooks_uidDELETEDeletes the specified webhook subscription from the given repository.
Delete an explicit group permission for a repositorydeleterepositories_workspace_repo_slug_permissions_config_groups_group_slugDELETEDeletes the repository group permission between the requested repository and group, if one exists.
Delete an explicit user permission for a repositorydeleterepositories_workspace_repo_slug_permissions_config_users_selected_user_idDELETEDeletes the repository user permission between the requested repository and user, if one exists.
Fork a repositorypostrepositories_workspace_repo_slug_forksPOSTCreates a new fork of the specified repository.
Get a repositorygetrepositories_workspace_repo_slugGETReturns the object describing this repository.
Get a webhook for a repositorygetrepositories_workspace_repo_slug_hooks_uidGETReturns the webhook with the specified id installed on the specified repository.
Get an explicit group permission for a repositorygetrepositories_workspace_repo_slug_permissions_config_groups_group_slugGETReturns the group permission for a given group slug and repository Only users with admin permission for the repository may access this resource.
Get an explicit user permission for a repositorygetrepositories_workspace_repo_slug_permissions_config_users_selected_user_idGETReturns the explicit user permission for a given user and repository.
List explicit group permissions for a repositorygetrepositories_workspace_repo_slug_permissions_config_groupsGETReturns a paginated list of explicit group permissions for the given repository.
List explicit user permissions for a repositorygetrepositories_workspace_repo_slug_permissions_config_usersGETReturns a paginated list of explicit user permissions for the given repository.
List public repositoriesgetrepositoriesGETThis endpoint is deprecated.
List repositories in a workspacegetrepositories_workspaceGETReturns a paginated list of all repositories owned by the specified workspace.
List repositories watchersgetrepositories_workspace_repo_slug_watchersGETReturns a paginated list of all the watchers on the specified repository.
List repository forksgetrepositories_workspace_repo_slug_forksGETReturns a paginated list of all the forks of the specified repository.
List repository permissions for a usergetuser_permissions_repositoriesGETThis endpoint is deprecated.
List repository permissions in a workspace for a usergetuser_workspaces_workspace_permissions_repositoriesGETReturns an object for each repository the caller has explicit access to in the specified workspace and their effective permission - the highest level of permission the caller has.
List webhooks for a repositorygetrepositories_workspace_repo_slug_hooksGETReturns a paginated list of webhooks installed on this repository.
Retrieve the inheritance state for repository settingsgetrepositories_workspace_repo_slug_override_settingsGETRetrieve the inheritance state for repository settings
Set the inheritance state for repository settings putrepositories_workspace_repo_slug_override_settingsPUTSet the inheritance state for repository settings
Update a repositoryputrepositories_workspace_repo_slugPUTSince this endpoint can be used to both update and to create a repository, the request body depends on the intent.
Update a webhook for a repositoryputrepositories_workspace_repo_slug_hooks_uidPUTUpdates the specified webhook subscription.
Update an explicit group permission for a repositoryputrepositories_workspace_repo_slug_permissions_config_groups_group_slugPUTUpdates the group permission, or grants a new permission if one does not already exist.
Update an explicit user permission for a repositoryputrepositories_workspace_repo_slug_permissions_config_users_selected_user_idPUTUpdates the explicit user permission for a given user and repository.
Search3
Search for code in a team's repositoriessearchTeamGETThis API will be deprecated on November 1, 2026.
Search for code in a user's repositoriessearchAccountGETThis API will be deprecated on November 1, 2026.
Search for code in a workspacesearchWorkspaceGETThis API will be deprecated on November 1, 2026.
Snippets25
Check if the current user is watching a snippetgetsnippets_workspace_encoded_id_watchGETUsed to check if the current user is watching a specific snippet.
Create a comment on a snippetpostsnippets_workspace_encoded_id_commentsPOSTCreates a new comment.
Create a snippetpostsnippetsPOSTCreates a new snippet under the authenticated user's account.
Create a snippet for a workspacepostsnippets_workspacePOSTIdentical to /snippets, except that the new snippet will be created under the workspace specified in the path parameter {workspace}.
Delete a comment on a snippetdeletesnippets_workspace_encoded_id_comments_comment_idDELETEDeletes a snippet comment.
Delete a previous revision of a snippetdeletesnippets_workspace_encoded_id_node_idDELETEDeletes the snippet.
Delete a snippetdeletesnippets_workspace_encoded_idDELETEDeletes a snippet and returns an empty response.
Get a comment on a snippetgetsnippets_workspace_encoded_id_comments_comment_idGETReturns the specific snippet comment.
Get a previous revision of a snippetgetsnippets_workspace_encoded_id_node_idGETIdentical to GET /snippets/encoded id, except that this endpoint can be used to retrieve the contents of the snippet as it was at an older revision, while /snippets/encoded id always...
Get a previous snippet changegetsnippets_workspace_encoded_id_commits_revisionGETReturns the changes made on this snippet in this commit.
Get a snippetgetsnippets_workspace_encoded_idGETRetrieves a single snippet.
Get a snippet's raw filegetsnippets_workspace_encoded_id_node_id_files_pathGETRetrieves the raw contents of a specific file in the snippet.
Get a snippet's raw file at HEADgetsnippets_workspace_encoded_id_files_pathGETConvenience resource for getting to a snippet's raw files without the need for first having to retrieve the snippet itself and having to pull out the versioned file links.
Get snippet changes between versionsgetsnippets_workspace_encoded_id_revision_diffGETReturns the diff of the specified commit against its first parent.
Get snippet patch between versionsgetsnippets_workspace_encoded_id_revision_patchGETReturns the patch of the specified commit against its first parent.
List comments on a snippetgetsnippets_workspace_encoded_id_commentsGETUsed to retrieve a paginated list of all comments for a specific snippet.
List snippet changesgetsnippets_workspace_encoded_id_commitsGETReturns the changes (commits) made on this snippet.
List snippetsgetsnippetsGETThis endpoint is deprecated.
List snippets in a workspacegetsnippets_workspaceGETIdentical to /snippets, except that the result is further filtered by the snippet owner and only those that are owned by {workspace} are returned.
List users watching a snippetgetsnippets_workspace_encoded_id_watchersGETReturns a paginated list of all users watching a specific snippet.
Stop watching a snippetdeletesnippets_workspace_encoded_id_watchDELETEUsed to stop watching a specific snippet.
Update a comment on a snippetputsnippets_workspace_encoded_id_comments_comment_idPUTUpdates a comment.
Update a previous revision of a snippetputsnippets_workspace_encoded_id_node_idPUTIdentical to UPDATE /snippets/encoded id, except that this endpoint takes an explicit commit revision.
Update a snippetputsnippets_workspace_encoded_idPUTUsed to update a snippet.
Watch a snippetputsnippets_workspace_encoded_id_watchPUTUsed to start watching a specific snippet.
Source4
Create a commit by uploading a filepostrepositories_workspace_repo_slug_srcPOSTThis endpoint is used to create new commits in the repository by uploading files.
Get file or directory contentsgetrepositories_workspace_repo_slug_src_commit_pathGETThis endpoints is used to retrieve the contents of a single file, or the contents of a directory at a specified revision.
Get the root directory of the main branchgetrepositories_workspace_repo_slug_srcGETThis endpoint redirects the client to the directory listing of the root directory on the main branch.
List commits that modified a filegetrepositories_workspace_repo_slug_filehistory_commit_pathGETReturns a paginated list of commits that modified the specified file.
SSH5
Add a new SSH keypostusers_selected_user_ssh_keysPOSTAdds a new SSH public key to the specified user account and returns the resulting key.
Delete a SSH keydeleteusers_selected_user_ssh_keys_key_idDELETEDeletes a specific SSH public key from a user's account.
Get a SSH keygetusers_selected_user_ssh_keys_key_idGETReturns a specific SSH public key belonging to a user.
List SSH keysgetusers_selected_user_ssh_keysGETReturns a paginated list of the user's SSH public keys.
Update a SSH keyputusers_selected_user_ssh_keys_key_idPUTUpdates a specific SSH public key on a user's account Note: Only the 'comment' field can be updated using this API.
Users4
Get a usergetusers_selected_userGETGets the public information associated with a user account.
Get an email address for current usergetuser_emails_emailGETReturns details about a specific one of the authenticated user's email addresses.
Get current usergetuserGETReturns the currently logged in user.
List email addresses for current usergetuser_emailsGETReturns all the authenticated user's email addresses.
Webhooks2
Get a webhook resourcegethook_eventsGETReturns the webhook resource or subject types on which webhooks can be registered.
List subscribable webhook typesgethook_events_subject_typeGETReturns a paginated list of all valid webhook events for the specified entity.
Workspaces18
Create a webhook for a workspacepostworkspaces_workspace_hooksPOSTCreates a new webhook on the specified workspace.
Delete a webhook for a workspacedeleteworkspaces_workspace_hooks_uidDELETEDeletes the specified webhook subscription from the given workspace.
Get a webhook for a workspacegetworkspaces_workspace_hooks_uidGETReturns the webhook with the specified id installed on the given workspace.
Get a workspacegetworkspaces_workspaceGETReturns the requested workspace.
Get the workspace system GPG public key(s)getworkspaces_workspace_settings_gpg_public_keyGETReturns the system public GPG key(s).
Get user membership for a workspacegetworkspaces_workspace_members_memberGETReturns the workspace membership, which includes a User object for the member and a Workspace object for the requested workspace.
Get user permission on a workspacegetuser_workspaces_workspace_permissionGETReturns the caller's effective role; as in, the highest level of privilege the caller has for the workspace.
List a repository permissions for a workspacegetworkspaces_workspace_permissions_repositories_repo_slugGETReturns an object for the repository permission of each user in the requested repository.
List all repository permissions for a workspacegetworkspaces_workspace_permissions_repositoriesGETReturns an object for each repository permission for all of a workspace's repositories.
List projects in a workspacegetworkspaces_workspace_projectsGETReturns the list of projects in this workspace.
List user permissions in a workspacegetworkspaces_workspace_permissionsGETReturns the list of members in a workspace and their permission levels.
List users in a workspacegetworkspaces_workspace_membersGETReturns all members of the requested workspace.
List webhooks for a workspacegetworkspaces_workspace_hooksGETReturns a paginated list of webhooks installed on this workspace.
List workspace pull requests for a usergetworkspaces_workspace_pullrequests_selected_userGETReturns all workspace pull requests authored by the specified user.
List workspaces for the current usergetuser_permissions_workspacesGETThis endpoint is deprecated.
List workspaces for the current usergetuser_workspacesGETReturns an object for each workspace accessible to the caller.
List workspaces for usergetworkspacesGETThis endpoint is deprecated.
Update a webhook for a workspaceputworkspaces_workspace_hooks_uidPUTUpdates the specified webhook subscription.