---
title: "List template project commit history"
method: GET
path: "/v1/templates/{id}/workspace/history"
tags: ["Templates"]
---

# List template project commit history

`GET /v1/templates/{id}/workspace/history`

## Request

- Base URL: `https://api.samva.dev`
- URL: `https://api.samva.dev/v1/templates/{id}/workspace/history`
- Auth: API key in header `x-api-key`

Returns recent history from the template repository's default branch.

## Path parameters

- `id` string, required

## Query parameters

- `limit` string, nullable

## Response `200`

Success

- object
  - `projectId` string, required
  - `head` string, required
  - `commits` object[], required
    - `commit` string, required
    - `tree` string, required
    - `parentCommit` string, nullable, required
    - `message` string, required
    - `committedAt` string, required
  - `publication` object, nullable, required
    - `id` string, required
    - `commit` string, required

## Other responses

- `401`: UnauthorizedError
- `403`: ForbiddenError
- `404`: ResourceNotFoundError
- `409`: ConflictError
- `422`: ValidationError
- `500`: InternalError
- `504`: GatewayTimeoutError

---

[API](https://skmtc.dev/samva/apis/samva-api.md) · [All operations](https://skmtc.dev/samva/apis/samva-api/llms.txt) · [OpenAPI document](https://skmtc.dev/samva/apis/samva-api/revisions/a99408542cc3?raw)
