---
title: "List commits"
method: GET
path: "/api/spaces/{namespace}/{repo}/commits/{rev}"
tags: ["spaces"]
---

# List commits

`GET /api/spaces/{namespace}/{repo}/commits/{rev}`

## Path parameters

- `namespace` string, required
- `repo` string, required
- `rev` string, required

## Query parameters

- `p` integer
- `expand` string[]
- `limit` integer

## Response `200`

Commits list

- object[]
  - `id` string, required
  - `title` string, required
  - `message` string, required
  - `authors` object[], required
    - `user` string, required
    - `avatar` string
  - `date` string, date-time, required
  - `formatted` object — Available if expand includes formatted
    - `title` string, required
    - `message` string

## Changes

- **2026-09-08** `bd17546f47b8` — 1 warning, 1 info
  - for the `query` request parameter `expand`, the type of property `items/` changed from no type to `string`
  - the `items/date` response's property pattern was changed from `^((\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\d|3[01])|(0[469]|11)-(0[1-9]|[12]\d|30)|(02)-(0[1-9]|1\d|2[0-8])))T([01]\d|2[0-3]):[0-5]\d:[0-5]\d(\.\d+)?(Z)$` to `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$` for the status `200`

[Change history](https://skmtc.dev/huggingface/apis/hub-api-endpoints/changes/api/spaces/:namespace/:repo/commits/:rev/get.md)

---

[API](https://skmtc.dev/huggingface/apis/hub-api-endpoints.md) · [All operations](https://skmtc.dev/huggingface/apis/hub-api-endpoints/llms.txt) · [OpenAPI document](https://skmtc.dev/huggingface/apis/hub-api-endpoints/revisions/b88d4a4da99f?raw)
