List template project commit history
Returns recent history from the template repository's default branch. Request: GET /v1/templates/{id}/workspace/history. Scope: templates:read.
GET
Returns recent history from the template repository's default branch.
apiKeyheader
x-api-key<token>id*stringMatch
^tmpl_[0-9a-hjkmnp-tv-z]{16,24}$limit?|nullSuccess
application/json- response
projectId*TemplateProjectIdMatch
^tproj_[0-9a-hjkmnp-tv-z]{16,24}$head*stringMatch
^[a-f0-9]{40}$commits*array<>publication*|nullimport { createClient } from "samva";
const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });
const result = await samva.templates.workspaceHistory({
"id": "example"
});Example Response
{
"projectId": "string",
"head": "string",
"commits": [
{
"commit": "string",
"tree": "string",
"parentCommit": "string",
"message": "string",
"committedAt": "string"
}
],
"publication": {
"id": "string",
"commit": "string"
}
}