> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Branch

Create a new branch in the repository.

<Note>
  External Documentation

  To learn more, visit the [GitLab documentation](https://docs.gitlab.com/ee/api/branches.html#create-repository-branch).
</Note>

## Parameters

<div className="integrations-table">
  | Parameter  | Description                                                |
  | ---------- | ---------------------------------------------------------- |
  | Branch     | Name of the branch.                                        |
  | Project ID | ID or path of the project owned by the authenticated user. |
  | Ref        | Branch name or commit SHA to create branch from.           |
</div>

## Example Output

```json theme={"dark"}
{
	"name": "<string>",
	"commit": {
		"id": "<string>",
		"short_id": "<string>",
		"created_at": "2023-03-04T10:29:55.000+00:00",
		"parent_ids": [],
		"title": "<string>",
		"message": "<string>",
		"author_name": "<string>",
		"author_email": "<string>",
		"authored_date": "2023-03-04T10:29:55.000+00:00",
		"committer_name": "<string>",
		"committer_email": "<string>",
		"committed_date": "2023-03-04T10:29:55.000+00:00",
		"trailers": {},
		"extended_trailers": {},
		"web_url": "<string>"
	},
	"merged": false,
	"protected": false,
	"developers_can_push": false,
	"developers_can_merge": false,
	"can_push": true,
	"default": false,
	"web_url": "<string>"
}
```

## Workflow Library Example

[Create Branch with Gitlab and Send Results Via Email](https://library.blinkops.com/workflows/create-branch-with-gitlab-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/create-branch-with-gitlab-and-send-results-via-email/canvas" />
</div>
