Blame
Return per-line blame metadata for a file at a branch, tag, or commit. Supports git blame -L-style range filters and rename/copy detection for callers building IDE blame views or audit tooling.
JWT claims
Required scopes: git:read
Requires per repo scope: Yes
Deprecated: Use /api/repos/{repo_name}/blame instead.
Authorizations
JWT bearer token signed with your organization's registered signing key. There is no OAuth authorization server; you mint tokens yourself and the token's scopes claim carries the granted permission scopes. Public scopes: git:read (read repository contents), git:write (write branches, commits, tags, and notes), repo:write (create and manage repositories), org:read (list an organization's repositories). Each operation's security requirement names the scopes it requires. See https://code.storage/docs/getting-started/authentication for how to mint tokens.
Query Parameters
Repository-relative file path to blame.
Optional branch, tag, or commit SHA to blame at. When omitted, the repository default branch is used.
Whether ref should be resolved from the ephemeral namespace.
Optional git blame -L-style range spec. May be repeated to blame multiple regions (max 16). Each value is one -L argument: e.g. 10,20, 10,+5, /getUser/,/^}/, /getUser/,+30, 10,, ,20, 10, :^func .*Foo, :funcname.
Follow the file across renames and copies.
Response
Per-line blame for the resolved file revision.
Per-line blame information for the requested file at the resolved revision.
Commit SHA the blame was computed at.
"b003fc78805954584e1ee364a4ad39d7c79e819a"
Per-line blame results in file order.
Repository-relative file path that was blamed.
"src/main.go"
Resolved ref used for the blame.
"main"