---
title: "The commits that last touched the code an error group fails in"
method: GET
path: "/projects/{project_id}/error-groups/{group_id}/suspect-commits"
tags: ["error-tracking"]
---

# The commits that last touched the code an error group fails in

`GET /projects/{project_id}/error-groups/{group_id}/suspect-commits`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/projects/{project_id}/error-groups/{group_id}/suspect-commits`
- Auth: HTTP bearer

## Path parameters

- `project_id` integer, required
- `group_id` integer, required

## Response `200`

Up to 5 commits that touched the file of the latest event's innermost application frame, or why there are none

- SuspectCommitsView: The newest commits that touched the file of the latest event's innermost application frame.
  - `at` string, nullable: The deployed commit the history was read at; the default branch when absent.
  - `commits` SuspectCommitView[], required
    - `author_name` string, nullable
    - `authored_at` string, date-time, nullable
    - `sha` string, required
    - `summary` string, required
    - `url` string, required
  - `function` string, nullable
  - `lineno` integer, nullable
  - `path` string, nullable
  - `reason` string, nullable: Why there are no commits, when there are none.

## Other responses

- `401`: Not authenticated
- `403`: No access to the project
- `404`: No such group in the project
- `500`: Internal server error

## Changes

- **2026-11-21** `451aa64395bb`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/projects/:project_id/error-groups/:group_id/suspect-commits/get.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
