Skip to main content
POST
Get commits by SHA in batch

Authorizations

Authorization
string
header
required

Bearer token authorizing this operation's repository action. Each operation's security requirement names the resource action the token must be authorized for (pull or push).

Path Parameters

repoId
string
required

Repository ULID.

Pattern: ^[0-9A-HJKMNP-TV-Z]{26}$

Body

application/json
shas
string[] | null
required

Commit SHAs (full hex) to fetch metadata for. Duplicates and case variants collapse to one entry.

Required array length: 1 - 200 elements
includeStats
boolean
default:false

Include diff stats (additions, deletions, filesChanged) per commit, from its diff against its first parent. Stats that exceed the per-commit timeout are omitted (null).

parseTrailers
boolean
default:false

Parse git trailers from each commit message into the trailers field.

Response

OK

{key}
object