---
title: "Get Co Changes"
method: GET
path: "/snapshots/{snapshot_id}/co-changes"
tags: ["dashboard"]
---

# Get Co Changes

`GET /snapshots/{snapshot_id}/co-changes`

Co-change pairs from `git_metadata.co_change_partners_json`.

With `?file=...`, returns the partners that historically change with
that file (one row per partner). Without, returns the top global
pairs ranked by `co_change_count`, deduplicated as undirected pairs.

``co_change_count`` is the number of shared commits, not the indexer's
decay-weighted score. The client renders it as "x N", so a count is the only
reading that makes the label true; the weighted score is what the coupling
graph surfaces as ``strength``.

## Path parameters

- `snapshot_id` string, required

## Query parameters

- `file` string, nullable — Optional file path to scope to its co-change partners
- `limit` integer

## Response `200`

Successful Response

- CoChangesResponse
  - `total` integer, required
  - `pairs` CoChangePartner[], required
    - `file_path` string, required
    - `partner_path` string, required
    - `co_change_count` integer, required
    - `confidence` number

## Other responses

- `422` — Validation Error

---

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