---
title: "Branches"
description: "Branches"
url: "https://www.contentstack.com/docs/developers/sdks/content-management-sdk/python/reference/branches"
product: "Contentstack"
doc_type: "guide"
audience:
  - developers
  - admins
version: "current"
last_updated: "2026-09-21"
---

# Branches

## Branches

[Branches](/docs/headless-cms/about-branches) efficiently present independent workspaces where developers and content managers can work parallelly on content models and content. It helps sync the development activities of websites.

## create

The create method creates a new branch in a particular stack of your organization.

```
import contentstack
import contentstack_management
data = {
        "branch": {
        "uid": "release",
        "source": "main"
        }
    }
branch = contentstack_management.Client(authtoken='auth_token').stack(api_key='api_key').branch()
response = branch.create(data)
```

Data required to create a new branch

## delete

The delete method removes an existing branch from a particular stack of your organization.

```
import contentstack
import contentstack_management
branch = contentstack_management.Client(authtoken='auth_token').stack(api_key='api_key').branch(branch_uid="branch_uid")
response = branch.delete(data)
```

UID of the branch

## fetch

The fetch method retrieves the details of a specific branch.

```
import contentstack
import contentstack_management
branch = contentstack_management.Client(authtoken='auth_token').stack(api_key='api_key').branch(branch_uid="branch_uid")
response = branch.fetch()
```

UID of the branch

## find

The find method retrieves the details of all the branches in a particular branch.

```
import contentstack
import contentstack_management
branch = contentstack_management.Client(authtoken='auth_token').stack(api_key='api_key').branch()
response = branch.find()
```

A limit on the number of objects to return

The number of objects to skip before return

To retrieve the count of results in response

## Branches | Python Management SDK | Contentstack

Branches give independent workspaces for parallel work on content models and content, in the Python Management SDK.