SEC-04 / INGEST API & VERIFICATION CLI SCHEMA SPEC: v3.8
Write Once. Verify Anywhere Offline.
Append structured actor-action-target events over HTTPS with idempotency keys, then hand external auditors signed JSON proof bundles verifiable with a standalone static binary.
01 / APPEND AUDIT EVENT HTTPS POST
curl -X POST https://ingest.immutablelog.example/v3/events \
-H "Authorization: Bearer $IMMUTABLELOG_KEY" \
-H "Idempotency-Key: evt_01J9M4V8Z2XQ" \
-H "Content-Type: application/json" \
-d '{
"actor": "usr_admin_44",
"action": "ehr.record.export",
"target": "patient_chart_88412",
"occurred_at": "2026-11-27T09:12:04.218Z",
"metadata": { "ip": "198.51.100.14", "mfa": "webauthn" }
}' 02 / OFFLINE PROOF VERIFICATION SHELL CLI
# Verify a downloaded auditor proof bundle completely offline
immutablelog-verify \
--proof ./evidence-2026-q4.json \
--pubkey ./org-ed25519.pub
# Output:
# OK canonical_sha256=9f86d081884c...
# OK merkle_inclusion tree_size=48192044 depth=26
# OK ed25519_checkpoint_sig valid (key_id=hsm-prod-02) Proof Bundle Schema
JSON Evidence Pack| Field | Type | Cryptographic Role |
|---|---|---|
| leaf_hash | hex(64) | SHA-256 digest of the RFC 8785 canonicalized event payload. |
| tree_size | uint64 | Exact monotonic ledger index when the signed checkpoint sealed. |
| audit_path | hex(64)[] | Sibling hashes required to recompute the published root hash. |
| root_signature | base64 | Ed25519 signature over root_hash, tree_size, and UTC epoch. |
Estimate Your Multi-Year Vault Footprint
Return to the interactive retention estimator to model HIPAA, SOC 2, or SEC 17a-4 storage.