---
title: "List Workflow Branches"
method: GET
path: "/workspaces/{workspace_id}/workflows/sync/branches"
tags: ["workflows"]
---

# List Workflow Branches

`GET /workspaces/{workspace_id}/workflows/sync/branches`

## Request

- Base URL: `https://platform.tracecat.com/api`
- URL: `https://platform.tracecat.com/api/workspaces/{workspace_id}/workflows/sync/branches`
- Auth: one of:
  - API key in cookie `fastapiusersauth`
  - HTTP bearer

Get branch list for the configured workspace repository.

## Path parameters

- `workspace_id` string, uuid, required

## Query parameters

- `limit` integer: Maximum number of branches to return

## Response `200`

Successful Response

- GitBranchInfo[]
  - `name` string, required: Branch name
  - `is_default` boolean: Whether this branch is the repository default branch

## Other responses

- `422`: Validation Error

---

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