---
title: "List database branches"
method: GET
path: "/database/v1/projects/{id}/branches"
tags: ["Database"]
---

# List database branches

`GET /database/v1/projects/{id}/branches`

Retrieves all branches for a database project. Branches enable isolated development and testing environments with instant point-in-time cloning. Each branch includes the default branch and any custom branches created for staging, testing, or feature development.

## Path parameters

- `id` string, required

## Response `200`

Branches retrieved successfully

- object
  - `branches` object[], required
    - `id` string — Branch ID
    - `name` string — Branch name
    - `isDefault` boolean — Whether this is the default branch
    - `parentBranchId` string, nullable — Parent branch ID (null for default branch)
    - `status` string — Branch status
    - `createdAt` string, date-time — Branch creation timestamp
    - `updatedAt` string, date-time — Branch last update timestamp

## Other responses

- `400` — Invalid project ID
- `401` — Invalid or missing API key
- `404` — Database project not found
- `500` — Failed to list branches

---

[API](https://skmtc.net/casemark/apis/case-dev-api.md) · [All operations](https://skmtc.net/casemark/apis/case-dev-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/casemark/case-dev-api/revisions/5b7e64e6d6f9/schema)
