{"openapi":"3.1.0","info":{"title":"Facededup Liveness","version":"0.1.0"},"paths":{"/v1/consent":{"post":{"summary":"Create Consent","operationId":"create_consent_v1_consent_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__routes__ConsentIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/request":{"post":{"summary":"Open Request","operationId":"open_request_v1_request_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/assisted":{"post":{"summary":"Assisted Verification","description":"Route a user who can't complete self-service to agent-assisted review.\nCreates a 'referred' decision + a reference code; no biometric is forced.","operationId":"assisted_verification_v1_assisted_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssistedIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/challenge":{"post":{"summary":"Issue Challenge","operationId":"issue_challenge_v1_challenge_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChallengeIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/license/issue":{"post":{"summary":"License Issue","description":"Mint an ES256 license cert for a tenant (admin-only). The SDK embeds the matching master\npublic key and verifies the cert offline; this server re-validates it at /verify.","operationId":"license_issue_v1_license_issue_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LicenseIssueIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/license/refresh":{"post":{"summary":"License Refresh","description":"Re-issue a cert with a fresh expiry (admin-only). Accepts a still-AUTHENTIC cert (signature\nvalid; expiry ignored) and mints a new one with the same tenant/key/bundles.","operationId":"license_refresh_v1_license_refresh_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LicenseRefreshIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/license/revoke":{"post":{"summary":"License Revoke","description":"Revoke a license by key_id (admin-only) — durable via the revocation table. After this,\n/verify rejects the cert at the deferred submit.","operationId":"license_revoke_v1_license_revoke_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LicenseRevokeIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/metrics":{"get":{"summary":"Liveness Metrics","description":"Read-only aggregate of recent liveness/verify decisions for the dashboard.\nRequires a valid operator session (same Bearer token as the /console API) — the\ndemo_gate is off in production, so this endpoint authenticates on its own. Scoped\nto the operator's tenant (admin '*' sees all). No PII, no images — outcome/score/\nassurance/engine + the TrueDepth depth-gate signals only.","operationId":"liveness_metrics_v1_metrics_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":500,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/license/public-key":{"get":{"summary":"License Public Key","description":"The master public key (SPKI DER base64) embedded in the SDKs — for transparency/audit.","operationId":"license_public_key_v1_license_public_key_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/sdk/public-key":{"get":{"summary":"Sdk Public Key","description":"The CURRENT backend public key the SDK encrypts its result to. Rotation-aware (`keyId`).\nThe SDK fetches + caches this; it never sees a private key. 503 until the backend is\nprovisioned with `SDK_ENC_PRIVATE_KEY_B64`.","operationId":"sdk_public_key_v1_sdk_public_key_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/sdk/challenge-config":{"get":{"summary":"Sdk Challenge Config","description":"The per-tenant challenge composition the SDK builds its flow from — action types, count,\nactive-illumination on/off, randomized vs fixed order. Dashboard-configurable, so integrators\nchange the challenge WITHOUT an app release. Tenant = authoritative license tenant, else the\n`tenant` query param, else default. Read-only + non-sensitive; cached briefly by the SDK.","operationId":"sdk_challenge_config_v1_sdk_challenge_config_get","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"type":"string","default":"","title":"Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/sdk/session":{"post":{"summary":"Sdk Session","description":"Mint a per-session ephemeral public key. The SDK encrypts to THIS key; the matching private\nkey lives only here (TTL'd) and is used once at decrypt. `sessionKeys:true` in the SDK.","operationId":"sdk_session_v1_sdk_session_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SdkSessionIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/sdk/decrypt":{"post":{"summary":"Sdk Decrypt","description":"Decrypt + integrity-validate a v2 envelope OR opaque token (dashboard / back-office,\nadmin-gated). Body is the envelope dict or the opaque base64 string. Rejects modified payloads,\nreplays, expired sessions, bad tags and unknown key ids.","operationId":"sdk_decrypt_v1_sdk_decrypt_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/verify":{"post":{"summary":"Verify","operationId":"verify_v1_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/offline/submit":{"post":{"summary":"Offline Submit","operationId":"offline_submit_v1_offline_submit_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OfflineSubmitIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/webhook":{"get":{"summary":"Get Webhook Config","description":"Current webhook config for the calling tenant (secret never returned).","operationId":"get_webhook_config_v1_webhook_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Set Webhook Config","description":"Set/replace the tenant's webhook URL. Returns the signing secret (shown on\ncreate + rotate only). Verdicts are POSTed here for offline/deferred submits.","operationId":"set_webhook_config_v1_webhook_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookConfigIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Webhook Config","description":"Disable the tenant's stored webhook (env-configured webhooks are unaffected).","operationId":"delete_webhook_config_v1_webhook_delete","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/identity/verify":{"post":{"summary":"Identity Verify","description":"Face + NIN/BVN: 1:1 match the live selfie against the authority photo and\nreturn the subject's profile (selfie + authority photo + details).","operationId":"identity_verify_v1_identity_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdentityVerifyIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/identity/search":{"post":{"summary":"Identity Search","description":"Face-only (1:N): resolve the live selfie to an identity and return the\nprofile (selfie + authority photo + details).","operationId":"identity_search_v1_identity_search_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdentitySearchIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/document/mrz":{"post":{"summary":"Document Mrz","description":"Parse + validate an ICAO 9303 MRZ (TD1/TD2/TD3): identity fields + the\n7-3-1 check digits + expiry.","operationId":"document_mrz_v1_document_mrz_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentMrzIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/document/verify":{"post":{"summary":"Document Verify","description":"Document + face: validate the MRZ and 1:1 match the live selfie against the\ndocument's face (bio-page crop, or the NFC chip's DG2 photo). Returns the\ndocument identity + the face-match decision (NCC band: >=85 / 70-84 / <70).","operationId":"document_verify_v1_document_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentVerifyIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/address/verify":{"post":{"summary":"Address Verify","description":"Geocode a postal address and confirm the captured device GPS is within\nrange of it. Decision band by distance: match (<=match radius) · refer · no_match.","operationId":"address_verify_v1_address_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddressVerifyIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/address/suggest":{"post":{"summary":"Address Suggest","description":"Smart auto-suggest from GPS: reverse-geocode the address + return nearby\nlandmark chips so the user confirms instead of typing. Graceful empty when no\nPlaces key is configured.","operationId":"address_suggest_v1_address_suggest_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddressSuggestIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/address/autocomplete":{"post":{"summary":"Address Autocomplete Ep","description":"Type-ahead address predictions (Places Autocomplete), Nigeria-biased.","operationId":"address_autocomplete_ep_v1_address_autocomplete_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutocompleteIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/address/place":{"get":{"summary":"Address Place","description":"Resolve a prediction to {formatted, lat, lon} for the map + reconcile.","operationId":"address_place_v1_address_place_get","parameters":[{"name":"place_id","in":"query","required":true,"schema":{"type":"string","title":"Place Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/address/staticmap":{"get":{"summary":"Address Staticmap","description":"Verified-location map preview (server-side proxy; key never reaches the client).","operationId":"address_staticmap_v1_address_staticmap_get","parameters":[{"name":"lat","in":"query","required":true,"schema":{"type":"number","title":"Lat"}},{"name":"lon","in":"query","required":true,"schema":{"type":"number","title":"Lon"}},{"name":"zoom","in":"query","required":false,"schema":{"type":"integer","default":16,"title":"Zoom"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/address/reconcile":{"post":{"summary":"Address Reconcile","description":"Reconcile a DECLARED address (+ landmark + building photo + on-site GPS)\nagainst signals DERIVED independently from the GPS (reverse-geocode + nearby\nlandmark). Returns per-signal scores + a decision: verified / refer / reject.","operationId":"address_reconcile_v1_address_reconcile_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddressReconcileIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/clientlog":{"post":{"summary":"Client Log","description":"Open, write-only client-diagnostics beacon (e.g. iOS WebView MediaPipe load\nfailures). No PII / no images — error strings + UA + stage only. -> CloudWatch\n(grep `CLIENTLOG`) AND a recent-ring buffer surfaced in the console Activity\nLog. Gate-exempt so it captures failures before/around auth.","operationId":"client_log_v1_clientlog_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientLogIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/face/dedup":{"post":{"summary":"Face Dedup","description":"1:N dedup check WITHOUT enrolling — does this live face already exist in the\ntenant's gallery? Returns duplicate / refer / no_match + the best match.","operationId":"face_dedup_v1_face_dedup_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FaceDedupIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/face/enroll":{"post":{"summary":"Face Enroll","description":"Register a verified live face and issue an enrolment ID. Stores the face\ntemplate against the issued ID so it can later be authenticated (Face only /\nFace + ID). When DEDUP_ENABLED, runs a 1:N dedup check first.","operationId":"face_enroll_v1_face_enroll_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FaceEnrollIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/face/enroll/review":{"post":{"summary":"Face Enroll Review","description":"Escalation path: after repeated enrol failures the client switches to\nface + number and submits the attempt for HUMAN review. Persists the face\nframes + spoken-number audio (encrypted) and opens a pending-review case the\nconsole reviewer approves by eyeballing the face and listening to the number\nread aloud. Approval mints the enrolment (see /console/case/{id}/review).","operationId":"face_enroll_review_v1_face_enroll_review_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FaceEnrollReviewIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/face/enroll/review/{review_id}":{"get":{"summary":"Face Enroll Review Status","description":"Applicant poll while the 'Review in progress' screen waits:\npending | approved (carries enrollment_id) | declined.","operationId":"face_enroll_review_status_v1_face_enroll_review__review_id__get","parameters":[{"name":"review_id","in":"path","required":true,"schema":{"type":"string","title":"Review Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/face/authenticate":{"post":{"summary":"Face Authenticate","description":"Authenticate a LIVE face against a prior enrolment (1:1). Pair the enrolment\nID issued at /face/enroll with a fresh live selfie -> match / no-match. Liveness\nis proven by the /verify step the client runs before calling this.","operationId":"face_authenticate_v1_face_authenticate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FaceAuthIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/security":{"get":{"summary":"Get Security State","operationId":"get_security_state_v1_security_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Set Security State","description":"Toggle the hard defenses. Platform admin only; every change is audited.","operationId":"set_security_state_v1_security_put","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SecurityIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/console/login":{"post":{"summary":"Console Login","operationId":"console_login_v1_console_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/console/logout":{"post":{"summary":"Console Logout","operationId":"console_logout_v1_console_logout_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/console/sdk-decrypt":{"post":{"summary":"Console Sdk Decrypt","description":"Operator tool: decrypt + integrity-validate a v2 SDK envelope OR opaque token from the\ndashboard (Bearer-authed). Body is the envelope dict or the opaque base64 string. Rejects\ntampered / replayed / expired / unknown-key payloads.","operationId":"console_sdk_decrypt_v1_console_sdk_decrypt_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/console/decrypt-kit":{"get":{"summary":"Console Decrypt Kit","description":"Serve the offline decryption tool + instructions + the current PUBLIC key. The PRIVATE key is\nnever served — it stays in your secrets store (SSM).","operationId":"console_decrypt_kit_v1_console_decrypt_kit_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/console/cases":{"get":{"summary":"Console Cases","operationId":"console_cases_v1_console_cases_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"env","in":"query","required":false,"schema":{"type":"string","default":"","title":"Env"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/console/summary":{"get":{"summary":"Console Summary","description":"Just the dashboard figures — no case rows. The console polls this every\nfew seconds to keep the KPIs/charts live cheaply, and only re-pulls the full\nlist when the total actually changes.","operationId":"console_summary_v1_console_summary_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/console/liveness-config":{"get":{"summary":"Console Liveness Config Get","operationId":"console_liveness_config_get_v1_console_liveness_config_get","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"type":"string","default":"","title":"Tenant"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Console Liveness Config Put","operationId":"console_liveness_config_put_v1_console_liveness_config_put","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LivenessConfigIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/console/liveness-config/generate-keypair":{"post":{"summary":"Console Generate Keypair","description":"Platform-managed key custody (the operator generates + holds the tenant's\nkeypair). The PRIVATE key is returned ONCE here and stored SEALED at rest;\nre-view it later via the reveal endpoint. WARNING: platform custody means the\nplatform CAN decrypt this tenant's results — surfaced in the UI policy note.","operationId":"console_generate_keypair_v1_console_liveness_config_generate_keypair_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeygenIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/console/liveness-config/private-key":{"get":{"summary":"Console Reveal Private Key","description":"Reveal the platform-stored private key for hand-off to the tenant. Audited.\nOnly available when the keypair was platform-generated.","operationId":"console_reveal_private_key_v1_console_liveness_config_private_key_get","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"type":"string","default":"","title":"Tenant"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/console/case/{decision_id}":{"get":{"summary":"Console Case","operationId":"console_case_v1_console_case__decision_id__get","parameters":[{"name":"decision_id","in":"path","required":true,"schema":{"type":"string","title":"Decision Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/console/case/{decision_id}/note":{"post":{"summary":"Console Add Note","operationId":"console_add_note_v1_console_case__decision_id__note_post","parameters":[{"name":"decision_id","in":"path","required":true,"schema":{"type":"string","title":"Decision Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoteIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/console/dataset":{"get":{"summary":"Console Dataset","description":"Export reviewed decisions as a labelled training/eval manifest.\n\nLabel = the (possibly human-corrected) outcome; `reviewed` flags rows that\ncarry a human ground-truth label. Tenant-scoped + audited. Pair with the\nper-case /media endpoint to pull the encrypted frames/video for training.","operationId":"console_dataset_v1_console_dataset_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/console/case/{decision_id}/media":{"get":{"summary":"Console Media","description":"Reviewer-only, audited access to the encrypted attempt frames.","operationId":"console_media_v1_console_case__decision_id__media_get","parameters":[{"name":"decision_id","in":"path","required":true,"schema":{"type":"string","title":"Decision Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/console/case/{decision_id}/thumb":{"get":{"summary":"Console Thumb","description":"Tiny face thumbnail (first captured frame, downscaled) for the case list —\nlets reviewers eyeball a capture before opening it. Reviewer-only; successful\nthumbs are cached in memory so the list stays snappy. No media -> 404 (row\nkeeps its placeholder). Misses are NOT cached, so a thumb still appears if the\nencrypted media lands later (e.g. via S3 on another instance).","operationId":"console_thumb_v1_console_case__decision_id__thumb_get","parameters":[{"name":"decision_id","in":"path","required":true,"schema":{"type":"string","title":"Decision Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/console/case/{decision_id}/review":{"post":{"summary":"Console Review","operationId":"console_review_v1_console_case__decision_id__review_post","parameters":[{"name":"decision_id","in":"path","required":true,"schema":{"type":"string","title":"Decision Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleReviewIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/console/analytics":{"get":{"summary":"Console Analytics","description":"Verification analytics over the newest CONSOLE_RECENT_LIMIT visible\ndecisions (GSI query, newest-first — the window the week-over-week deltas and\n14-day trend actually need), with latency, device/method mix and\nauto-generated plain-English insights for the Overview.","operationId":"console_analytics_v1_console_analytics_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/console/audit":{"get":{"summary":"Console Audit","description":"Tamper-evident audit trail (newest first). Admin sees all; a tenant\noperator sees entries referencing their tenant. Includes the chain-integrity\nverdict so the console can show a 'verified' badge.","operationId":"console_audit_v1_console_audit_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":300,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/license/adoption":{"get":{"summary":"License Adoption","description":"License-key adoption over the newest `limit` decisions — how much core-flow\ntraffic already sends a valid X-License-Key, by SDK build / app / platform — so an\noperator can tell when LICENSE_ENFORCEMENT can move monitor → enforce. Counts only.\n\nOnly LIVENESS decisions the operator may see are counted (`window.count`); the\nother record kinds sharing the store are reported as `non_liveness_skipped`.\nEach counted decision lands in exactly one bucket:\n  with_valid_key   — EVERY recorded hop (request/challenge/verify, …) had a valid key\n  partial_key      — some hops had a valid key, others did not (would fail enforce)\n  with_invalid_key — a credential was sent but never resolved\n  without_key      — no credential on any hop\n  lookup_error     — a hop could not be verified (license store unreachable)\n  unknown          — predates license recording","operationId":"license_adoption_v1_license_adoption_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":2000,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/console/screening":{"post":{"summary":"Console Screening","description":"Operator-facing AML name screen (sanctions / PEP / adverse media).","operationId":"console_screening_v1_console_screening_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleScreenIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/console/seed":{"post":{"summary":"Console Seed","description":"Dev only: populate analyst-style sample cases (hostile/IP/geo/latency).\n\nAdmin-gated: this mutates the shared decision store, so it must not be\nreachable by an unauthenticated (gate-only) caller or a non-admin operator.","operationId":"console_seed_v1_console_seed_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/console/purge":{"post":{"summary":"Console Purge","description":"Admin only: delete sample data (the \"Sample data\" button) and sandbox records.\n\nReal verifications are never deleted here, whatever their `env` tag says: NCC Business\nRules 2026 (Appendix 8) require every verification attempt to be kept for at least\n2 years. See disposable_kind() for exactly what qualifies.\n\nWorks in time-boxed batches: when `more` is true, call again.","operationId":"console_purge_v1_console_purge_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/compliance/report":{"post":{"summary":"Compliance Report","description":"Operator files an NCC §8.3 event (outage 24h / new_vector 48h / complaint 72h).\nDelivered to the NCC webhook (if configured) + recorded in the audit chain.","operationId":"compliance_report_v1_compliance_report_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComplianceReportIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/compliance/monthly-report":{"get":{"summary":"Compliance Monthly","description":"NCC §8.3 monthly compliance summary — volumes, outcomes, attack vectors,\nPAD operating point, AIGCD incidents (scoped to the operator's tenant).","operationId":"compliance_monthly_v1_compliance_monthly_report_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/subject/{subject_id}/data":{"get":{"summary":"Subject Access","description":"NDPR §6 ACCESS — the records held for a subject (respond within 30 days).","operationId":"subject_access_v1_subject__subject_id__data_get","parameters":[{"name":"subject_id","in":"path","required":true,"schema":{"type":"string","title":"Subject Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/subject/{subject_id}/rectify":{"post":{"summary":"Subject Rectify","description":"NDPR §6 RECTIFICATION — record a correction against the subject's records.","operationId":"subject_rectify_v1_subject__subject_id__rectify_post","parameters":[{"name":"subject_id","in":"path","required":true,"schema":{"type":"string","title":"Subject Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RectifyIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/subject/{subject_id}/export":{"get":{"summary":"Subject Export","description":"NDPR §6 PORTABILITY — export the subject's data (ISO/IEC 19794-5-aligned:\nface image + quality metrics + attributes per record).","operationId":"subject_export_v1_subject__subject_id__export_get","parameters":[{"name":"subject_id","in":"path","required":true,"schema":{"type":"string","title":"Subject Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/result/public-key":{"get":{"summary":"Result Public Key","operationId":"result_public_key_v1_result_public_key_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/result/redeem":{"post":{"summary":"Redeem","operationId":"redeem_v1_result_redeem_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RedeemIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/consent/withdraw":{"post":{"summary":"Withdraw","operationId":"withdraw_v1_consent_withdraw_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WithdrawIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/decision/{decision_id}":{"get":{"summary":"Get Decision","operationId":"get_decision_v1_decision__decision_id__get","parameters":[{"name":"decision_id","in":"path","required":true,"schema":{"type":"string","title":"Decision Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/decision/{decision_id}/review":{"post":{"summary":"Review Decision","operationId":"review_decision_v1_decision__decision_id__review_post","parameters":[{"name":"decision_id","in":"path","required":true,"schema":{"type":"string","title":"Decision Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/tenants/register":{"post":{"summary":"Tenant Register","description":"PUBLIC: a company submits a KYB application → creates a 'submitted' tenant.","operationId":"tenant_register_v1_tenants_register_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantRegisterIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/console/onboard-tenant":{"post":{"summary":"Console Onboard Tenant","description":"Turnkey onboarding — one call, everything a customer needs.\n\nBundles what would otherwise be four separate calls:\n\n  1. mint a fresh ``fdk_…`` runtime license key\n  2. create the compliance-dashboard record (TEN-XXXX), state=``approved``\n  3. issue sandbox + production API keys (``sk_test_…`` / ``sk_live_…``)\n  4. generate a response-encryption keypair — the private key is returned\n     ONCE in this response; store it in the customer's vault immediately.\n\nReturns an ``activation_command`` — the ``aws lambda`` one-liner that\nmerges the new license key into the Lambda's ``LICENSE_KEYS`` env\n(runtime source of truth). Nothing here writes to the Lambda env directly,\nso no additional IAM privilege is needed on the Lambda role. Paste the\ncommand into an operator terminal (or a GH Actions job) to activate.\n\nSuper-admin only. Every step is audited with the operator's identity.","operationId":"console_onboard_tenant_v1_console_onboard_tenant_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardTenantIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/metrics":{"get":{"summary":"Admin Metrics","operationId":"admin_metrics_v1_admin_metrics_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/tenants":{"get":{"summary":"Admin Tenants","operationId":"admin_tenants_v1_admin_tenants_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","default":"","title":"Status"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/tenants/{tenant_id}":{"get":{"summary":"Admin Tenant","operationId":"admin_tenant_v1_admin_tenants__tenant_id__get","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/tenants/{tenant_id}/director-evidence":{"get":{"summary":"Admin Director Evidence","description":"Each director's verification as the reviewer needs it: status, liveness, ID and\nface match, name match, screening, timeline and plain-language flags. No images.","operationId":"admin_director_evidence_v1_admin_tenants__tenant_id__director_evidence_get","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/tenants/{tenant_id}/directors/{key}/selfie":{"get":{"summary":"Admin Director Selfie","description":"The liveness selfie for one director, while it is still held. Every view is audited.","operationId":"admin_director_selfie_v1_admin_tenants__tenant_id__directors__key__selfie_get","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/tenants/{tenant_id}/transition":{"post":{"summary":"Admin Tenant Transition","description":"Drive the KYB lifecycle. Validates the state machine server-side.","operationId":"admin_tenant_transition_v1_admin_tenants__tenant_id__transition_post","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantActionIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/tenants/{tenant_id}/provision":{"post":{"summary":"Admin Tenant Provision","operationId":"admin_tenant_provision_v1_admin_tenants__tenant_id__provision_post","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/tenant/me":{"get":{"summary":"Tenant Me","description":"Tenant-facing: who am I (resolved from the API key).","operationId":"tenant_me_v1_tenant_me_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/tenant/usage":{"get":{"summary":"Tenant Usage","operationId":"tenant_usage_v1_tenant_usage_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/tenant/face/summary":{"get":{"summary":"Tenant Face Summary","description":"Pass-rate / volume / score buckets / 14-day trend for the caller's tenant.","operationId":"tenant_face_summary_v1_tenant_face_summary_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/tenant/face/jobs":{"get":{"summary":"Tenant Face Jobs","description":"The caller's face-verification jobs, newest-first. `env` = demo|sandbox|production.","operationId":"tenant_face_jobs_v1_tenant_face_jobs_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"env","in":"query","required":false,"schema":{"type":"string","default":"","title":"Env"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":500,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/tenant/face/jobs/{decision_id}":{"get":{"summary":"Tenant Face Job","operationId":"tenant_face_job_v1_tenant_face_jobs__decision_id__get","parameters":[{"name":"decision_id","in":"path","required":true,"schema":{"type":"string","title":"Decision Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/tenant/face/jobs/{decision_id}/media":{"get":{"summary":"Tenant Face Media","operationId":"tenant_face_media_v1_tenant_face_jobs__decision_id__media_get","parameters":[{"name":"decision_id","in":"path","required":true,"schema":{"type":"string","title":"Decision Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/tenant/face/jobs/{decision_id}/thumb":{"get":{"summary":"Tenant Face Thumb","operationId":"tenant_face_thumb_v1_tenant_face_jobs__decision_id__thumb_get","parameters":[{"name":"decision_id","in":"path","required":true,"schema":{"type":"string","title":"Decision Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/tenant/face/config":{"get":{"summary":"Tenant Face Config","description":"Read-only view of the caller's liveness policy + encryption key status.","operationId":"tenant_face_config_v1_tenant_face_config_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/tenant/face/keypair":{"post":{"summary":"Tenant Face Keypair","description":"Self-serve: generate THIS tenant's response-encryption keypair. Private key\nis returned ONCE; the public key is bound to the tenant and encryption enabled.","operationId":"tenant_face_keypair_v1_tenant_face_keypair_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantKeygenIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/face/tenants":{"get":{"summary":"Admin Face Tenants","description":"Distinct tenant slugs seen in face records (+ any licensed slug), with counts.","operationId":"admin_face_tenants_v1_admin_face_tenants_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/admin/face/summary":{"get":{"summary":"Admin Face Summary","operationId":"admin_face_summary_v1_admin_face_summary_get","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"type":"string","default":"","title":"Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/face/jobs":{"get":{"summary":"Admin Face Jobs","operationId":"admin_face_jobs_v1_admin_face_jobs_get","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"type":"string","default":"","title":"Tenant"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"env","in":"query","required":false,"schema":{"type":"string","default":"","title":"Env"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":500,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/face/jobs/{decision_id}":{"get":{"summary":"Admin Face Job","operationId":"admin_face_job_v1_admin_face_jobs__decision_id__get","parameters":[{"name":"decision_id","in":"path","required":true,"schema":{"type":"string","title":"Decision Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/face/jobs/{decision_id}/media":{"get":{"summary":"Admin Face Media","operationId":"admin_face_media_v1_admin_face_jobs__decision_id__media_get","parameters":[{"name":"decision_id","in":"path","required":true,"schema":{"type":"string","title":"Decision Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/face/jobs/{decision_id}/thumb":{"get":{"summary":"Admin Face Thumb","operationId":"admin_face_thumb_v1_admin_face_jobs__decision_id__thumb_get","parameters":[{"name":"decision_id","in":"path","required":true,"schema":{"type":"string","title":"Decision Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/face/policy":{"get":{"summary":"Admin Face Policy Get","description":"Same payload as /console/liveness-config, keyed by slug, no operator needed.","operationId":"admin_face_policy_get_v1_admin_face_policy_get","parameters":[{"name":"tenant","in":"query","required":true,"schema":{"type":"string","title":"Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Admin Face Policy Put","description":"Write any subset of strictness / mode / encryption / challenge for a tenant.","operationId":"admin_face_policy_put_v1_admin_face_policy_put","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LivenessConfigIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/face/keypairs":{"get":{"summary":"Admin Face Keypairs","description":"Per-tenant encryption key status (never the key material).","operationId":"admin_face_keypairs_v1_admin_face_keypairs_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/admin/face/keypair":{"post":{"summary":"Admin Face Keypair","description":"Platform-custody keypair for a tenant; private key returned ONCE. Audited.","operationId":"admin_face_keypair_v1_admin_face_keypair_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminKeygenIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/face/keypair/private":{"get":{"summary":"Admin Face Private Key","description":"Re-reveal a platform-stored private key for hand-off. Audited every time.","operationId":"admin_face_private_key_v1_admin_face_keypair_private_get","parameters":[{"name":"tenant","in":"query","required":true,"schema":{"type":"string","title":"Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/face/audit":{"get":{"summary":"Admin Face Audit","description":"Face-related audit events (tenant.face.* / admin.face.* / tenant.liveness_config),\nnewest-first, optionally filtered to one tenant.","operationId":"admin_face_audit_v1_admin_face_audit_get","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"type":"string","default":"","title":"Tenant"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":200,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/verify/compare-result":{"post":{"summary":"Ingest Compare Result","operationId":"ingest_compare_result_v1_verify_compare_result_post","parameters":[{"name":"X-Ingest-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Ingest-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompareResultIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/tenant/webhooks":{"post":{"summary":"Tenant Add Webhook","operationId":"tenant_add_webhook_v1_tenant_webhooks_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/tenants/{tenant_id}/documents":{"post":{"summary":"Tenant Add Document","description":"PUBLIC (registration): attach a KYB document's metadata to an application.","operationId":"tenant_add_document_v1_tenants__tenant_id__documents_post","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__routes__DocIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/tenants/{tenant_id}/documents/{doc_id}/{decision}":{"post":{"summary":"Admin Doc Decision","operationId":"admin_doc_decision_v1_admin_tenants__tenant_id__documents__doc_id___decision__post","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}},{"name":"decision","in":"path","required":true,"schema":{"type":"string","title":"Decision"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/tenants/{tenant_id}/webhooks/test":{"post":{"summary":"Admin Webhook Test","operationId":"admin_webhook_test_v1_admin_tenants__tenant_id__webhooks_test_post","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/screening":{"post":{"summary":"Screening Screen","description":"Tenant-facing: screen a customer name against sanctions/PEP/adverse lists.","operationId":"screening_screen_v1_screening_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScreenIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/tenants/{tenant_id}/rescreen":{"post":{"summary":"Admin Tenant Rescreen","operationId":"admin_tenant_rescreen_v1_admin_tenants__tenant_id__rescreen_post","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/clientlogs":{"get":{"summary":"Admin Clientlogs","description":"Recent SDK client beacons (session/flow_start/flow_error) for the in-product\nActivity Log. Reads the durable rolling window (cross-instance) and falls back\nto this instance's in-memory buffer. CloudWatch is the full record.","operationId":"admin_clientlogs_v1_admin_clientlogs_get","parameters":[{"name":"level","in":"query","required":false,"schema":{"type":"string","default":"","title":"Level"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/links":{"post":{"summary":"Create Link","operationId":"create_link_v1_links_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkCreateIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"List Links","operationId":"list_links_v1_links_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/sessions":{"post":{"summary":"Create Session","description":"Mint a short-lived browser token for the web SDK. Same options as a link; call\nit from your server and hand `token` to mountVerification(). The API key never\nreaches the page.","operationId":"create_session_v1_sessions_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkCreateIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/supported-ids":{"get":{"summary":"Supported Ids","description":"Countries and ID types the flow can verify. Public: it holds no customer data.","operationId":"supported_ids_v1_supported_ids_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/links/{link_id}":{"patch":{"summary":"Update Link","description":"Change a link that hasn't finished: disable / re-enable it, move its expiry,\nnarrow its ID types, or repoint its redirect and callback.","operationId":"update_link_v1_links__link_id__patch","parameters":[{"name":"link_id","in":"path","required":true,"schema":{"type":"string","title":"Link Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkUpdateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Get Link","operationId":"get_link_v1_links__link_id__get","parameters":[{"name":"link_id","in":"path","required":true,"schema":{"type":"string","title":"Link Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/links/{link_id}/resend":{"post":{"summary":"Resend Link","operationId":"resend_link_v1_links__link_id__resend_post","parameters":[{"name":"link_id","in":"path","required":true,"schema":{"type":"string","title":"Link Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResendIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/links/{link_id}/cancel":{"post":{"summary":"Cancel Link","operationId":"cancel_link_v1_links__link_id__cancel_post","parameters":[{"name":"link_id","in":"path","required":true,"schema":{"type":"string","title":"Link Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/links/{link_id}/qr.svg":{"get":{"summary":"Link Qr","operationId":"link_qr_v1_links__link_id__qr_svg_get","parameters":[{"name":"link_id","in":"path","required":true,"schema":{"type":"string","title":"Link Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/l/{token}/qr.svg":{"get":{"summary":"Runtime Qr","description":"QR of this link's own address, so someone who opened it on a computer can carry\non with their phone. It encodes nothing the holder of the token doesn't already have.","operationId":"runtime_qr_v1_l__token__qr_svg_get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/l/{token}/handoff":{"post":{"summary":"Runtime Handoff","description":"The link was opened on a second device by scanning the code shown on the first.\nRecorded so the first device can stop asking and show progress instead.","operationId":"runtime_handoff_v1_l__token__handoff_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/l/{token}":{"get":{"summary":"Runtime Get","operationId":"runtime_get_v1_l__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/l/{token}/consent":{"post":{"summary":"Runtime Consent","operationId":"runtime_consent_v1_l__token__consent_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__links__ConsentIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/l/{token}/liveness":{"post":{"summary":"Runtime Liveness","operationId":"runtime_liveness_v1_l__token__liveness_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LivenessIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/l/{token}/identity":{"post":{"summary":"Runtime Identity","operationId":"runtime_identity_v1_l__token__identity_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdentityIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/l/{token}/session":{"post":{"summary":"Runtime Session","description":"Open one person's own session from a multi-use link.","operationId":"runtime_session_v1_l__token__session_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/l/{token}/document":{"post":{"summary":"Runtime Document","description":"Match the live selfie against the photo on an ID document. The selfie is the\nface the server evaluated during this link's liveness check, never an upload.","operationId":"runtime_document_v1_l__token__document_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/kyb/applications":{"post":{"summary":"Create Application","operationId":"create_application_v1_kyb_applications_post","responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/kyb/applications/{app_id}":{"get":{"summary":"Get Application","operationId":"get_application_v1_kyb_applications__app_id__get","parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string","title":"App Id"}},{"name":"x-application-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Application-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"summary":"Patch Application","operationId":"patch_application_v1_kyb_applications__app_id__patch","parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string","title":"App Id"}},{"name":"x-application-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Application-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Patch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/kyb/applications/{app_id}/cac-lookup":{"post":{"summary":"Cac Lookup","operationId":"cac_lookup_v1_kyb_applications__app_id__cac_lookup_post","parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string","title":"App Id"}},{"name":"x-application-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Application-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CacIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/kyb/applications/{app_id}/directors/{key}/link":{"post":{"summary":"Director Link","operationId":"director_link_v1_kyb_applications__app_id__directors__key__link_post","parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string","title":"App Id"}},{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}},{"name":"x-application-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Application-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/kyb/applications/{app_id}/documents":{"post":{"summary":"Upload Document","operationId":"upload_document_v1_kyb_applications__app_id__documents_post","parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string","title":"App Id"}},{"name":"x-application-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Application-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__kyb__DocIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/kyb/applications/{app_id}/submit":{"post":{"summary":"Submit Application","operationId":"submit_application_v1_kyb_applications__app_id__submit_post","parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string","title":"App Id"}},{"name":"x-application-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Application-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/liveness/pubkey":{"get":{"tags":["liveness-ingest"],"summary":"Liveness Pubkey","description":"Active RSA public key the SDK must encrypt with. No auth — the public key\nis public. The SDK pins kid+PEM and re-fetches on a kid mismatch (rotation).","operationId":"liveness_pubkey_api_v1_liveness_pubkey_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Liveness Pubkey Api V1 Liveness Pubkey Get"}}}}}}},"/api/v1/liveness/events/sealed":{"post":{"tags":["liveness-ingest"],"summary":"Ingest Liveness Event Sealed","description":"Decrypt a sealed envelope, validate, chain + persist.\n\nRequest body (envelope): {kid, alg, enc_key, nonce, ciphertext} (all base64).\nReturns: {event_id, deduplicated, chain_hash_hex}. Idempotent on request_id.","operationId":"ingest_liveness_event_sealed_api_v1_liveness_events_sealed_post","parameters":[{"name":"x-liveness-ingest-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Liveness-Ingest-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ingest Liveness Event Sealed Api V1 Liveness Events Sealed Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/__auth":{"post":{"summary":"Demo Login","operationId":"demo_login___auth_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/":{"get":{"summary":"Root","description":"Marketing landing page is the front door; the demo/console launcher moved\nto /start for internal use.","operationId":"root__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/start":{"get":{"summary":"Launcher","operationId":"launcher_start_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/healthz":{"get":{"summary":"Healthz","operationId":"healthz_healthz_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/audit/verify":{"get":{"summary":"Audit Verify","description":"Prove the audit chain is intact (LV-19).","operationId":"audit_verify_v1_audit_verify_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"AddressReconcileIn":{"properties":{"street":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Street"},"area":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Area"},"lga":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lga"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"landmark":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Landmark"},"address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address"},"lat":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Lat"},"lon":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Lon"},"accuracy_m":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Accuracy M"},"building_photo_b64":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Building Photo B64"},"subject_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject Id"},"result_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Result Token"}},"type":"object","title":"AddressReconcileIn"},"AddressSuggestIn":{"properties":{"lat":{"type":"number","title":"Lat"},"lon":{"type":"number","title":"Lon"}},"type":"object","required":["lat","lon"],"title":"AddressSuggestIn"},"AddressVerifyIn":{"properties":{"address":{"type":"string","title":"Address"},"lat":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Lat"},"lon":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Lon"},"accuracy_m":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Accuracy M"},"subject_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject Id"},"result_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Result Token"}},"type":"object","required":["address"],"title":"AddressVerifyIn"},"AdminKeygenIn":{"properties":{"tenant":{"type":"string","title":"Tenant"},"enc_alg":{"type":"string","title":"Enc Alg","default":"RSA-OAEP-256"}},"type":"object","required":["tenant"],"title":"AdminKeygenIn"},"AssistedIn":{"properties":{"subject_id":{"type":"string","title":"Subject Id"},"consent_id":{"type":"string","title":"Consent Id"},"note":{"type":"string","title":"Note","default":""}},"type":"object","required":["subject_id","consent_id"],"title":"AssistedIn"},"AutocompleteIn":{"properties":{"query":{"type":"string","title":"Query"},"lat":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Lat"},"lon":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Lon"}},"type":"object","required":["query"],"title":"AutocompleteIn"},"CacIn":{"properties":{"rc_number":{"type":"string","title":"Rc Number"},"type":{"type":"string","title":"Type","default":"co"}},"type":"object","required":["rc_number"],"title":"CacIn"},"ChallengeIn":{"properties":{"request_id":{"type":"string","title":"Request Id"},"illumination":{"type":"boolean","title":"Illumination","default":false},"head_only":{"type":"boolean","title":"Head Only","default":false},"torch":{"type":"boolean","title":"Torch","default":false},"camera":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Camera"}},"type":"object","required":["request_id"],"title":"ChallengeIn"},"ClientLogIn":{"properties":{"stage":{"type":"string","title":"Stage","default":""},"level":{"type":"string","title":"Level","default":"info"},"message":{"type":"string","title":"Message","default":""},"ua":{"type":"string","title":"Ua","default":""},"extra":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Extra"}},"type":"object","title":"ClientLogIn"},"CompareResultIn":{"properties":{"decision_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Decision Id"},"client_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Ref"},"request_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Request Id"},"similarity":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Similarity"},"confidence_pct":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Confidence Pct"},"match":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Match"},"threshold_pct":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Threshold Pct"},"classification":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Classification"},"doc_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Doc Type"},"subject_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject Ref"},"compare_event_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Compare Event Id"},"ts":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ts"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","title":"CompareResultIn"},"ComplianceReportIn":{"properties":{"event_type":{"type":"string","title":"Event Type"},"details":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Details"}},"type":"object","required":["event_type"],"title":"ComplianceReportIn"},"ConsentGrantIn":{"properties":{"granted":{"type":"boolean","title":"Granted"},"granted_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Granted At"}},"type":"object","required":["granted"],"title":"ConsentGrantIn"},"ConsoleReviewIn":{"properties":{"approve":{"type":"boolean","title":"Approve"},"note":{"type":"string","title":"Note","default":""}},"type":"object","required":["approve"],"title":"ConsoleReviewIn"},"ConsoleScreenIn":{"properties":{"name":{"type":"string","title":"Name"}},"type":"object","required":["name"],"title":"ConsoleScreenIn"},"DeviceContext":{"properties":{"device":{"$ref":"#/components/schemas/DeviceSignals"},"network":{"$ref":"#/components/schemas/NetworkSignals"},"location":{"anyOf":[{"$ref":"#/components/schemas/LocationSignals"},{"type":"null"}]},"timing":{"$ref":"#/components/schemas/TimingSignals"},"attestation_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Attestation Token"}},"type":"object","title":"DeviceContext"},"DeviceSignals":{"properties":{"platform":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Platform"},"os":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Os"},"os_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Os Version"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"manufacturer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Manufacturer"},"app_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"App Version"},"sdk_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sdk Version"},"sdk_launch_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sdk Launch Count"},"screen":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Screen"},"screen_width_px":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Screen Width Px"},"screen_height_px":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Screen Height Px"},"screen_refresh_rate":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Screen Refresh Rate"},"system_architecture":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"System Architecture"},"locale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Locale"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"},"timezone_offset_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Timezone Offset Minutes"},"build_brand":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Build Brand"},"build_device":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Build Device"},"build_hardware":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Build Hardware"},"build_product":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Build Product"},"build_fingerprint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Build Fingerprint"},"package_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Package Name"},"host_application":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Host Application"},"device_app_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Device App Hash"},"num_cameras":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Num Cameras"},"battery_level":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Battery Level"},"battery_charging":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Battery Charging"},"total_memory_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Memory Bytes"},"free_memory_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Free Memory Bytes"},"app_memory_used_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"App Memory Used Bytes"},"app_memory_limit_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"App Memory Limit Bytes"},"supports_hardware_attestation":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Supports Hardware Attestation"},"device_motion_rms":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Device Motion Rms"},"device_motion_samples":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Device Motion Samples"},"is_emulator":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Emulator"},"is_rooted_jailbroken":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Rooted Jailbroken"},"is_debugger_attached":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Debugger Attached"},"device_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Device Id"}},"additionalProperties":true,"type":"object","title":"DeviceSignals"},"DocumentIn":{"properties":{"country":{"type":"string","title":"Country"},"document_type":{"type":"string","title":"Document Type"},"front_b64":{"type":"string","title":"Front B64"},"back_b64":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Back B64"},"mrz":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mrz"}},"type":"object","required":["country","document_type","front_b64"],"title":"DocumentIn"},"DocumentMrzIn":{"properties":{"mrz":{"type":"string","title":"Mrz"}},"type":"object","required":["mrz"],"title":"DocumentMrzIn"},"DocumentVerifyIn":{"properties":{"mrz":{"type":"string","title":"Mrz"},"document_photo_b64":{"type":"string","title":"Document Photo B64","default":""},"selfie_b64":{"type":"string","title":"Selfie B64","default":""},"chip_verified":{"type":"boolean","title":"Chip Verified","default":false},"result_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Result Token"}},"type":"object","required":["mrz"],"title":"DocumentVerifyIn"},"FaceAuthIn":{"properties":{"enrollment_id":{"type":"string","title":"Enrollment Id"},"selfie_b64":{"type":"string","title":"Selfie B64"}},"type":"object","required":["enrollment_id","selfie_b64"],"title":"FaceAuthIn"},"FaceDedupIn":{"properties":{"selfie_b64":{"type":"string","title":"Selfie B64"},"tenant":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant"}},"type":"object","required":["selfie_b64"],"title":"FaceDedupIn"},"FaceEnrollIn":{"properties":{"selfie_b64":{"type":"string","title":"Selfie B64"},"subject_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject Id"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"},"tenant":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant"},"result_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Result Token"}},"type":"object","required":["selfie_b64"],"title":"FaceEnrollIn"},"FaceEnrollReviewIn":{"properties":{"selfie_b64":{"type":"string","title":"Selfie B64"},"frames":{"items":{"type":"string"},"type":"array","title":"Frames","default":[]},"audio_b64":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Audio B64"},"spoken":{"type":"string","title":"Spoken","default":""},"transcript":{"type":"string","title":"Transcript","default":""},"subject_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject Id"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},"type":"object","required":["selfie_b64"],"title":"FaceEnrollReviewIn"},"FrameProof":{"properties":{"image_b64":{"type":"string","title":"Image B64"},"proves_action":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Proves Action"}},"type":"object","required":["image_b64"],"title":"FrameProof"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"IdentityIn":{"properties":{"id_type":{"type":"string","title":"Id Type"},"id_number":{"type":"string","title":"Id Number"}},"type":"object","required":["id_type","id_number"],"title":"IdentityIn"},"IdentitySearchIn":{"properties":{"selfie_b64":{"type":"string","title":"Selfie B64"},"result_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Result Token"}},"type":"object","required":["selfie_b64"],"title":"IdentitySearchIn"},"IdentityVerifyIn":{"properties":{"id_type":{"type":"string","title":"Id Type"},"id_number":{"type":"string","title":"Id Number"},"selfie_b64":{"type":"string","title":"Selfie B64"},"result_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Result Token"}},"type":"object","required":["id_type","id_number","selfie_b64"],"title":"IdentityVerifyIn"},"KeygenIn":{"properties":{"enc_alg":{"type":"string","title":"Enc Alg","default":"RSA-OAEP-256"},"tenant":{"type":"string","title":"Tenant","default":""}},"type":"object","title":"KeygenIn"},"LicenseIssueIn":{"properties":{"tenant_id":{"type":"string","title":"Tenant Id"},"enc_pubkey":{"type":"string","title":"Enc Pubkey"},"enc_alg":{"type":"string","title":"Enc Alg","default":"ECIES-P256"},"bundle_ids":{"items":{"type":"string"},"type":"array","title":"Bundle Ids"},"plan":{"type":"string","title":"Plan","default":"standard"},"quota_monthly":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Quota Monthly"},"ttl_days":{"type":"integer","title":"Ttl Days","default":60}},"type":"object","required":["tenant_id","enc_pubkey"],"title":"LicenseIssueIn"},"LicenseRefreshIn":{"properties":{"cert":{"type":"string","title":"Cert"},"ttl_days":{"type":"integer","title":"Ttl Days","default":60}},"type":"object","required":["cert"],"title":"LicenseRefreshIn"},"LicenseRevokeIn":{"properties":{"key_id":{"type":"string","title":"Key Id"},"reason":{"type":"string","title":"Reason","default":""}},"type":"object","required":["key_id"],"title":"LicenseRevokeIn"},"LinkCreateIn":{"properties":{"flow":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Flow"},"steps":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Steps"},"purpose":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Purpose"},"subject":{"$ref":"#/components/schemas/SubjectIn","default":{}},"expires_in_hours":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Expires In Hours"},"send":{"items":{"type":"string"},"type":"array","title":"Send","default":[]},"redirect_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Redirect Url"},"callback_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Callback Url"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata","default":{}},"language":{"type":"string","title":"Language","default":"en"},"brand_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Name"},"brand_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Color"},"logo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo Url"},"policy_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Policy Url"},"id_selection":{"anyOf":[{"additionalProperties":{"items":{"type":"string"},"type":"array"},"type":"object"},{"type":"null"}],"title":"Id Selection"},"consent":{"anyOf":[{"$ref":"#/components/schemas/ConsentGrantIn"},{"type":"null"}]},"options":{"$ref":"#/components/schemas/OptionsIn","default":{"allow_agent_mode":false,"strict":false,"capture_video":false,"require_location":false,"light_only":false,"remove_background":false,"document_capture_modes":["camera"],"auto_capture":"autoCapture","auto_capture_timeout":20000}},"multi_use":{"type":"boolean","title":"Multi Use","default":false},"max_uses":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Uses"}},"type":"object","title":"LinkCreateIn"},"LinkIn":{"properties":{"send":{"items":{"type":"string"},"type":"array","title":"Send","default":[]}},"type":"object","title":"LinkIn"},"LinkUpdateIn":{"properties":{"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"expires_in_hours":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Expires In Hours"},"id_selection":{"anyOf":[{"additionalProperties":{"items":{"type":"string"},"type":"array"},"type":"object"},{"type":"null"}],"title":"Id Selection"},"redirect_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Redirect Url"},"callback_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Callback Url"},"max_uses":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Uses"}},"type":"object","title":"LinkUpdateIn"},"LivenessConfigIn":{"properties":{"strictness":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Strictness"},"mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mode"},"enc_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enc Enabled"},"enc_pubkey":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Enc Pubkey"},"enc_alg":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Enc Alg"},"challenge":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Challenge"},"tenant":{"type":"string","title":"Tenant","default":""}},"type":"object","title":"LivenessConfigIn"},"LivenessIn":{"properties":{"request_id":{"type":"string","title":"Request Id"}},"type":"object","required":["request_id"],"title":"LivenessIn"},"LocationSignals":{"properties":{"lat":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Lat"},"lng":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Lng"},"accuracy_m":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Accuracy M"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"captured_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Captured At"}},"type":"object","title":"LocationSignals"},"LoginIn":{"properties":{"username":{"type":"string","title":"Username"},"password":{"type":"string","title":"Password"}},"type":"object","required":["username","password"],"title":"LoginIn"},"NetworkSignals":{"properties":{"connection_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Connection Type"},"carrier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Carrier"},"downlink_mbps":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Downlink Mbps"},"rtt_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Rtt Ms"},"client_reported_ip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Reported Ip"},"vpn_suspected":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Vpn Suspected"},"proxy_suspected":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Proxy Suspected"}},"additionalProperties":true,"type":"object","title":"NetworkSignals"},"NoteIn":{"properties":{"text":{"type":"string","title":"Text"}},"type":"object","required":["text"],"title":"NoteIn"},"OfflineSubmitIn":{"properties":{"subject_id":{"type":"string","title":"Subject Id"},"frames":{"items":{"$ref":"#/components/schemas/FrameProof"},"type":"array","maxItems":30,"minItems":1,"title":"Frames"},"client_actions":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Client Actions"},"method":{"type":"string","title":"Method","default":"face_liveness"},"client_txn_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Txn Id"},"captured_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Captured At"},"transcript":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transcript"},"audio_present":{"type":"boolean","title":"Audio Present","default":false},"face_attributes":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Face Attributes"},"gps_lat":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Gps Lat"},"gps_lon":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Gps Lon"},"gps_accuracy_m":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Gps Accuracy M"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"}},"type":"object","required":["subject_id","frames"],"title":"OfflineSubmitIn"},"OnboardTenantIn":{"properties":{"slug":{"type":"string","title":"Slug"},"display_name":{"type":"string","title":"Display Name"},"short":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Short"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country","default":"Nigeria"},"jurisdiction":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Jurisdiction","default":"NG · CBN"},"plan":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan","default":"Standard"},"enc_alg":{"type":"string","title":"Enc Alg","default":"RSA-OAEP-256"},"compliance":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Compliance"},"tech":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Tech"}},"type":"object","required":["slug","display_name"],"title":"OnboardTenantIn","description":"Admin one-shot customer onboarding.\n\nBundles everything a new SDK customer needs: a runtime license key\n(X-License-Key header), a compliance-dashboard record (TEN-XXXX), a\nper-tenant response-encryption keypair, and sandbox/production API keys."},"OptionsIn":{"properties":{"allow_agent_mode":{"type":"boolean","title":"Allow Agent Mode","default":false},"strict":{"type":"boolean","title":"Strict","default":false},"capture_video":{"type":"boolean","title":"Capture Video","default":false},"require_location":{"type":"boolean","title":"Require Location","default":false},"light_only":{"type":"boolean","title":"Light Only","default":false},"remove_background":{"anyOf":[{"type":"boolean"},{"type":"string"}],"title":"Remove Background","default":false},"document_capture_modes":{"items":{"type":"string"},"type":"array","title":"Document Capture Modes","default":["camera"]},"auto_capture":{"type":"string","title":"Auto Capture","default":"autoCapture"},"auto_capture_timeout":{"type":"integer","title":"Auto Capture Timeout","default":20000}},"type":"object","title":"OptionsIn"},"RectifyIn":{"properties":{"correction":{"type":"string","title":"Correction"}},"type":"object","required":["correction"],"title":"RectifyIn"},"RedeemIn":{"properties":{"token":{"type":"string","title":"Token"}},"type":"object","required":["token"],"title":"RedeemIn"},"RequestIn":{"properties":{"subject_id":{"type":"string","title":"Subject Id"},"consent_id":{"type":"string","title":"Consent Id"},"reason":{"type":"string","title":"Reason","default":"issuance"},"risk_level":{"type":"string","title":"Risk Level","default":"baseline"},"method":{"type":"string","title":"Method","default":"face_liveness"},"tenant_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant Id"},"operator_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Operator Id"},"registration_centre":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Registration Centre"},"device_context":{"anyOf":[{"$ref":"#/components/schemas/DeviceContext"},{"type":"null"}]}},"type":"object","required":["subject_id","consent_id"],"title":"RequestIn"},"ResendIn":{"properties":{"send":{"items":{"type":"string"},"type":"array","title":"Send"}},"type":"object","required":["send"],"title":"ResendIn"},"ReviewIn":{"properties":{"reviewer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reviewer"},"uphold":{"type":"boolean","title":"Uphold"},"note":{"type":"string","title":"Note","default":""}},"type":"object","required":["uphold"],"title":"ReviewIn"},"ScreenIn":{"properties":{"name":{"type":"string","title":"Name"},"dob":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dob"}},"type":"object","required":["name"],"title":"ScreenIn"},"SdkSessionIn":{"properties":{"transaction_id":{"type":"string","title":"Transaction Id","default":""}},"type":"object","title":"SdkSessionIn"},"SecurityIn":{"properties":{"pad_mandatory":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Pad Mandatory"},"require_attestation":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Require Attestation"},"quality_gate_mandatory":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Quality Gate Mandatory"}},"type":"object","title":"SecurityIn"},"SubjectIn":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"Full name as declared, e.g. from CAC"},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"},"organisation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organisation"},"reference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reference","description":"Your id for this person"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone","description":"E.164, e.g. +2348031234567"},"id_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id Type","description":"nin or bvn, if you expect a specific one"},"id_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id Number","description":"Expected NIN/BVN. Stored only as a hash."}},"type":"object","title":"SubjectIn"},"TenantActionIn":{"properties":{"action":{"type":"string","title":"Action"},"note":{"type":"string","title":"Note","default":""},"reviewer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reviewer"}},"type":"object","required":["action"],"title":"TenantActionIn"},"TenantKeygenIn":{"properties":{"enc_alg":{"type":"string","title":"Enc Alg","default":"RSA-OAEP-256"}},"type":"object","title":"TenantKeygenIn"},"TenantRegisterIn":{"properties":{"name":{"type":"string","title":"Name"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"},"jurisdiction":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Jurisdiction"},"compliance":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Compliance"},"tech":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Tech"},"directors":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Directors","default":[]},"ubos":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Ubos","default":[]},"docs":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Docs","default":[]}},"type":"object","required":["name"],"title":"TenantRegisterIn"},"TimingSignals":{"properties":{"client_timestamp":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Timestamp"},"capture_duration_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Capture Duration Ms"},"challenge_latency_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Challenge Latency Ms"}},"type":"object","title":"TimingSignals"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"VerifyIn":{"properties":{"request_id":{"type":"string","title":"Request Id"},"session_id":{"type":"string","title":"Session Id"},"nonce":{"type":"string","title":"Nonce"},"attestation_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Attestation Token"},"client_actions":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Client Actions"},"frames":{"items":{"$ref":"#/components/schemas/FrameProof"},"type":"array","maxItems":30,"minItems":1,"title":"Frames"},"transcript":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transcript"},"audio_present":{"type":"boolean","title":"Audio Present","default":false},"audio_b64":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Audio B64"},"video_b64":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Video B64"},"video_mime":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Video Mime"},"gps_lat":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Gps Lat"},"gps_lon":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Gps Lon"},"gps_accuracy_m":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Gps Accuracy M"},"face_attributes":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Face Attributes"},"pad_strict":{"type":"boolean","title":"Pad Strict","default":false},"pad":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Pad"},"illumination":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Illumination"},"perspective":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Perspective"},"portrait_b64":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Portrait B64"},"torch":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Torch"},"camera":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Camera"},"depth":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Depth"},"session_signature":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Session Signature"},"assurance":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assurance"},"face_engine":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Face Engine"},"license_cert":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"License Cert"},"capture_mode":{"type":"boolean","title":"Capture Mode","default":false},"client_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Ref"}},"type":"object","required":["request_id","session_id","nonce","frames"],"title":"VerifyIn"},"WebhookConfigIn":{"properties":{"url":{"type":"string","title":"Url"},"rotate_secret":{"type":"boolean","title":"Rotate Secret","default":false}},"type":"object","required":["url"],"title":"WebhookConfigIn"},"WebhookIn":{"properties":{"url":{"type":"string","title":"Url"},"events":{"items":{"type":"string"},"type":"array","title":"Events","default":["verification.completed"]}},"type":"object","required":["url"],"title":"WebhookIn"},"WithdrawIn":{"properties":{"consent_id":{"type":"string","title":"Consent Id"},"subject_id":{"type":"string","title":"Subject Id"}},"type":"object","required":["consent_id","subject_id"],"title":"WithdrawIn"},"app__api__kyb__DocIn":{"properties":{"name":{"type":"string","title":"Name"},"type":{"type":"string","title":"Type","default":"other"},"content_b64":{"type":"string","title":"Content B64"}},"type":"object","required":["name","content_b64"],"title":"DocIn"},"app__api__links__ConsentIn":{"properties":{"accepted":{"type":"boolean","title":"Accepted"}},"type":"object","required":["accepted"],"title":"ConsentIn"},"app__api__routes__ConsentIn":{"properties":{"subject_id":{"type":"string","title":"Subject Id"},"purpose":{"type":"string","title":"Purpose","default":"nin_token_issuance_liveness"},"lawful_basis":{"type":"string","title":"Lawful Basis","default":"consent"},"sensitive_condition":{"type":"string","title":"Sensitive Condition","default":"explicit_consent"},"channel":{"type":"string","title":"Channel","default":"web"},"accepted":{"type":"boolean","title":"Accepted","description":"must be true; refusal is recorded too"},"signal_scopes":{"items":{"type":"string"},"type":"array","title":"Signal Scopes"}},"type":"object","required":["subject_id","accepted"],"title":"ConsentIn"},"app__api__routes__DocIn":{"properties":{"name":{"type":"string","title":"Name"},"type":{"type":"string","title":"Type","default":"PDF"},"size":{"type":"string","title":"Size","default":"—"}},"type":"object","required":["name"],"title":"DocIn"}}}}