---
title: "Get branch commit"
method: GET
path: "/api/projects/{projectId}/branches/{branchId}/commits/{commitId}"
tags: ["Branches"]
---

# Get branch commit

`GET /api/projects/{projectId}/branches/{branchId}/commits/{commitId}`

Retrieves a specific commit on a branch by commit ID or keywords.

## Path parameters

- `projectId` string, uuid, required
- `branchId` union, required
  - string, uuid
  - 'main'
- `commitId` union, required
  - string, uuid
  - 'base' | 'latest'

## Query parameters

- `content` boolean

## Response `200`

The requested commit

- object — The requested commit
  - `id` string, uuid, required — Commit ID
  - `message` string, nullable, required — Commit message
  - `branchId` string, uuid, required — Branch ID
  - `projectId` string, uuid, required — Project ID
  - `createdById` string, uuid, nullable, required — ID of user who created the commit
  - `createdBy` object, nullable — User who created the commit
    - `id` string, uuid, required — User ID
    - `email` string, required — User email
    - `firstName` string, nullable, required — User first name
    - `lastName` string, nullable, required — User last name
  - `createdAt` string, date-time, required — Creation timestamp
  - `files` unknown[] — Commit files
    - unknown

---

[API](https://skmtc.dev/gorules/apis/gorules-agent-api.md) · [All operations](https://skmtc.dev/gorules/apis/gorules-agent-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/gorules/gorules-agent-api/revisions/52c0773fcd80/schema)
