Dekimu · anchored receipts docs
API reference
Four public endpoints. All read-only, all CORS-enabled, no auth.
GET /api/v/<id>
Returns the signed claim for a receipt.
Path: https://verify.dekimu.com/api/v/<id>
Query (optional): ?tier=(public_minimal | public_full | metadata_only) and ?reveal=<base64url> for receipts that carry selective-disclosure commitments. Defaults to the receipt's own disclosure mode.
Headers: CORS access-control-allow-origin: *, cache-control: no-store.
Response 200 (shape):
{
"id": "<id>",
"kind": "apr.v1",
"issuer": "commander-app",
"subject": "<principalId or pseudonym>",
"iat": 1715520000,
"kid": "commander-app-2026",
"body": { /* kind-specific signed body */ },
"sig": "<base64url Ed25519 signature>",
"parent": null,
"disclosure": {
"applied": "public_minimal",
"revealVerified": false,
"revealedKeys": [],
"available": ["public_minimal", "public_full", "metadata_only"]
}
}Verdict: the top-level status is verified only when the signature checks out and the receipt is included in a daily root whose hash matches the root signed at build time. Other anchor outcomes: pending / not-yet-built (root not sealed yet), tampered, and unverifiable — a root summary exists but no build-time signed root vouches for it (anchoring pending, not verifiable; anchor.reason is root_missing, root_invalid or root_mismatch). On v2 envelopes the anchor verdict is anchor.verdict.
Two more statuses: untrusted — the signature is valid, but issuer trust is not established (v2: the key is not in the trusted catalog, signature.trust_outcome = valid_untrusted; v1 and v2: the key is retired and this receipt is not one it signed before the retirement) — and, on v2, revoked: the issuer flagged the receipt in its status list (revocation).
Retired signing key: a receipt signed under a retired key also carries retiredKey:
"retiredKey": {
"kid": "invoiceup-2026",
"issuer": "invoiceup",
"retiredAt": "2026-11-11T00:14:00.000Z",
"lastAnchorDate": "2026-11-11",
"verdict": "trusted" | "awaiting_anchor" | "untrusted",
"message": "<why, in plain language>"
}trusted: the receipt is on the reviewed list of receipts that key signed in daily roots sealed on or before lastAnchorDate, with the same signature. awaiting_anchor: it may still join that list (its root is not sealed and reviewed yet) — status is pending on v1 and v2 even when the receipt is already anchored, and the v2 trust axis reads valid_untrusted; it is never verified. untrusted: anything else, including a different body stored under a listed ID; status is then untrusted (over a pending anchor too). A failed signature or anchor still reads tampered.
Errors: 400 invalid_claim_id for malformed IDs, 404 not_found when no claim exists for the ID.
GET /api/proof/<id>
Returns the Merkle inclusion proof for a receipt in its daily audit root.
Path: https://verify.dekimu.com/api/proof/<id>
Headers: cache-control: no-store.
Response 200 (shape):
{
"v": 2,
"claimId": "<id>",
"date": "2026-05-12",
"rootHash": "<hex>",
"rootSig": "<base64url Ed25519 over JCS {v:1, date, rootHash}>",
"rootKid": "audit-root-2026",
"siblings": [{"side":"L"|"R","hash":"<hex>"}, ...],
"appProof": {
"app": "<issuing app>",
"rootHash": "<hex>",
"siblings": [...]
}
}A v: 2 proof walks the claim up its issuing app's sub-tree (appProof) and then the daily tree; a v: 1 proof has no appProof. rootSig is the signature the daily root received when it was built. The self-verify walkthrough (/docs/self-verify) checks both by hand.
Errors: 404 not_yet_built when the receipt was minted after the most recent root seal (00:05 UTC); the response includes the pending date. 404 not_verifiable when a root summary exists but no build-time signed root vouches for it — no proof is served (reason: root_missing | root_invalid | root_mismatch | inclusion_failed). 404 not_found when no claim exists.
GET /.well-known/dekimu-claim-keys.json
The canonical catalog of issuer public keys.
Path: https://verify.dekimu.com/.well-known/dekimu-claim-keys.json
Headers: cache-control: public, max-age=60, s-maxage=300, stale-while-revalidate=86400. CORS *.
Response 200 (shape):
{
"keys": [
{
"kid": "invoiceup-2026",
"issuer": "invoiceup",
"publicKey": "<base64url>",
"alg": "Ed25519",
"retiredAt": "2026-11-11T00:14:00.000Z"
},
{ "kid": "invoiceup-2026b", "issuer": "invoiceup", "publicKey": "<base64url>", "alg": "Ed25519" },
{ "kid": "miniterms-2026b", "issuer": "miniterms", ... }
]
}retiredAt (ISO-8601) appears only on a retired key; an active key has no such field. A retired key still verifies signatures, but its seed may be held by someone else, so a signature alone proves nothing about when the receipt was made. verify trusts a receipt under it only when it is on the reviewed list of receipts that key signed in daily roots sealed on or before that instant's UTC day, with the same signature, and its iat is not after retiredAt. A receipt checked by value carries no anchor, so it is never trusted under a retired key. Optional notBefore / notAfter (epoch ms) are informational.
A companion endpoint /.well-known/dekimu-audit-root-keys.json publishes the public keys used to sign daily roots — same shape, different scope.
GET /api/anchor/health
Liveness signal for the daily anchor cron. Auditors and dashboards poll this.
Path: https://verify.dekimu.com/api/anchor/health
Headers: CORS *.
Response 200 (shape):
{
"status": "fresh" | "stale" | "missing",
"expectedBuiltDate": "2026-05-11",
"lastBuiltDate": "2026-05-11",
"lastBuiltAt": 1715520300,
"lastBuiltCount": 142,
"hoursSinceLastBuild": 9.2,
"inboxToday": 5,
"inboxYesterday": 142
}Status semantics:
fresh— yesterday's root was built; normal state.stale— yesterday's root not built but a recent root exists; cron is behind, not dead.missing— no root in the last 5 days; escalate.
Embedding the verification badge
A SVG status badge for any receipt is served from https://verify.dekimu.com/badge/<id>.svg. 200×40 pixels, status-coloured pill, CORS *, cache-control: public, max-age=60. The badge defaults to a dark pill. Append ?theme=light for a light-background variant. Embed in any <img>:
<a href="https://verify.dekimu.com/v/<id>" target="_blank" rel="noopener">
<img
src="https://verify.dekimu.com/badge/<id>.svg"
alt="Verify on Dekimu"
width="200"
height="40"
/>
</a>For pages that adapt to the visitor's OS theme, use <picture> with a prefers-color-scheme source. Browsers pick the light variant when the visitor is in light mode and fall back to the dark default otherwise.
<a href="https://verify.dekimu.com/v/<id>" target="_blank" rel="noopener">
<picture>
<source
media="(prefers-color-scheme: light)"
srcset="https://verify.dekimu.com/badge/<id>.svg?theme=light"
/>
<img
src="https://verify.dekimu.com/badge/<id>.svg"
alt="Verify on Dekimu"
width="200"
height="40"
/>
</picture>
</a>Versioning + stability
- Response shapes are additive. New fields may appear; existing fields will not change type or be removed without a major version bump and a 90-day deprecation window announced on the anchor-keys catalog.
- Key IDs (
kid) rotate annually under normal operation, immediately on compromise. Retired keys remain in the catalog so historical receipts can still be verified — theretiredAtfield reflects the cutover. - The protocol itself is described by the published verifier discovery document at
/.well-known/dekimu-<family>-verifier.json (one per family).