{"openapi":"3.1.0","info":{"title":"CertNIC.org, INIC.SI & CheckAgent.id Trust Layer Reference API","version":"16.5.1","description":"Deterministic Trust-Check records (Schema v1.1), Version Manifest, 2-Tier Key Lifecycle Registry, Founding Agent Passports, Bidirectional Handshake Receipts, W3C DID Document, and signed HTTP 410/404 non-escalating boundaries.","contact":{"name":"CertNIC Operations","email":"info@certnic.org","url":"https://certnic.org/contact"}},"servers":[{"url":"https://certnic.org","description":"CertNIC Evidence Layer"},{"url":"https://inic.si","description":"INIC.SI Identity Registry Root"},{"url":"https://checkagent.id","description":"CheckAgent.id — A CertNIC Public Utility"}],"paths":{"/.well-known/version-manifest.json":{"get":{"summary":"Get signed deterministic version manifest","responses":{"200":{"description":"Signed VersionManifest JSON","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VersionManifest"}}}}}}},"/v/16.5.0/version-manifest.json":{"get":{"summary":"Get immutable v16.5.0 signed version manifest","responses":{"200":{"description":"Signed VersionManifest JSON","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VersionManifest"}}}}}}},"/v/16.5.1/version-manifest.json":{"get":{"summary":"Get immutable v16.5.1 signed version manifest","responses":{"200":{"description":"Signed VersionManifest JSON","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VersionManifest"}}}}}}},"/.well-known/key-lifecycle-registry.json":{"get":{"summary":"Get root-signed Ed25519 verification key registry","responses":{"200":{"description":"Signed KeyLifecycleRegistry JSON","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyLifecycleRegistry"}}}}}}},"/.well-known/did.json":{"get":{"summary":"Resolve W3C did:web document for inic.si, certnic.org, or checkagent.id","responses":{"200":{"description":"W3C DID Document JSON","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DidDocument"}}}}}}},"/.well-known/root-trust-anchor.txt":{"get":{"summary":"Out-of-band root trust anchor key card and DNSSEC TXT string","responses":{"200":{"description":"text/plain root trust anchor card"}}}},"/.well-known/security.txt":{"get":{"summary":"RFC 9116 security disclosure policy and contacts","responses":{"200":{"description":"text/plain security.txt"}}}},"/schemas/trust-check-record-1.1.schema.json":{"get":{"summary":"Get Draft 2020-12 JSON Schema v1.1 for INIC Trust-Check records","responses":{"200":{"description":"JSON Schema v1.1"}}}},"/specs/verify-conformance.py":{"get":{"summary":"Download standalone Python conformance, JCS, Decimal & Ed25519 signature verifier script","responses":{"200":{"description":"Python verifier script"}}}},"/api/v1/passports":{"get":{"summary":"List showcase and active Founding Agent Passports","responses":{"200":{"description":"Founding Agent Passport directory"}}},"post":{"summary":"Claim a new Founding Agent Passport with plain-English boundaries and one-time Kill Switch key","responses":{"201":{"description":"Signed Founding Agent Passport and one-time Kill Switch key"},"400":{"description":"Invalid handle or payload"},"409":{"description":"Handle already claimed"}}}},"/api/v1/passports/{handle}":{"get":{"summary":"Resolve signed Founding Agent Passport or signed HTTP 404 unregistered boundary","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string"},"example":"meridian-support-04"}],"responses":{"200":{"description":"Signed Founding Agent Passport"},"404":{"description":"Signed unregistered passport boundary"}}}},"/api/v1/passports/{handle}/revoke":{"post":{"summary":"Execute INIC.SI Emergency Kill Switch using one-time key to flip ACTIVE -> REVOKED","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Freshly signed REVOKED passport"},"403":{"description":"Invalid Kill Switch key"},"404":{"description":"Unregistered handle"},"409":{"description":"Protected demo fixture"}}}},"/passport/{handle}/did.json":{"get":{"summary":"Resolve per-agent W3C DID Core v1.0 document (sets deactivated: true when REVOKED)","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Per-agent W3C DID document"},"404":{"description":"Unallocated DID document"}}}},"/api/v1/handshake/evaluate":{"post":{"summary":"Evaluate deterministic Human->Agent or Agent->Seller bidirectional trust handshake with signed receipt","responses":{"200":{"description":"Signed Bidirectional Handshake Receipt"}}}},"/api/v1/trust-checks/{id}":{"get":{"summary":"Retrieve signed deterministic Trust-Check record, signed HTTP 410 tombstone, or signed HTTP 404 unallocated boundary","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"example":"TC-0002"}],"responses":{"200":{"description":"Active signed Trust-Check record","content":{"application/json":{"schema":{"$ref":"https://inic.si/schemas/trust-check-record-1.1.schema.json"}}}},"404":{"description":"Signed unallocated identifier boundary","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnallocatedBoundary"}}}},"410":{"description":"Signed Durable Evidence Tombstone","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TombstoneRecord"}}}}}}},"/api/v1/inspect-status/{id}":{"get":{"summary":"Advisory HTTP 200 status-inspector wrapper exposing canonical HTTP status (200/404/410) and response body","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"example":"TC-0000"}],"responses":{"200":{"description":"Advisory status inspector wrapper","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusInspectorWrapper"}}}}}}}},"components":{"schemas":{"KeyRegistryEntry":{"type":"object","required":["key_id","algorithm","key_type","controller","status","valid_from","valid_until","public_key_jwk","thumbprint_sha256"],"properties":{"key_id":{"type":"string"},"role":{"type":"string"},"algorithm":{"type":"string","const":"Ed25519"},"key_type":{"type":"string","const":"JWK"},"controller":{"type":"string"},"status":{"type":"string","enum":["ACTIVE","ROTATED","REVOKED","EXPIRED","SUSPENDED"]},"valid_from":{"type":"string","format":"date-time"},"valid_until":{"type":"string","format":"date-time"},"public_key_jwk":{"type":"object"},"thumbprint_sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"revocation_reason":{"type":["string","null"]}}},"RecordSignature":{"type":"object","required":["signature_id","format","purpose","created_at","payload_reference","payload_digest","canonicalization","algorithm","signature_value","key","verification"],"properties":{"signature_id":{"type":"string"},"format":{"type":"string","const":"RAW_DETACHED"},"purpose":{"type":"string","const":"RECORD_SEAL"},"created_at":{"type":"string","format":"date-time"},"expires_at":{"type":"string","format":"date-time"},"challenge":{"type":"string"},"domain":{"type":"string"},"payload_reference":{"type":"string"},"payload_digest":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"},"canonicalization":{"type":"string","const":"JCS_RFC8785"},"algorithm":{"type":"string","const":"Ed25519"},"signature_value":{"type":"string","minLength":86,"maxLength":86},"key":{"type":"object","required":["key_id","key_type","controller","status"]},"verification":{"type":"object","required":["status","verified_at","verifier","checks"]}}},"DetachedSignature":{"type":"object","required":["signature_id","format","encoding","algorithm","canonicalization","payload_reference","payload_digest","signature_value","key_id","signed_at"],"properties":{"signature_id":{"type":"string"},"format":{"type":"string","const":"RAW_DETACHED"},"encoding":{"type":"string","const":"base64url-nopad"},"algorithm":{"type":"string","const":"Ed25519"},"canonicalization":{"type":"string","const":"JCS_RFC8785"},"payload_reference":{"type":"string"},"payload_digest":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"},"signature_value":{"type":"string","minLength":86,"maxLength":86},"key_id":{"type":"string"},"signed_at":{"type":"string","format":"date-time"}}},"VersionManifest":{"type":"object","required":["service","release_version","sequence_number","issued_at","valid_until","scoring_engine","records_digest","active_key_id","manifest_signature"],"properties":{"service":{"type":"string"},"release_version":{"type":"string"},"sequence_number":{"type":"integer"},"issued_at":{"type":"string","format":"date-time"},"valid_until":{"type":"string","format":"date-time"},"active_key_id":{"type":"string"},"scoring_engine":{"type":"object","required":["version","rounding_rule","tie_breaking_mode","threshold_evaluation_input","dimension_weights","dimension_status_bands","overall_status_thresholds","verified_scores"]},"records_digest":{"type":"object","additionalProperties":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"}},"manifest_signature":{"$ref":"#/components/schemas/DetachedSignature"}}},"KeyLifecycleRegistry":{"type":"object","required":["registry_version","sequence_number","registry_as_of","issuer","root_authority_key_id","active_operational_key_id","keys","registry_signature"],"properties":{"registry_version":{"type":"string"},"sequence_number":{"type":"integer"},"registry_as_of":{"type":"string","format":"date-time"},"issuer":{"type":"string"},"root_authority_key_id":{"type":"string"},"active_operational_key_id":{"type":"string"},"keys":{"type":"array","items":{"$ref":"#/components/schemas/KeyRegistryEntry"}},"registry_signature":{"$ref":"#/components/schemas/DetachedSignature"}}},"DidDocument":{"type":"object","required":["@context","id","verificationMethod"],"properties":{"@context":{"type":"array","items":{"type":"string"}},"id":{"type":"string"},"verificationMethod":{"type":"array","items":{"type":"object"}}}},"TombstoneRecord":{"type":"object","required":["record_class","http_status","illustrative","record_id","status","tombstoned_at","reason_code","superseded_by","schema_version","supersession_semantics","boundary_signature"],"properties":{"record_class":{"type":"string","const":"TOMBSTONE_BOUNDARY"},"http_status":{"type":"integer","const":410},"illustrative":{"type":"boolean"},"record_id":{"type":"string"},"status":{"type":"string","const":"TOMBSTONED"},"tombstoned_at":{"type":"string","format":"date-time"},"reason_code":{"type":"string"},"reason":{"type":"string"},"superseded_by":{"type":"string"},"schema_version":{"type":"string"},"supersession_semantics":{"type":"string"},"boundary_signature":{"$ref":"#/components/schemas/DetachedSignature"}}},"UnallocatedBoundary":{"type":"object","required":["record_class","http_status","illustrative","record_id","status","schema_version","message","semantic_boundary","boundary_signature"],"properties":{"record_class":{"type":"string","const":"UNALLOCATED_BOUNDARY"},"http_status":{"type":"integer","const":404},"illustrative":{"type":"boolean"},"record_id":{"type":"string"},"status":{"type":"string","const":"UNALLOCATED"},"schema_version":{"type":"string"},"message":{"type":"string"},"semantic_boundary":{"type":"string"},"boundary_signature":{"$ref":"#/components/schemas/DetachedSignature"}}},"StatusInspectorWrapper":{"type":"object","required":["record_class","advisory_only","canonical_endpoint","canonical_http_status","response_body"],"properties":{"record_class":{"type":"string","const":"STATUS_INSPECTOR_WRAPPER"},"advisory_only":{"type":"boolean","const":true},"inspector_note":{"type":"string"},"canonical_endpoint":{"type":"string"},"canonical_http_status":{"type":"integer","enum":[200,404,410]},"canonical_status_text":{"type":"string"},"response_body":{"type":"object"}}}}}}