# Get a project repository branches **GET /projects/{id}/repository/branches** Get a project repository branches ## 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). ### Query parameters - **page** (integer(int32)) Current page number - **per_page** (integer(int32)) Number of items per page - **search** (string) Return list of branches matching the search criteria - **regex** (string) Return list of branches matching the regex - **sort** (string) Return list of branches sorted by the given field - **page_token** (string) Name of branch to start the pagination from ## Responses ### 200 Get a project repository branches #### Body: application/json (array[object]) - **name** (string) - **commit** (object) - **merged** (boolean) - **protected** (boolean) - **developers_can_push** (boolean) - **developers_can_merge** (boolean) - **can_push** (boolean) - **default** (boolean) - **web_url** (string) ### 404 404 Project Not Found [Powered by Bump.sh](https://bump.sh)