Bitbucket Pull Requests API

Pull requests are a feature that makes it easier for developers to collaborate using Bitbucket. They provide a user-friendly web interface for discussing proposed changes before integrating them into the official project.

Business capability
Software Construction Management BC-4200.40

Operations 37

GET /repositories/{workspace}/{repo_slug}/commit/{commit}/pullrequests List pull requests that contain a commit #
GET /repositories/{workspace}/{repo_slug}/default-reviewers List default reviewers #
DELETE /repositories/{workspace}/{repo_slug}/default-reviewers/{target_username} Remove a user from the default reviewers #
GET /repositories/{workspace}/{repo_slug}/default-reviewers/{target_username} Get a default reviewer #
PUT /repositories/{workspace}/{repo_slug}/default-reviewers/{target_username} Add a user to the default reviewers #
GET /repositories/{workspace}/{repo_slug}/effective-default-reviewers List effective default reviewers #
GET /repositories/{workspace}/{repo_slug}/pullrequests List pull requests #
POST /repositories/{workspace}/{repo_slug}/pullrequests Create a pull request #
GET /repositories/{workspace}/{repo_slug}/pullrequests/activity List a pull request activity log #
GET /repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id} Get a pull request #
PUT /repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id} Update a pull request #
GET /repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/activity List a pull request activity log #
DELETE /repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/approve Unapprove a pull request #
POST /repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/approve Approve a pull request #
GET /repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/comments List comments on a pull request #
POST /repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/comments Create a comment on a pull request #
DELETE /repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/comments/{comment_id} Delete a comment on a pull request #
GET /repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/comments/{comment_id} Get a comment on a pull request #
PUT /repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/comments/{comment_id} Update a comment on a pull request #
DELETE /repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/comments/{comment_id}/resolve Reopen a comment thread #
POST /repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/comments/{comment_id}/resolve Resolve a comment thread #
GET /repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/commits List commits on a pull request #
POST /repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/decline Decline a pull request #
GET /repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/diff List changes in a pull request #
GET /repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/diffstat Get the diff stat for a pull request #
POST /repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/merge Merge a pull request #
GET /repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/merge/task-status/{task_id} Get the merge task status for a pull request #
GET /repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/patch Get the patch for a pull request #
DELETE /repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/request-changes Remove change request for a pull request #
POST /repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/request-changes Request changes for a pull request #
GET /repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/statuses List commit statuses for a pull request #
GET /repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/tasks List tasks on a pull request #
POST /repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/tasks Create a task on a pull request #
DELETE /repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/tasks/{task_id} Delete a task on a pull request #
GET /repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/tasks/{task_id} Get a task on a pull request #
PUT /repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/tasks/{task_id} Update a task on a pull request #
GET /workspaces/{workspace}/pullrequests/{selected_user} List workspace pull requests for a user #

Documentation

Specifications

Schemas & Data

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/bitbucket-pull-requests-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

bitbucket-pull-requests-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Bitbucket Pullrequests API
  description: Code against the Bitbucket API to automate simple tasks, embed Bitbucket data into your own site, build mobile or desktop apps, or even add custom UI add-ons into Bitbucket itself using the Connect framework.
  version: '2.0'
  termsOfService: https://www.atlassian.com/legal/customer-agreement
  contact:
    name: Bitbucket Support
    url: https://support.atlassian.com/bitbucket-cloud/
    email: support@bitbucket.org
servers:
- url: https://api.bitbucket.org/2.0
tags:


# --- truncated at 32 KB (239 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/bitbucket/refs/heads/main/openapi/bitbucket-pull-requests-api-openapi.yml