Bitbucket Deployments API

Teams are deploying code faster than ever, thanks to continuous delivery practices and tools like Bitbucket Pipelines. Bitbucket Deployments gives teams visibility into their deployment environments and helps teams to track how far changes have progressed in their deployment pipeline.

Business capability
Software Release & Deployment Management BC-4210

Operations 16

GET /repositories/{workspace}/{repo_slug}/deploy-keys List repository deploy keys #
POST /repositories/{workspace}/{repo_slug}/deploy-keys Add a repository deploy key #
DELETE /repositories/{workspace}/{repo_slug}/deploy-keys/{key_id} Delete a repository deploy key #
GET /repositories/{workspace}/{repo_slug}/deploy-keys/{key_id} Get a repository deploy key #
PUT /repositories/{workspace}/{repo_slug}/deploy-keys/{key_id} Update a repository deploy key #
GET /repositories/{workspace}/{repo_slug}/deployments List deployments #
GET /repositories/{workspace}/{repo_slug}/deployments/{deployment_uuid} Get a deployment #
GET /repositories/{workspace}/{repo_slug}/environments List environments #
POST /repositories/{workspace}/{repo_slug}/environments Create an environment #
GET /repositories/{workspace}/{repo_slug}/environments/{environment_uuid} Get an environment #
DELETE /repositories/{workspace}/{repo_slug}/environments/{environment_uuid} Delete an environment #
POST /repositories/{workspace}/{repo_slug}/environments/{environment_uuid}/changes Update an environment #
GET /workspaces/{workspace}/projects/{project_key}/deploy-keys List project deploy keys #
POST /workspaces/{workspace}/projects/{project_key}/deploy-keys Create a project deploy key #
DELETE /workspaces/{workspace}/projects/{project_key}/deploy-keys/{key_id} Delete a deploy key from a project #
GET /workspaces/{workspace}/projects/{project_key}/deploy-keys/{key_id} Get a project deploy key #

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