# Check if a branch exists **HEAD /projects/{id}/repository/branches/{branch}** Check if a branch exists ## Servers - https://www.gitlab.com/api/v4: https://www.gitlab.com/api/v4 () ## Authentication methods - Api key auth ## Parameters ### Path parameters - **id** (string | integer) The ID or [URL-encoded path of the project](https://docs.gitlab.com/api/rest/#namespaced-paths). - **branch** (string) The name of the branch ## Responses ### 204 No Content ### 404 Not Found [Powered by Bump.sh](https://bump.sh)