Skip to main content
GET
/
api
/
commit
Get commit details
curl --request GET \
  --url https://api.example.com/api/commit \
  --header 'Authorization: Bearer <token>'
{
  "hash": "<string>",
  "date": "<string>",
  "message": "<string>",
  "refs": "<string>",
  "body": "<string>",
  "authorName": "<string>",
  "authorEmail": "<string>",
  "parents": [
    "<string>"
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your API key.

Query Parameters

repo
string
required

The fully-qualified repository name.

ref
string
required

The git ref (commit SHA, branch, or tag).

Response

Commit details.

hash
string
required

The full commit SHA.

date
string
required

The commit date in ISO 8601 format.

message
string
required

The commit subject line.

refs
string
required

Refs pointing to this commit (e.g. branch or tag names).

body
string
required

The commit body (everything after the subject line).

authorName
string
required
authorEmail
string
required
parents
string[]
required

The parent commit SHAs.