---
title: "Get database branch config"
method: GET
path: "/v1/branches/{branch_id_or_ref}"
tags: ["Environments"]
---

# Get database branch config

`GET /v1/branches/{branch_id_or_ref}`

Fetches configurations of the specified database branch

## Path parameters

- `branch_id_or_ref` union, required
  - string — Project ref
  - string, uuid

## Response `200`

- BranchDetailResponse
  - `ref` string, required
  - `postgres_version` string, required
  - `postgres_engine` string, required
  - `release_channel` string, required
  - `status` 'INACTIVE' | 'ACTIVE_HEALTHY' | 'ACTIVE_UNHEALTHY' | 'COMING_UP' | 'UNKNOWN' | 'GOING_DOWN' | 'INIT_FAILED' | 'REMOVED' | 'RESTORING' | 'UPGRADING' | 'PAUSING' | 'RESTORE_FAILED' | 'RESTARTING' | 'PAUSE_FAILED' | 'RESIZING', required
  - `db_host` string, required
  - `db_port` integer, required
  - `db_user` string
  - `db_pass` string
  - `jwt_secret` string

## Other responses

- `500` — Failed to retrieve database branch

---

[API](https://skmtc.dev/supabase/apis/management-api.md) · [All operations](https://skmtc.dev/supabase/apis/management-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/supabase/management-api/revisions/a7cb39418064/schema)
