---
title: "List Branches"
method: GET
path: "/v1/prompts/{alias}/branches"
tags: ["Prompt"]
---

# List Branches

`GET /v1/prompts/{alias}/branches`

## Request

- Base URL: `https://api.confident-ai.com`
- URL: `https://api.confident-ai.com/v1/prompts/{alias}/branches`
- Auth: none declared
- TypeScript: <https://skmtc.dev/confident-ai/apis/confident-ai-metrics-api/docs/v1/prompts/:alias/branches/get.ts> (a function with typed inputs; its response is checked against the schema)

Retrieves a list of all the branches associated with a prompt

## Response `200`

- ListPromptBranchesResponse
  - `success` boolean, required: This is true if the prompt branches were successfully retrieved.
  - `data` object, required
    - `branches` object[], required
      - `id` string, required: This is the unique id of the prompt branch.
      - `name` string, required: This is the name of the prompt branch.
  - `deprecated` boolean, required: This is true if this endpoint is deprecated.

## Changes

> 54 revisions in range; 3 not diffed.

- **2026-03-30** `27c5711b1fb5`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/confident-ai/apis/confident-ai-metrics-api/changes/v1/prompts/:alias/branches/get.md)

---

[API](https://skmtc.dev/confident-ai/apis/confident-ai-metrics-api.md) - [All operations](https://skmtc.dev/confident-ai/apis/confident-ai-metrics-api/llms.txt) - [OpenAPI document](https://skmtc.dev/confident-ai/apis/confident-ai-metrics-api/revisions/95cdde71b65e?raw)
