---
title: "Get Commit Content"
method: GET
path: "/api/v1/functions/{function_id}/commits/{id}"
tags: ["Function Commit"]
---

# Get Commit Content

`GET /api/v1/functions/{function_id}/commits/{id}`

GetCommitContent retrieves a commit and all its file contents in a single unary response.
 This is a non-streaming alternative to GetCommit for REST API consumers.

## Path parameters

- `function_id` string, required — The function ID (KSUID).
- `id` string, required — The commit reference to retrieve. Accepts a KSUID, "HEAD", or a tag reference like "refs/tags/v1.0".

## Response `200`

FunctionsServiceGetCommitContentResponse contains a commit and all its file contents.

- C1ApiFunctionsV1FunctionsServiceGetCommitContentResponse — FunctionsServiceGetCommitContentResponse contains a commit and all its file contents.
  - `commit` C1ApiFunctionsV1FunctionCommit — FunctionCommit represents a single commit in a function's history
    - `author` string — The author field.
    - `createdAt` string, date-time, nullable
    - `functionId` string — The functionId field.
    - `id` string — The id field.
    - `message` string — The message field.
  - `files` object — Map of filename to file content bytes.

## Changes

> 33 revisions in range; 1 could not be searched.

- **2026-04-30** `fa2bb307d6fa` — 1 info
  - endpoint added
- **2025-12-05** `db31ee81cba5` — 1 breaking
  - api path removed without deprecation
- **2025-08-20** `182cb087dfa4` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/conductorone/apis/c1-api/changes/api/v1/functions/:function_id/commits/:id/get.md)

---

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