---
title: "HEAD /api/v4/projects/{id}/repository/branches/{branch}"
method: HEAD
path: "/api/v4/projects/{id}/repository/branches/{branch}"
tags: ["branches"]
---

# HEAD /api/v4/projects/{id}/repository/branches/{branch}

`HEAD /api/v4/projects/{id}/repository/branches/{branch}`

## Request

- Base URL: `https://gitlab.com`
- URL: `https://gitlab.com/api/v4/projects/{id}/repository/branches/{branch}`
- Auth: none declared

Check if a branch exists

## Path parameters

- `id` string, required
- `branch` string, required

## Response `204`

No Content

## Other responses

- `404`: Not Found

---

[API](https://skmtc.dev/gitlab/apis/gitlab-api.md) - [All operations](https://skmtc.dev/gitlab/apis/gitlab-api/llms.txt) - [OpenAPI document](https://skmtc.dev/gitlab/apis/gitlab-api/revisions/b234947ef3f2?raw)
