Skip to main content
GET
/
api
/
projects
/
{projectId}
/
branches
/
{branchId}
/
commits
List commits
curl --request GET \
  --url https://api.example.com/api/projects/{projectId}/branches/{branchId}/commits \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "message": "<string>",
      "branchId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "createdById": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "createdAt": "2023-11-07T05:31:56Z",
      "createdBy": {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "email": "<string>",
        "firstName": "<string>",
        "lastName": "<string>"
      },
      "files": [
        "<unknown>"
      ]
    }
  ],
  "pagination": {
    "current": 123,
    "from": 123,
    "to": 123,
    "total": 123,
    "pageSize": 123
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.gorules.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Personal access token is obtained through your profile

Path Parameters

branchId
required

Branch ID or "main" for the default branch

projectId
string<uuid>
required

Project ID

Query Parameters

page
number
default:1

Current page

perPage
number
default:10

Number of items per page

Search term to filter commits by message

Response

200 - application/json

Paginated list of commits

Paginated list of commits

data
object[]
required

List of commits

pagination
object
required

Pagination information