---
title: "Get context commit history"
method: GET
path: "/v0/project/{project_name}/contexts/{context_name}/commits"
tags: ["Contexts"]
---

# Get context commit history

`GET /v0/project/{project_name}/contexts/{context_name}/commits`

Retrieves the commit history for a versioned context.

## Path parameters

- `project_name` string, required
- `context_name` string, required

## Response `200`

Successful Response

- ContextCommitHistory[]
  - `commit_hash` string, required
  - `commit_message` string, nullable
  - `created_at` string, required
  - `type` 'project' | 'context', required
  - `prev_commit_hash` string, nullable
  - `next_commit_hash` string[]

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/unify/apis/unifyai-http-api-reference.md) · [All operations](https://skmtc.dev/unify/apis/unifyai-http-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/unify/unifyai-http-api-reference/revisions/900377f918b6/schema)
