---
title: "Ledger Entry Canonical"
method: GET
path: "/ledger/{entry}/canonical"
tags: ["ledger"]
---

# Ledger Entry Canonical

`GET /ledger/{entry}/canonical`

## Request

- Base URL: `https://api.babyblueviper.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.babyblueviper.com/ledger/{entry}/canonical`
- Auth: none required

EXACT canonical bytes of this entry's `record` under a published hash recipe.

Additive (2026-09-17, Toshikatsu / HORIZON SHIELD gap): GET /ledger/{entry} returns a fresh
JSONResponse projection; the published content_hash_spec / legacy_record_sha256_spec both
require the reader to re-serialize `record` themselves. This path serves the exact bytes the
named recipe hashes, so:

    sha256(response.content).hexdigest() == X-Expected-Sha256

with zero re-serialization on the reader side. Does not change /ledger/{entry} behavior.

Default recipe: content_hash_spec when chain.content_hash is present, else
legacy_ascii_escaped_v0 when record_sha256 is present. Override with ?recipe=.

## Path parameters

- `entry` string, required

## Query parameters

- `recipe` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/babyblueviper/apis/invinoveritas.md) - [All operations](https://skmtc.dev/babyblueviper/apis/invinoveritas/llms.txt) - [OpenAPI document](https://skmtc.dev/babyblueviper/apis/invinoveritas/revisions/8b07f40b15e9?raw)
