---
title: "Get Ownership"
method: GET
path: "/snapshots/{snapshot_id}/ownership"
tags: ["git"]
---

# Get Ownership

`GET /snapshots/{snapshot_id}/ownership`

Ownership breakdown by module (top-level directory) or file, for the
ownership map. Mirrors the OSS `/ownership` route, computed from
`git_metadata.json`. Empty on snapshots without git metadata.

## Path parameters

- `snapshot_id` string, required

## Query parameters

- `granularity` string

## Response `200`

Successful Response

- OwnershipEntry[]
  - `path` string, required
  - `primary_owner` string, nullable
  - `owner_pct` number
  - `is_silo` boolean
  - `contributor_count` integer
  - `lines` integer

## 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.dev/repowise/apis/repowise-hosted-api/revisions/98c833b3480d?raw)
