Bitbucket Branching model API

The branching model resource is used to modify the branching model for a repository. You can use the branching model to define a branch based workflow for your repositories. When you map your workflow to branch types, you can ensure that branches are named consistently by configuring which branch types to make available.

Operations 7

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}/branching-model Get a repository's branching model · Get the branching model for a repository #
Ask an LLM
“What are the development and production branches for this repo?”
“Which branch type prefixes does my repository use, like feature/ or hotfix/?”
Tell an agent
Show the branching model applied to {workspace}/{repo_slug}.
Get the development and production branches of {repo_slug} in {workspace}.
GET /repositories/{workspace}/{repo_slug}/branching-model/settings Get a repository's branching model config · Get the branching model config for a repository #
Ask an LLM
“How is the branching model configured for my repo, including disabled branch types?”
“Can I see the raw branching model settings for a repository?”
Tell an agent
Get the branching model settings for {workspace}/{repo_slug}.
Show the branching model configuration of repo {repo_slug} in {workspace}.
PUT /repositories/{workspace}/{repo_slug}/branching-model/settings Update a repository's branching model config · Update the branching model config for a repository #
Ask an LLM
“How do I change the development branch for my repository?”
“Can I enable a production branch or change branch prefixes on one repo?”
Tell an agent
Update the branching model settings for {workspace}/{repo_slug}.
Set repo {repo_slug} in {workspace} to track the main branch for development.
GET /repositories/{workspace}/{repo_slug}/effective-branching-model Get a repo's effective branching model · Get the effective, or currently applied, branching model for a repository #
Ask an LLM
“Which branching model is actually in effect for my repo, repo or project level?”
“Is my repository inheriting its project's branching model?”
Tell an agent
Get the effective branching model for {workspace}/{repo_slug}.
Show the branching model currently applied to {repo_slug} in {workspace}, inherited or not.
GET /workspaces/{workspace}/projects/{project_key}/branching-model Get a project's branching model · Get the branching model for a project #
Ask an LLM
“What branching model is set at the project level?”
“Which branch prefixes does a Bitbucket project define for its repos?”
Tell an agent
Show the branching model of project {project_key} in {workspace}.
Get the project-level development branch for {project_key}.
GET /workspaces/{workspace}/projects/{project_key}/branching-model/settings Get a project's branching model config · Get the branching model config for a project #
Ask an LLM
“How is the branching model configured for a whole project?”
“Can I read a project's branching model settings including disabled types?”
Tell an agent
Get the branching model settings for project {project_key} in {workspace}.
Show project {project_key}'s branching model configuration.
PUT /workspaces/{workspace}/projects/{project_key}/branching-model/settings Update a project's branching model config · Update the branching model config for a project #
Ask an LLM
“How do I set a default branching model for every repo in a project?”
“Can I change a project's branch prefixes?”
Tell an agent
Update the branching model settings for project {project_key} in {workspace}.
Change project {project_key}'s development branch setting.

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