Commits

List commit history

List paginated commit history for a revision or file path. Supports revision ranges (base..head) and path-specific history.

get/api/repos/{namespace}/{repo_name}/commits/history/{resource}

Request

Path parameters

namespacestring required

Namespace of the repository

repo_namestring required

Name of the repository

resourcestring required

Commit ID, Branch name, or path to a file/directory

pageinteger nullable required
page_sizeinteger nullable required

Response

A page of commits, newest first. A revision's history carries its total count, and a file or directory's history reports whether a later page exists.

OR

Example response

{
  "commits": [
    {
      "author": "ox",
      "email": "ox@example.com",
      "id": "a1b2c3d4e5f67890abcdef1234567890",
      "message": "Refactor data loading pipeline.",
      "parent_ids": [
        "f1e2d3c4b5a67890fedcba9876543210"
      ],
      "timestamp": "2025-01-01T10:00:00Z"
    }
  ],
  "page_number": 1,
  "page_size": 10,
  "status": "success",
  "status_message": "resource_found",
  "total_entries": 45,
  "total_pages": 5
}

Changes

No recorded changes to this operation across all 2 revisions of this API.