---
title: "List commits"
method: GET
path: "/api/v1/commits/{owner}/{repo}"
tags: ["commits"]
---

# List commits

`GET /api/v1/commits/{owner}/{repo}`

## Request

- Base URL: `https://api.smith.langchain.com`
- URL: `https://api.smith.langchain.com/api/v1/commits/{owner}/{repo}`
- Auth: one of:
  - API key in header `X-API-Key`
  - API key in header `X-Tenant-Id`
  - HTTP bearer

List commits for a repository, with pagination support.
This endpoint supports both authenticated and unauthenticated access.
Authenticated users can access private repositories; unauthenticated users can only access public repositories.
The include_stats parameter controls whether download and view statistics are computed (defaults to true).

## Path parameters

- `owner` string, required
- `repo` string, required

## Query parameters

- `include_stats` boolean
- `limit` integer
- `offset` integer
- `tag` string

## Response `200`

OK

- CommitsListCommitsResponse
  - `commits` CommitsCommitWithLookups[]: List of commits with lookup information
    - `commit_hash` string: The hash of the commit
    - `created_at` string, date-time: When the commit was created
    - `description` string: Optional human-readable description for the commit
    - `example_run_ids` string[]: Example run IDs associated with the commit
    - `full_name` string: Author's full name
    - `id` string, uuid: The commit ID
    - `manifest` object: The manifest of the commit
    - `manifest_sha` integer[]: The SHA of the manifest
    - `num_downloads` integer: Number of API downloads
    - `num_views` integer: Number of web views
    - `parent_commit_hash` string: The hash of the parent commit
    - `parent_id` string, uuid: The ID of the parent commit
    - `repo_id` string, uuid: Repository ID
    - `updated_at` string, date-time: When the commit was last updated
  - `total` integer: Total number of commits

## Other responses

- `400`: Bad Request
- `404`: Not Found
- `500`: Internal Server Error

## Changes

- **2026-10-16** `1a8ee9358d81`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/langchain-ai/apis/langsmith/changes/api/v1/commits/:owner/:repo/get.md)

---

[API](https://skmtc.dev/langchain-ai/apis/langsmith.md) - [All operations](https://skmtc.dev/langchain-ai/apis/langsmith/llms.txt) - [OpenAPI document](https://skmtc.dev/langchain-ai/apis/langsmith/revisions/7a01c01f75e8?raw)
