Bitbucket Pipelines API

Bitbucket Pipelines brings continuous delivery to Bitbucket Cloud, empowering teams with full branching to deployment visibility and faster feedback loops.

GitHub OpenAPI
Business capability
Continuous Integration Management BC-4210.10

Operations 68

GET /repositories/{workspace}/{repo_slug}/deployments_config/environments/{environment_uuid}/variables List variables for an environment #
POST /repositories/{workspace}/{repo_slug}/deployments_config/environments/{environment_uuid}/variables Create a variable for an environment #
PUT /repositories/{workspace}/{repo_slug}/deployments_config/environments/{environment_uuid}/variables/{variable_uuid} Update a variable for an environment #
DELETE /repositories/{workspace}/{repo_slug}/deployments_config/environments/{environment_uuid}/variables/{variable_uuid} Delete a variable for an environment #
GET /repositories/{workspace}/{repo_slug}/pipelines List pipelines #
POST /repositories/{workspace}/{repo_slug}/pipelines Run a pipeline #
GET /repositories/{workspace}/{repo_slug}/pipelines-config/caches List caches #
DELETE /repositories/{workspace}/{repo_slug}/pipelines-config/caches Delete caches #
DELETE /repositories/{workspace}/{repo_slug}/pipelines-config/caches/{cache_uuid} Delete a cache #
GET /repositories/{workspace}/{repo_slug}/pipelines-config/caches/{cache_uuid}/content-uri Get cache content URI #
GET /repositories/{workspace}/{repo_slug}/pipelines-config/runners Get repository runners #
POST /repositories/{workspace}/{repo_slug}/pipelines-config/runners Create repository runner #
GET /repositories/{workspace}/{repo_slug}/pipelines-config/runners/{runner_uuid} Get repository runner #
PUT /repositories/{workspace}/{repo_slug}/pipelines-config/runners/{runner_uuid} Update repository runner #
DELETE /repositories/{workspace}/{repo_slug}/pipelines-config/runners/{runner_uuid} Delete repository runner #
GET /repositories/{workspace}/{repo_slug}/pipelines/{pipeline_uuid} Get a pipeline #
GET /repositories/{workspace}/{repo_slug}/pipelines/{pipeline_uuid}/steps List steps for a pipeline #
GET /repositories/{workspace}/{repo_slug}/pipelines/{pipeline_uuid}/steps/{step_uuid} Get a step of a pipeline #
GET /repositories/{workspace}/{repo_slug}/pipelines/{pipeline_uuid}/steps/{step_uuid}/log Get log file for a step #
GET /repositories/{workspace}/{repo_slug}/pipelines/{pipeline_uuid}/steps/{step_uuid}/logs/{log_uuid} Get the logs for the build container or a service container for a given step of… #
GET /repositories/{workspace}/{repo_slug}/pipelines/{pipeline_uuid}/steps/{step_uuid}/test_reports Get a summary of test reports for a given step of a pipeline #
GET /repositories/{workspace}/{repo_slug}/pipelines/{pipeline_uuid}/steps/{step_uuid}/test_reports/test_cases Get test cases for a given step of a pipeline #
GET /repositories/{workspace}/{repo_slug}/pipelines/{pipeline_uuid}/steps/{step_uuid}/test_reports/test_cases/{test_case_uuid}/test_case_reasons Get test case reasons (output) for a given test case in a step of a pipeline #
POST /repositories/{workspace}/{repo_slug}/pipelines/{pipeline_uuid}/stopPipeline Stop a pipeline #
GET /repositories/{workspace}/{repo_slug}/pipelines_config Get configuration #
PUT /repositories/{workspace}/{repo_slug}/pipelines_config Update configuration #
PUT /repositories/{workspace}/{repo_slug}/pipelines_config/build_number Update the next build number #
POST /repositories/{workspace}/{repo_slug}/pipelines_config/schedules Create a schedule #
GET /repositories/{workspace}/{repo_slug}/pipelines_config/schedules List schedules #
GET /repositories/{workspace}/{repo_slug}/pipelines_config/schedules/{schedule_uuid} Get a schedule #
PUT /repositories/{workspace}/{repo_slug}/pipelines_config/schedules/{schedule_uuid} Update a schedule #
DELETE /repositories/{workspace}/{repo_slug}/pipelines_config/schedules/{schedule_uuid} Delete a schedule #
GET /repositories/{workspace}/{repo_slug}/pipelines_config/schedules/{schedule_uuid}/executions List executions of a schedule #
GET /repositories/{workspace}/{repo_slug}/pipelines_config/ssh/key_pair Get SSH key pair #
PUT /repositories/{workspace}/{repo_slug}/pipelines_config/ssh/key_pair Update SSH key pair #
DELETE /repositories/{workspace}/{repo_slug}/pipelines_config/ssh/key_pair Delete SSH key pair #
GET /repositories/{workspace}/{repo_slug}/pipelines_config/ssh/known_hosts List known hosts #
POST /repositories/{workspace}/{repo_slug}/pipelines_config/ssh/known_hosts Create a known host #
GET /repositories/{workspace}/{repo_slug}/pipelines_config/ssh/known_hosts/{known_host_uuid} Get a known host #
PUT /repositories/{workspace}/{repo_slug}/pipelines_config/ssh/known_hosts/{known_host_uuid} Update a known host #
DELETE /repositories/{workspace}/{repo_slug}/pipelines_config/ssh/known_hosts/{known_host_uuid} Delete a known host #
GET /repositories/{workspace}/{repo_slug}/pipelines_config/variables List variables for a repository #
POST /repositories/{workspace}/{repo_slug}/pipelines_config/variables Create a variable for a repository #
GET /repositories/{workspace}/{repo_slug}/pipelines_config/variables/{variable_uuid} Get a variable for a repository #
PUT /repositories/{workspace}/{repo_slug}/pipelines_config/variables/{variable_uuid} Update a variable for a repository #
DELETE /repositories/{workspace}/{repo_slug}/pipelines_config/variables/{variable_uuid} Delete a variable for a repository #
GET /teams/{username}/pipelines_config/variables List variables for an account #
POST /teams/{username}/pipelines_config/variables Create a variable for a user #
GET /teams/{username}/pipelines_config/variables/{variable_uuid} Get a variable for a team #
PUT /teams/{username}/pipelines_config/variables/{variable_uuid} Update a variable for a team #
DELETE /teams/{username}/pipelines_config/variables/{variable_uuid} Delete a variable for a team #
GET /users/{selected_user}/pipelines_config/variables List variables for a user #
POST /users/{selected_user}/pipelines_config/variables Create a variable for a user #
GET /users/{selected_user}/pipelines_config/variables/{variable_uuid} Get a variable for a user #
PUT /users/{selected_user}/pipelines_config/variables/{variable_uuid} Update a variable for a user #
DELETE /users/{selected_user}/pipelines_config/variables/{variable_uuid} Delete a variable for a user #
GET /workspaces/{workspace}/pipelines-config/identity/oidc/.well-known/openid-configuration Get OpenID configuration for OIDC in Pipelines #
GET /workspaces/{workspace}/pipelines-config/identity/oidc/keys.json Get keys for OIDC in Pipelines #
GET /workspaces/{workspace}/pipelines-config/runners Get workspace runners #
POST /workspaces/{workspace}/pipelines-config/runners Create workspace runner #
GET /workspaces/{workspace}/pipelines-config/runners/{runner_uuid} Get workspace runner #
PUT /workspaces/{workspace}/pipelines-config/runners/{runner_uuid} Update workspace runner #
DELETE /workspaces/{workspace}/pipelines-config/runners/{runner_uuid} Delete workspace runner #
GET /workspaces/{workspace}/pipelines-config/variables List variables for a workspace #
POST /workspaces/{workspace}/pipelines-config/variables Create a variable for a workspace #
GET /workspaces/{workspace}/pipelines-config/variables/{variable_uuid} Get variable for a workspace #
PUT /workspaces/{workspace}/pipelines-config/variables/{variable_uuid} Update variable for a workspace #
DELETE /workspaces/{workspace}/pipelines-config/variables/{variable_uuid} Delete a variable for a workspace #

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-pipelines:bitbucket-pipelines-pipelines-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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-pipelines-pipelines-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Bitbucket Pipelines 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 (266 KB total) ---
# Full source: https://artifacts.apis.io/bitbucket-pipelines/openapi/bitbucket-pipelines-pipelines-api-openapi.yml