# Create Branch

> Windows | Cross-platform

## Project compatibility

Windows | Cross-platform

## Overview

| Description | API Method | API Path |
| --- | --- | --- |
| The Create Branch activity creates a new branch in a GitHub repository using a provided commit SHA as the base. | POST | /repos/{owner}/{repo}/git/refs |

## Input

| Parameter | Description | Data Type |
| --- | --- | --- |
| Repository | Repository where the new branch will be created. | string |
| Base branch SHA | SHA of the commit that will be used as the starting point for the new branch. | string |
| Branch | Name of the new branch; must be a valid reference name without wildcard characters. | string |
| Key | Full ref string for the branch, such as `"refs/heads/newbranch"`. | string |

## Output

| Parameter | Description | Data Type |
| --- | --- | --- |
| Branch SHA | SHA of the created branch reference. | string |
| Create branch | Full response object for the create‑branch operation. | Object |

:::note
* In API workflows, a single
response object is returned as the output. Any required fields can be extracted directly from this object.
* In RPA workflows, some output
parameters may differ, but the necessary values can still be retrieved from the response object even if they are not explicitly exposed.
:::
