---
title: "Commit Epoch"
method: POST
path: "/api/admin/knowledge-anchor/commit"
tags: ["Knowledge Anchor (admin)"]
---

# Commit Epoch

`POST /api/admin/knowledge-anchor/commit`

## Request

- Base URL: `https://api.kojiru.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.kojiru.com/api/admin/knowledge-anchor/commit`
- Auth: none declared

Build a ready-to-broadcast transaction calling KnowledgeAnchor.commitRoot.

For safety, this endpoint does NOT send the transaction itself. It returns
the encoded calldata + the call's expected arguments so the operator can
review + broadcast via the Safe UI or a hot wallet of their choice. This
keeps the cron / API surface unable to drain gas or commit a wrong root.

## Headers

- `x-admin-token` string, nullable

## Request body

- CommitRequest
  - `epoch` integer, required
  - `epoch_start_iso` string, nullable
  - `epoch_end_iso` string, nullable
  - `ipfs_root_cid_hex` string, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

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