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 bystartLine.commits: commit metadata (hash, date, message, author, optionalpreviouspointer 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.
Authorizations
Bearer authentication header of the form Bearer <token>. The token may be a Sourcebot API key, OAuth access token, or scoped access token, subject to endpoint requirements.
Query Parameters
The file path to blame, relative to the repository root.
The fully-qualified repository name.
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.
The repository that the commit hashes and paths belong to. Usually the requested repository; for an owner repository's knowledge-base/ path it is the knowledge repository, with paths relative to it.
Contiguous, non-overlapping line ranges ordered by startLine. Each range is attributed to a single commit.
Commit metadata keyed by hash, deduplicated across ranges.

