# List All Branches

> Windows | Cross-platform

## Project compatibility

Windows | Cross-platform

## Overview

| Description | API Method | API Path |
| --- | --- | --- |
| The List All Branches activity returns branches in a GitHub repository, optionally filtered to a specific reference like main. | GET | {repos}/{owner}/{repo}/git/refs |

## Input

| Parameter | Description | Data Type |
| --- | --- | --- |
| Repository | Repository whose branches will be listed; name is not case‑sensitive. | string |
| Reference | Optional exact branch name; when specified, only that ref is returned if it exists. | string |
| Max records | Maximum number of branch records to include in a single page of results. | int32 |

## Output

| Parameter | Description | Data Type |
| --- | --- | --- |
| List all branches | Collection payload containing branch data. | Array |

:::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.
:::
