You will need curl, Node 20 or later (for the verifier), and an account with API access. The responses below came from running these exact requests against Katie; the identifiers Katie generates will differ for you.
1. Create an API key
Sign in to the Katie Console and open API keys. Name the key and create it. Katie shows it once and keeps only a hash, so copy it then.
Each key is its own workspace: the claims and receipts you make with it belong to it, and a new key starts empty.
export KATIE_API_KEY="aix_..."
export KATIE="https://console.katieengine.com/api/v1/katie" Send the key on every request as Authorization: Bearer $KATIE_API_KEY.
2. Adopt a policy
A policy is the standard evidence must meet. Adopt Katie's built-in diligence policy. Every write takes an Idempotency-Key: sending the same request with the same key again returns the original result instead of creating a second one.
curl -s -X POST "$KATIE/policies" \
-H "Authorization: Bearer $KATIE_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: quickstart-policy-1" \
-d '{"builtIn": "katie-document-diligence-v2"}'{
"data": {
"kind": "verification_policy",
"id": "policy:cmxcaknmg0002o5woc82d3clh",
"version": "katie-document-diligence-v2",
"materialAuthorityTier": 3,
"maximumEvidenceAgeDays": 400,
"minimumIndependentRoots": 1,
"acceptAuditedInstitutionalEvidence": true,
"expiredEvidence": "stale",
...
},
"meta": { "created": true }
}Keep the policy id for the next step.
3. Open a claim
Say what you need to be true and give Katie the evidence. Here your internal audit team recorded Acme's ISO/IEC 27001 certificate number, and the certificate is valid from March 2026 to February 2027. Save this as claim.json, with your policy id:
{
"policyId": "policy:...",
"claim": {
"id": "acme-iso27001",
"entity": { "id": "vendor:acme", "name": "Acme Analytics", "type": "vendor" },
"predicate": "vendor.iso27001.certificate_number",
"assertedValue": "IS 774120",
"unit": null,
"validAt": "2026-12-06T00:00:00Z",
"decisionContext": "Annual security review before contract renewal"
},
"evidence": [
{
"id": "audit-2026-acme-iso",
"source": {
"origin": "institutional",
"sourceKey": "internal-audit",
"publisher": "Internal audit",
"url": "https://intranet.example.com/audits/2026/acme",
"authorityTier": 2,
"attestation": "audited"
},
"value": "IS 774120",
"unit": null,
"retrievedAt": "2026-11-20T00:00:00Z",
"validFrom": "2026-03-01T00:00:00Z",
"validTo": "2027-02-28T00:00:00Z",
"lineageFingerprint": "sha256:5818130b287f73cb142bc2275f7b9d835acbbc89c6eaacd7dd7f0d8ccfaf5ede"
}
]
}The evidence comes from your own organization (origin: "institutional") and is marked audited, which this policy accepts. The lineageFingerprint is any SHA-256 that names the evidence's original source; here it is the hash of acme-iso-audit-2026.
curl -s -X POST "$KATIE/verifications" \
-H "Authorization: Bearer $KATIE_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: acme-iso27001-1" \
-d @claim.json{
"data": {
"kind": "verification_case",
"id": "verification:cmxcal4ee0005o5wo7me3rken",
"currentAssessment": {
"status": "VERIFIED",
"receipt": {
"id": "kfv_833053b5d825cde005c8b593018fc5b0",
"status": "VERIFIED",
"reason": "The asserted value matches current, policy-eligible controlling evidence.",
"determinedValue": "IS 774120",
"independentRoots": ["sha256:5818130b..."],
"contentHash": "sha256:833053b5...",
...
}
},
...
},
"meta": { "created": true }
}4. Fetch the case and its signed receipt
Reading the case returns its whole assessment chain, newest first. Each assessment carries a signature over a statement that binds the receipt's content hash, the case, the claim and the receipt it supersedes.
curl -s "$KATIE/verifications/verification:cmxcal4ee0005o5wo7me3rken" \
-H "Authorization: Bearer $KATIE_API_KEY" > case.json5. Verify the receipt yourself
katie-verify is a single file with no dependencies. It fetches Katie's published key and version registry and checks the receipt without trusting the API that served it.
curl -sO https://katieengine.com/docs/katie-verify.mjs
node katie-verify.mjs case.jsonok signature assessment:cmxcal4ee0006o5woylk8ug5w: signature verifies (key katie-ed25519-cc37450bdd7ad212).
ok content assessment:cmxcal4ee0006o5woylk8ug5w: content hash matches (sha256:833053b5...).
ok chain Chain of 1 receipt has no gaps or forks.
ok registry Policy katie-document-diligence-v2 matches the published registry.
Verified.Change any field in case.json and run it again: the verifier names the field that no longer matches.
6. Ask about a different day
History takes two times: valid_at, the day you are asking about, and known_at, the moment whose knowledge to use (now, or any earlier moment). Ask about today, then about March 2027, after the certificate ends:
NOW=$(date -u +%Y-%m-%dT%H:%M:%SZ)
curl -s "$KATIE/history?scope=tenant&subject=vendor:acme&predicate=vendor.iso27001.certificate_number&known_at=$NOW&valid_at=2027-03-15T00:00:00Z" \
-H "Authorization: Bearer $KATIE_API_KEY"{
"data": [
{
"kind": "claim_history",
"query": { "knownAt": "2026-12-06T20:26:57Z", "validAt": "2027-03-15T00:00:00Z" },
"recorded": { "status": "VERIFIED", "receiptId": "kfv_833053b5..." },
"belief": {
"status": "STALE",
"reason": "The eligible evidence's validity period has ended; a renewed document is needed.",
"policyVersion": "katie-document-diligence-v2"
},
"evidence": [{ "id": "audit-2026-acme-iso", "role": "stale", "validTo": "2027-02-28T00:00:00.000Z" }],
"subsequentChanges": []
}
]
}belief is what the evidence Katie held at known_at supports at valid_at. recorded is the assessment Katie had actually issued by then. With valid_at set to today the belief is VERIFIED; in March 2027 the same evidence has run out, so it is STALE. A known_at in the future is refused: Katie will not report what it has not learned yet.
7. See a disagreement
Open a second claim that asserts a different number, say a typo of IS 774121, with the same evidence (and a new claim id and Idempotency-Key). Katie does not average or pick a side:
"status": "CONFLICTED",
"reason": "The institution's asserted value conflicts with the controlling evidence."Reusing an Idempotency-Key with a different body is refused, so a retried request can never quietly become a different claim.
Next
- Documents: submit certificates, SOC 2 reports and the like, and cite the statements Katie keeps from them as evidence. Extraction from uploaded documents is not yet switched on at console.katieengine.com; until it is, documents are kept and hashed but no statements are read from them.
- Events and webhooks: learn when a claim changes state, for example when a certificate expires.
- Policies: register your own standard instead of the built-in one.