Bitbucket Reports API

Code insights provides reports, annotations, and metrics to help you and your team improve code quality in pull requests throughout the code review process. Some of the available code insights are static analysis reports, security scan results, artifact links, unit tests, and build status.

Operations 9

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /repositories/{workspace}/{repo_slug}/commit/{commit}/reports List reports attached to a commit · List reports #
Ask an LLM
“What test, coverage or scan reports exist for a given commit?”
“Can I list the code insights a CI tool has published on one commit?”
Tell an agent
Show all code insight reports for commit {commit} in {workspace}/{repo_slug}.
List reports linked to commit {commit} of repo {repo_slug}.
PUT /repositories/{workspace}/{repo_slug}/commit/{commit}/reports/{reportId} Create or update a code insight report · Create or update a report #
Ask an LLM
“How can my CI tool publish coverage results as a report on a commit?”
“Can I set a logo, link and report type on a code insight report?”
Tell an agent
Publish code insight report {reportId} on commit {commit} in {workspace}/{repo_slug} with title {title}.
Upsert report {reportId} on commit {commit} as type {report_type} with result {result}.
GET /repositories/{workspace}/{repo_slug}/commit/{commit}/reports/{reportId} Retrieve a single code insight report · Get a report #
Ask an LLM
“Did a particular code insight report pass or fail?”
“How can I read the details and data fields of one report by ID?”
Tell an agent
Retrieve code insight report {reportId} for commit {commit} in {workspace}/{repo_slug}.
Look up report {reportId} on commit {commit} and tell me its result.
DELETE /repositories/{workspace}/{repo_slug}/commit/{commit}/reports/{reportId} Remove a code insight report · Delete a report #
Ask an LLM
“How can I delete an outdated code insight report from a commit?”
“Is it possible to take down a report my pipeline published?”
Tell an agent destructive · confirm first
Remove code insight report {reportId} from commit {commit} in {workspace}/{repo_slug}.
Delete the report {reportId} posted on commit {commit}.
GET /repositories/{workspace}/{repo_slug}/commit/{commit}/reports/{reportId}/annotations List the findings in a code insight report · List annotations #
Ask an LLM
“What issues did a code insight report flag, line by line?”
“Can I retrieve the paginated annotations belonging to one report?”
Tell an agent
Show annotations of code insight report {reportId} on commit {commit} in {workspace}/{repo_slug}.
List the line-level findings in report {reportId} for commit {commit}.
POST /repositories/{workspace}/{repo_slug}/commit/{commit}/reports/{reportId}/annotations Bulk upload findings to a code insight report · Bulk create or update annotations #
Ask an LLM
“How can I send all my linter findings to a report in a single request?”
“Is there a batch endpoint for creating or updating report annotations?”
Tell an agent
Upload a batch of annotations to code insight report {reportId} on commit {commit} in {workspace}/{repo_slug}.
Bulk create or update findings on report {reportId} for commit {commit}.
GET /repositories/{workspace}/{repo_slug}/commit/{commit}/reports/{reportId}/annotations/{annotationId} Retrieve a single report finding · Get an annotation #
Ask an LLM
“What severity and file location does one report finding have?”
“How can I look up a specific annotation inside a report?”
Tell an agent
Retrieve annotation {annotationId} of code insight report {reportId} on commit {commit} in {workspace}/{repo_slug}.
Look up finding {annotationId} in report {reportId}.
PUT /repositories/{workspace}/{repo_slug}/commit/{commit}/reports/{reportId}/annotations/{annotationId} Upsert one finding on a code insight report · Create or update an annotation #
Ask an LLM
“How can I mark a single vulnerability on a specific file and line in a report?”
“Can I change the result of one annotation to passed after a fix?”
Tell an agent
Upsert annotation {annotationId} on code insight report {reportId} for commit {commit} in {workspace}/{repo_slug} with type {annotation_type}.
Mark annotation {annotationId} in report {reportId} as {result}.
DELETE /repositories/{workspace}/{repo_slug}/commit/{commit}/reports/{reportId}/annotations/{annotationId} Remove a single report finding · Delete an annotation #
Ask an LLM
“How can I drop a single annotation that no longer applies?”
“Is it possible to delete one finding while keeping the rest of the report?”
Tell an agent destructive · confirm first
Remove annotation {annotationId} from code insight report {reportId} on commit {commit} in {workspace}/{repo_slug}.
Delete the single finding {annotationId} in report {reportId}.

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:bitbucket-reports-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-reports-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Bitbucket Reports 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 (144 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/bitbucket/refs/heads/main/openapi/bitbucket-reports-api-openapi.yml