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

# Get Commits

`GET /snapshots/{snapshot_id}/commits`

Per-commit change-risk feed — the review-priority queue.

``sort=date`` (default) orders by commit time descending; ``sort=risk`` by
raw change-risk descending. Banding is repo-relative regardless of sort.

``authorship`` narrows to agent-attributed (``agent``) or human-only
(``human``) commits. ``kind`` narrows to the review-priority band
(``high``) or bug-fix commits (``fixes``).

Both filters run over the whole repository, not the loaded page, so
``total`` is the filtered count and paging through a filter reaches every
commit that matches it rather than whatever the first page happened to
hold. The percentile normalizer stays anchored to the full distribution,
so a commit's band is identical regardless of the active filter.
Empty for snapshots indexed before repowise 0.15.0.

## Path parameters

- `snapshot_id` string, required

## Query parameters

- `sort` string
- `authorship` string
- `kind` string
- `limit` integer
- `offset` integer

## Response `200`

Successful Response

- PaginatedCommitEntry
  - `items` CommitEntry[], required
    - `sha` string, required
    - `short_sha` string, required
    - `author_name` string
    - `author_email` string
    - `committed_at` string, nullable
    - `subject` string
    - `lines_added` integer
    - `lines_deleted` integer
    - `files_changed` integer
    - `dirs_changed` integer
    - `subsystems_changed` integer
    - `entropy` number
    - `is_fix` boolean
    - `change_risk_score` number, nullable
    - `change_risk_level` string, nullable
    - `risk_percentile` number
    - `review_priority` 'low' | 'moderate' | 'high'
    - `top_driver` string, nullable
    - `author_experience` integer, nullable
    - `author_commit_count` integer, nullable
    - `agent_name` string, nullable
    - `agent_autonomy_tier` integer, nullable
    - `agent_confidence` string, nullable
  - `total` integer, required
  - `has_more` boolean, required
  - `next_offset` integer, nullable

## Other responses

- `422` — Validation Error

## Changes

- **2026-09-21** `cce15d886f2b` — 1 breaking, 1 info
  - for the `query` request parameter `sort`, default value was changed from `risk` to `date`
  - added the new optional `query` request parameter `kind`

[Change history](https://skmtc.dev/repowise/apis/repowise-hosted-api/changes/snapshots/:snapshot_id/commits/get.md)

---

[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/cce15d886f2b?raw)
