---
title: "[Beta] Diffs a database branch"
method: GET
path: "/v1/branches/{branch_id_or_ref}/diff"
tags: ["Environments"]
---

# [Beta] Diffs a database branch

`GET /v1/branches/{branch_id_or_ref}/diff`

Diffs the specified database branch

## Path parameters

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

## Query parameters

- `included_schemas` string
- `pgdelta` boolean

## Response `200`

## Other responses

- `500` — Failed to diff 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)
