Skip to main content
Docs

The record

The record is one append-only, hash-linked chain per tenant and mode. These routes list entries, return the head, verify a range, and read the daily signed checkpoints. They return hashes and summaries; hashed documents are returned exactly as hashed so you can recompute them. See Receipts and verification.

The base is https://holdyn-fb2e34c7cbae.herokuapp.com/api/v1/b2b. Every endpoint below lists who may call it.

At a glance#

Objects

RecordEntry and TimelineItem

RecordEntry and TimelineItem (example values)
{
  "id": "rec_6543a1b2c3d4e5f6a7b8cf10",
  "object": "record_entry",
  "chain": "test",
  "seq": 311,
  "type": "release.gate_evaluated",
  "occurred_at": "2026-12-22T10:00:00.000Z",
  "recorded_at": "2026-12-22T10:00:00.041Z",
  "actor": { "type": "system", "id": null, "role": null },
  "subject": { "kind": "release", "id": "rel_6543a1b2c3d4e5f6a7b8cd50", "mandate": "man_6543a1b2c3d4e5f6a7b8cc00" },
  "summary": "Gate evaluated for Provider payment of $14,000: waiting for a second approval.",
  "supersedes_seq": null,
  "body_hash": "…64 hex",
  "prev_hash": "…64 hex",
  "hash": "…64 hex",
  "hash_version": "r1",
  "body": {
    "chainId": "6543a1b2c3d4e5f6a7b8c9d0:test", "seq": 311, "entryKey": "6543a1b2c3d4e5f6a7b8cf11", "type": "release.gate_evaluated",
    "schemaVersion": 1, "occurredAt": "2026-12-22T10:00:00.000Z", "recordedAt": "2026-12-22T10:00:00.041Z",
    "actor": { "type": "system", "id": null, "role": null },
    "subject": { "kind": "release", "id": "rel_6543a1b2c3d4e5f6a7b8cd50", "mandateId": "man_6543a1b2c3d4e5f6a7b8cc00" },
    "data": { "...": "type-specific canonical data (ids, integer amounts, digests; no contact data)" },
    "refs": { "stripe": {}, "requestId": "req_8f2c51d0", "idempotencyKey": null, "jobId": null }, "supersedesSeq": null
  }
}

Checkpoint

Checkpoint (example values)
{
  "id": "ckpt_6543a1b2c3d4e5f6a7b8cf20",
  "object": "checkpoint",
  "chain": "live",
  "period_end": "2026-11-10",
  "seq": 1234,
  "head_hash": "…64 hex",
  "entry_count": 1234,
  "key_id": "rk1",
  "key_fingerprint": "…64 hex",
  "algorithm": "ed25519",
  "signed": true,
  "signature": "base64url…",
  "body": "{\"chainId\":\"…\",\"createdAt\":\"…\",\"entryCount\":1234,\"headHash\":\"…\",\"mode\":\"live\",\"periodEnd\":\"2026-11-10\",\"seq\":1234,\"tenant\":\"ten_…\",\"v\":\"hckpt1\"}",
  "anchors": [
    { "kind": "s3_object_lock", "ref": "b2b-anchors/6543…:live/2026-11-10.json", "at": "2026-11-11T00:15:03.000Z", "ok": true },
    { "kind": "email", "ref": "owners", "at": "2026-11-11T00:15:05.000Z", "ok": true },
    { "kind": "tenant_webhook", "ref": "evt_…", "at": "2026-11-11T00:15:04.000Z", "ok": true }
  ],
  "verification": { "at": "2026-11-11T01:02:00.000Z", "ok": true, "breaks": 0 },
  "created_at": "2026-11-11T00:15:01.000Z"
}

Endpoints

GET/record/entries

Credential
Member session or API key
Permission
record.read
API key scope
record:read
Mode
chain
Pagination
cursor (`rec_` ids; `order` default `desc`)

Request

chain (test, live; default request mode; API keys only their own mode), type (multi, exact), type_prefix (e.g. member.), actor_type (multi), actor_id (public id), mandate (man_), subject (any public id), occurred[gte|lte], seq[gte|lte], order (asc, desc).

Response

200 ListResponse<RecordEntry> (with verbatim body).

Notes

built only from B2bRecordEntry (never a separate mutable log). Exports: page through with order=asc.

GET/record/entries/:seq

Credential
Member session or API key
Permission
record.read
API key scope
record:read
Mode
chain

Request

:seq integer ≥ 1; query chain. · Response: 200 RecordEntry.

GET/record/head

Credential
Member session or API key
Permission
record.read
API key scope
record:read
Mode
chain

Response

200 {"object": "record_head", "chain": "live", "seq": 1290, "hash": "…", "entry_count": 1290, "last_checkpoint": Checkpoint|null, "last_verification": {"at", "ok", "breaks"}|null, "signing": {"signed": true, "key_id": "rk1", "key_fingerprint": "…64 hex"}, "anchors": {"object_lock": true, "owner_email": true, "tenant_webhook": false}}.

GET/record/verify

Credential
Member session or API key
Permission
record.read
API key scope
record:read
Mode
chain
Idempotency
— (read)

Request

chain; from_seq integer optional (default 1); to_seq integer optional (default head).

Response

200 {"object": "record_verify_result", "chain": "live", "from_seq": 1, "to_seq": 1290, "ok": true, "entries_checked": 1290, "checkpoints_checked": 9, "breaks": [], "source": "live", "verified_at": "…"}. Revision 4: a range over 10,000 entries of a chain never verified yet answers ok: null, source: "none", verified_at: null (unknown, never "failed with no breaks"); a checkpoint ABOVE the chain head (a truncated tail) is always reported (checkpoint_mismatch) whatever range was asked; breaks[].kind adds signature_missing and anchor_mismatch. breaks[]: {"seq", "kind": "body_hash_mismatch"|"link_mismatch"|"gap"|"checkpoint_mismatch"|"signature_invalid", "detail"}. Ranges over 10,000 entries return the latest daily verification (source: "daily"). detail is the verifier's reason text (server text, not a vocabulary), e.g. body_hash_mismatch, hash_mismatch, prev_hash_mismatch, missing seq 6..6, or checkpoint 2026-11-09: ….

GET/record/checkpoints

Credential
Member session or API key
Permission
record.read
API key scope
record:read
Mode
chain
Pagination
cursor (newest first)

Request

chain, period_end[gte|lte]. · Response: 200 ListResponse<Checkpoint>.

GET/record/checkpoints/:id

Credential
Member session or API key
Permission
record.read
API key scope
record:read
Mode
chain
The record · Holdyn Business docs