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

# Get Ownership

`GET /snapshots/{snapshot_id}/ownership`

## Request

- Base URL: `https://api.repowise.dev` (the document declares no server; this is the origin it was published from)
- URL: `https://api.repowise.dev/snapshots/{snapshot_id}/ownership`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/repowise/apis/repowise-hosted-api/docs/snapshots/:snapshot_id/ownership/get.ts> (a function with typed inputs; its response is checked against the schema)

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/3037f631a606?raw)
