Basics
- Base URL
https://console.katieengine.com/api/v1/katie- Authentication
Authorization: Bearer <key>. Create keys in the console under API keys. Each key is a separate workspace./keysand/registryneed no key.- Format
- JSON in and out, except document upload (
multipart/form-data). Times are ISO 8601 in UTC. Successful responses carrydata(and oftenmeta); errors carry anerrormessage. - Idempotency
POST /policiesandPOST /verificationsrequire anIdempotency-Keyheader (up to 128 characters). The same key with the same body returns the original result with200andIdempotency-Replayed: true; the same key with a different body is refused with409.- Rate limits
- 1,000 requests an hour on institutional access, 10,000 on enterprise. Every response carries
X-RateLimit-Limit,X-RateLimit-RemainingandX-RateLimit-Reset; over the limit you get429withRetry-After. - Tracing
- Every response carries
X-Katie-Correlation-Id. Quote it when you contact us about a request. - Status codes
400invalid request (the message names the field),401missing or unknown key,403key without API access,404not found (including another key's records),409conflict,413file too large,415unsupported file,422a history question Katie cannot answer,503temporarily unavailable.
Policies
/policiesAdopt a built-in policy with {"builtIn": "katie-document-diligence-v2"} (or katie-document-diligence-permissive-v2, which also accepts a vendor's own declarations), or register your own with these fields:
| Field | Meaning |
|---|---|
policyKey | Stable name. Registering the same key with new fields creates a successor version. |
label | Human-readable name. |
materialAuthorityTier | 1 to 4. Evidence at this tier or better (lower) can decide a claim. |
maximumEvidenceAgeDays | Evidence obtained longer ago than this is stale. |
minimumIndependentRoots | How many distinct lineageFingerprint values must agree. |
acceptAuditedInstitutionalEvidence | Whether your own audited or executed records can corroborate. |
requireVerifiedExternalIdentity | Whether outside sources must be identified in Katie's source registry. |
/policiesThis key's policies.
Verifications
/verificationsOpen a claim and evaluate it. Body: policyId, claim and evidence (1 to 50 records), or documentEvidence (ids from a document's evidence) instead of or as well as evidence. Returns the case with its first assessment and receipt; 201 when created.
| Claim field | Meaning |
|---|---|
id | Your identifier for the claim. |
entity | id, name and type of what the claim is about. |
predicate | What is being claimed, such as vendor.iso27001.certificate_number. |
assertedValue, unit | The value you rely on, and its unit or null. |
validAt | When the value should hold. |
decisionContext | The decision this claim supports (up to 500 characters). |
| Evidence field | Meaning |
|---|---|
id | Unique within the case. |
source.origin | institutional (your own records), external (an outside source, by https URL) or katie (context only). |
source.sourceKey, publisher, url | Which source, who published it, where. |
source.authorityTier | 1 (most authoritative) to 4. |
source.attestation | Optional: audited, executed or declared. |
value, unit | What the source says. |
retrievedAt | When you obtained it (not in the future). |
validFrom, validTo | The period it is valid for; validTo may be null. |
lineageFingerprint | sha256: plus 64 hex characters naming the original source. Equal fingerprints count as one source. |
/verifications/{{id}}One case with its full assessment chain, newest first. Each assessment has a receipt and a signature.
/verifications?limit=&cursor=This key's cases, newest first, up to 100 a page.
History
/history?scope=tenant&subject=&predicate=&known_at=&valid_at=What the evidence Katie held at known_at supported at valid_at, for each of your claims about subject (and predicate, if given). valid_at defaults to known_at. Each record has belief (recomputed under the claim's pinned policy, so it never changes later), recorded (the assessment issued by then) and subsequentChanges. A claim not opened by known_at reads UNRESOLVED; a known_at in the future is refused.
Documents
Submit the documents behind your evidence: SOC 2 reports, ISO/IEC 27001 certificates, certificates of insurance, data processing agreements, subprocessor lists, security questionnaires, and cancellation or withdrawal notices. Katie keeps the exact bytes, renders the text, and reads statements from it. A model proposes the statements and deterministic rules decide which are kept; every kept statement is anchored to its place on the page.
Extraction is not yet switched on at console.katieengine.com. Until it is, documents are kept and hashed but no statements are read from them.
/documentsmultipart/form-data: file (PDF with a text layer, plain text or CSV, up to 20 MB), documentType (such as soc2_report or certificate_of_insurance), issuer, subjectId (the entity, as your claims name it), and optionally synthetic, submittedBy, and relation (cancels, amends or withdraws) with relatedDocumentId. The same bytes again return the same document.
/documents?subjectId=This key's documents, newest first.
/documents/{{id}}The document, its latest extraction with every statement (kept, context or dropped, with the rule and reason), its lifecycle, what superseded it and the claims citing it.
/documents/{{id}}/evidenceThe document's kept statements as evidence items. Cite them by id in documentEvidence when opening a claim.
/documents/{{id}}/extractRun extraction again for a retained document. Each run is kept.
/documents/{{id}}/eraseErase a document by destroying its key. Body: {{"reason": "..."}}. Its bytes, text and quoted values become unreadable; its hashes, history and receipts remain, and claims that rested on it are reassessed. This cannot be undone.
Events and webhooks
/document-events?after=&types=&limit=Events in order after a cursor: claim.status_changed, document.expired, document.superseded, document.erased.
To have events delivered, create a subscription with POST /api/v1/subscriptions. Deliveries are signed, sent at least once, and carry the cursor, so a missed window can be replayed from the events endpoint.
Keys, registry and verifying receipts
/keysKatie's receipt-signing public keys (no API key needed). Also at katieengine.com/.well-known/katie-keys.json.
/registryThe policy, claim pack, extractor, validator and rule versions this build runs, with their content hashes. The full append-only registry is at katieengine.com/.well-known/katie-registry.json.
Check a saved case with katie-verify.mjs (Node 20 or later, no dependencies):
node katie-verify.mjs case.json # uses the published key and registry
node katie-verify.mjs case.json --docs ./documents # also match cited documents to your files
node katie-verify.mjs case.json --keys keys.json --registry registry.json # saved copiesIt checks each receipt's signature and content hash (naming any edited field), that the chain of receipts has no gaps or forks, each policy against the registry, and with --docs which cited documents your files match. A signature shows what Katie's key vouches for; it does not prove when the receipt was issued.