v1
latestOpenAPI 3.0.32026-07-22172336.7 KBGit
Get file blame
Returns blame information for a file at a given repository path and optional git ref.
The response is split into two parts:
- ranges: contiguous, non-overlapping line ranges, each attributed to a single commit. Ordered by startLine.
- commits: commit metadata (hash, date, message, author, optional previous pointer for walking back through history) keyed by hash, deduplicated across ranges.
Whole-file renames are followed automatically. Cross-file line moves and copies are not.
get/api/blame
Query parameters
pathstring required
The file path to blame, relative to the repository root.
The file path to blame, relative to the repository root.
repostring required
The fully-qualified repository name.
The fully-qualified repository name.
refstring
The git ref (branch, tag, or commit SHA) to blame at. Defaults to the repository's default branch.
The git ref (branch, tag, or commit SHA) to blame at. Defaults to the repository's default branch.
Response
Blame ranges and deduplicated commit metadata.