Skip to main content
GET
Get commit diff

Authorizations

Authorization
string
header
required

Personal access token is obtained through your profile

Path Parameters

projectId
string<uuid>
required

Project ID

commitId
string<uuid>
required

Commit ID

Query Parameters

content
default:true

Whether to include file content in the response

Available options:
true,
false,
True,
False,
TRUE,
FALSE

Response

200 - application/json

Commit diff with file changes and statistics

Commit diff with file changes and statistics

id
string<uuid>
required

Commit ID

message
string | null
required

Commit message

branchId
string<uuid>
required

Branch ID

projectId
string<uuid>
required

Project ID

createdById
string<uuid> | null
required

ID of user who created the commit

createdAt
string<date-time>
required

Creation timestamp

branch
object
required

Branch the commit belongs to

changes
object[] | null
required

List of file changes

stats
object
required

Change statistics

createdBy
object | null

User who created the commit

files
any[]

Commit files

previousCommit
object | null

Previous commit