{"openapi":"3.1.0","info":{"title":"VerifyCall API","version":"1.0.0"},"paths":{"/v1/cases/upload":{"post":{"summary":"Upload Case","description":"Upload media for async analysis.\nReturns 202 with case_id and job_id.\ntenant_id comes from JWT only (ADR-001).","operationId":"upload_case_v1_cases_upload_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_case_v1_cases_upload_post"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/cases/live/start":{"post":{"summary":"Start Live Session","description":"Start a live analysis session.\nAndroid: live audio via MediaProjection.\niOS: post-call upload path (ADR-006).","operationId":"start_live_session_v1_cases_live_start_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveStartRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/cases/{case_id}/status":{"get":{"summary":"Get Case Status","description":"Get current case status.\nReturns 403 if case belongs to a different tenant (ADR-001).","operationId":"get_case_status_v1_cases__case_id__status_get","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Case Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/cases/{case_id}/risk":{"get":{"summary":"Get Case Risk","description":"Get current risk view for a case.\nReturns INCONCLUSIVE with next_best_test if no decision yet (ADR-007).","operationId":"get_case_risk_v1_cases__case_id__risk_get","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Case Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/cases":{"get":{"summary":"List Recent Cases","description":"List recent cases for the authenticated tenant, ordered by creation date desc.\nUsed by the History screen in the consumer mobile app.","operationId":"list_recent_cases_v1_cases_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":5,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Create Case","description":"Consumer-facing upload endpoint for the web UI.\nAccepts file + use_case + pipeline_mode (FormData).\nReturns case_id, status=PENDING, estimated_duration_seconds.\ntenant_id comes from JWT only (ADR-001).","operationId":"create_case_v1_cases_post","requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_create_case_v1_cases_post"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/cases/text":{"post":{"summary":"Create Text Case","description":"Submit raw text for analysis.\n\nFast path (consumer_active_scam_check):\n  Runs synchronous scam pattern matching (<500ms), returns HTTP 200\n  with DECIDED status. No Celery dispatch. No ingest service call.\n  Falls through to normal async pipeline only if scam_check raises.\n\nNormal path (all other use_cases):\n  Encodes as UTF-8, stores as text/plain via ingest service, runs\n  NLP pipeline asynchronously. Returns HTTP 202 PENDING.\n\ntenant_id comes from JWT only (ADR-001).","operationId":"create_text_case_v1_cases_text_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TextCaseRequest"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/cases/url":{"post":{"summary":"Create Url Case","description":"Submit a URL (YouTube, TikTok, direct video/audio link, etc.) for analysis.\nIngest service fetches the media via yt-dlp or httpx, then runs the full pipeline.\ntenant_id comes from JWT only (ADR-001).","operationId":"create_url_case_v1_cases_url_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UrlCaseRequest"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/cases/{case_id}/result":{"get":{"summary":"Get Case Result","description":"Full result for a case. Used by the consumer web UI for both polling\n(submit screen) and rendering (result screen).\n\nStatus field:\n  PROCESSING — decision not yet available (keep polling)\n  COMPLETE   — decision ready, full result included\n  FAILED     — pipeline encountered a terminal failure\n\nNon-calibrated placeholder (Sprint 3 ADR): set from Outcome row when\navailable; defaults True (honest) when no outcome has been captured yet.","operationId":"get_case_result_v1_cases__case_id__result_get","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Case Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/cases/{case_id}/challenges":{"post":{"summary":"Record Challenge Completion","description":"Record that a Next-Best-Test challenge was completed by the user.\nWrites an immutable audit event. History feeds select_next_best_test()\non subsequent calls (prior_challenge_history param).","operationId":"record_challenge_completion_v1_cases__case_id__challenges_post","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Case Id"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChallengeCompletionRequest","default":{"action_key":"completed","completed":true}}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/cases/stream":{"post":{"summary":"Stream Audio Chunk","description":"Accept a base64-encoded audio chunk for live call streaming.\nCreates a case on first chunk (chunk_index=0), appends audio data,\nand triggers pipeline on is_final=True.","operationId":"stream_audio_chunk_v1_cases_stream_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StreamChunkRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/cases/stream/finalise":{"post":{"summary":"Finalise Stream","description":"Finalise a live call streaming session. Triggers the analysis pipeline\non the accumulated audio data.","operationId":"finalise_stream_v1_cases_stream_finalise_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinaliseStreamRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/provenance/{case_id}":{"get":{"summary":"Get Case Provenance","description":"Per-case provenance record — the sealed decision bundle's hashes + re-verified integrity + the\nappend-only chain-of-custody timeline for ONE case. Robust for EVERY case (the tenant list is\ncapped at 100), so the console report can fill the provenance section regardless of recency.\nTenant-scoped (ADR-001), envelope (ADR-005). Returns data=null (200) when the case has no sealed\nbundle yet — the report then shows an honest 'sealed record not yet available', never a fake one.","operationId":"get_case_provenance_v1_provenance__case_id__get","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Case Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/provenance":{"get":{"summary":"List Provenance","operationId":"list_provenance_v1_provenance_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":25,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/calibration/status/{use_case}":{"get":{"summary":"Get Calibration Status","description":"Return the current calibration state for a given use_case.\nConsumer-facing: shown on the Calibration Status screen (S-13).\n\n`?modality=image|video|audio` scopes the answer. Optional, because this screen is a\nuse-case-level view and a caller may legitimately not have one — but WHEN a caller knows,\nit must be able to say so, or the screen shows a number that belongs to a different\nmodality's report.","operationId":"get_calibration_status_v1_calibration_status__use_case__get","parameters":[{"name":"use_case","in":"path","required":true,"schema":{"type":"string","title":"Use Case"}},{"name":"modality","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Modality"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/adjudications":{"post":{"summary":"Create Adjudication","description":"Write an immutable ground-truth adjudication label for an outcome.\n\nCalls calibration.adjudication_writer.write_adjudication() which:\n  - Validates taxonomy label\n  - Validates outcome belongs to tenant (ADR-001)\n  - Appends-only (never modifies original Outcome row)\n  - Writes audit event per adjudication\n\nNotes field accepts optional free-text; fraud_typology is stored in\nthe notes field as structured JSON prefix so it feeds calibration pipeline.\n\nADR-001: tenant_id from JWT only.","operationId":"create_adjudication_v1_adjudications_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdjudicationCreateRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/consumer":{"post":{"summary":"Request Otp","description":"Request OTP for consumer phone auth.\nSends a random code by SMS (Twilio). Only with ALLOW_DEV_OTP set on the public dev signing key is\nthe code the fixed 123456, with no SMS (local dev and the test suite). A caller locked out of the\nphone is refused (400 AUTH_OTP_ATTEMPTS_EXCEEDED), and so is every caller while SMS_MAX_IN_FLIGHT\nsends are in flight (503 AUTH_SMS_FAILED, retriable).","operationId":"request_otp_v1_auth_consumer_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsumerAuthRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/verify":{"post":{"summary":"Verify Otp","description":"Verify OTP and issue JWT.\nCreates or retrieves consumer tenant.","operationId":"verify_otp_v1_auth_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/refresh":{"post":{"summary":"Refresh Token","description":"Renew a consumer JWT with no code: a live one, or one that expired at most\nCONSUMER_REFRESH_GRACE_SECONDS (7 days) ago.\nAny other role is refused (403 AUTH_WRONG_ROLE), and so is a token whose subject is not, today,\na consumer user with a membership of the token's tenant (401 AUTH_NO_MEMBERSHIP), and one from\nbefore SMS sign-in (401 AUTH_SESSION_ENDED, consumer_session_is_current). The gateway\n(main.py refuse_revoked_key_sessions) answers a live consumer token whose subject is not a\nconsumer user 401 AUTH_NOT_CONSUMER on every Bearer route, this one included when the token is\nalso sent as a Bearer header.","operationId":"refresh_token_v1_auth_refresh_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefreshRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/enterprise":{"post":{"summary":"Retired Api Key Exchange","description":"Retired 2026-10 (see the module docstring). Routed only so a caller still using it gets an\nenveloped answer that says what to do, instead of Starlette's bare, un-enveloped 404. It reads\nnothing from the request (the X-API-Key is never resolved) and issues nothing.\n\nThe message covers a tenant that only ever had an API key: it has no console login, and\nself-serve sign-up would create a new tenant rather than a login for this one, so pointing it\nat the sign-in route alone leaves it nowhere to go.","operationId":"retired_api_key_exchange_v1_auth_enterprise_post","responses":{"410":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"deprecated":true}},"/v1/auth/enterprise/user":{"post":{"summary":"Enterprise User Login","description":"Per-user enterprise login (T4): email + password → a console-session JWT whose `sub` is the\nREAL User.id. This is what makes the immutable audit + adjudication flywheel attribute actions to\na PERSON, not just a tenant. Mints the SAME enterprise JWT (issue_enterprise_jwt) the retired\nAPI-key exchange did — with a real user as the principal instead of one derived from a key.\n\nSecurity: a bad email and a bad password BOTH return the same generic 401 (never reveal which).\nThe org_role ALWAYS comes from the OrgMembership row, never the request body (ADR-001).\nRate-limited per client address, then per email, before any lookup (429 RATE_LIMIT_EXCEEDED).","operationId":"enterprise_user_login_v1_auth_enterprise_user_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserLoginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/enterprise/register":{"post":{"summary":"Enterprise Register","description":"Self-serve enterprise signup (internal pilot): create tenant(plan=package) + user(hashed pw) +\nadmin membership, then mint the enterprise session JWT. The package is CHOSEN here, not paid for —\na payment processor is a separate GA-track step. ADR-001: tenant_id is the freshly-created tenant's\nserver-generated id, never from the request. A duplicate email is rejected (one generic conflict).\nRate-limited per client address before anything else, invalid attempts included (429).","operationId":"enterprise_register_v1_auth_enterprise_register_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/enterprise/refresh":{"post":{"summary":"Enterprise Refresh","description":"Refresh an enterprise session JWT before (or shortly after) expiry.\n\nThe old token proves WHO and WHICH tenant (sub + tenant_id, both signed). It does not prove what\nthey may do NOW: org_role and plan are re-read from the database, so a demoted admin's next token\nsays member, a tenant's package change reaches its sessions, and a removed member stops renewing.\nCopying them from the old token kept a revoked privilege alive for as long as refresh was called.","operationId":"enterprise_refresh_v1_auth_enterprise_refresh_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefreshRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/enterprise/password":{"post":{"summary":"Enterprise Change Password","description":"Change the signed-in enterprise user's password.\n\nAuth is the forwarded console-session Bearer JWT (`sub` = User.id) — the caller is NEVER\nidentified from the request body (ADR-001). Two honest boundaries this must respect:\n  • A key-provisioned console principal (minted by the X-API-Key exchange `/auth/enterprise`,\n    retired 2026-10; sessions it issued before then are still honoured while their key is\n    active) has a NULL `password_hash` — there is no password to change. Refuse cleanly (409),\n    never pretend success. The org's durable credential is its `bwk_` key, rotated via key\n    management.\n  • The CURRENT password is verified before any write; a wrong one is a 401, not a silent no-op.\nSame strength policy as register (≥10 chars, ≤72 bytes — bcrypt's limit).","operationId":"enterprise_change_password_v1_auth_enterprise_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePasswordRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/system/health":{"get":{"summary":"System Health","description":"Aggregate platform health. Console-session authed (so we don't expose an unauthenticated\ninfra-probe surface). Reports ONLY genuinely-probed subsystems — never a fabricated state.","operationId":"system_health_v1_system_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/enterprise/keys":{"get":{"summary":"List Api Keys","description":"List the caller tenant's keys. Never returns the secret or the hash — prefix only.","operationId":"list_api_keys_v1_enterprise_keys_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Create Api Key","description":"Mint a new API key for the caller's tenant. Returns the full key ONCE.\n\nThe plaintext key is shown exactly once here and never retrievable again — only its\nhash is stored. The caller must save it now.","operationId":"create_api_key_v1_enterprise_keys_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateKeyRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/enterprise/keys/{key_id}":{"delete":{"summary":"Revoke Api Key","description":"Revoke a key. Tenant-scoped — you can only revoke your own tenant's keys (ADR-001).","operationId":"revoke_api_key_v1_enterprise_keys__key_id__delete","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Key Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/enterprise/me":{"get":{"summary":"Whoami","description":"Authenticated probe: proves the full API-key auth + rate-limit + tenant-resolve path.\n\nReturns the tenant the key resolves to. The detection endpoint (POST /v1/verify) will\nhang off this exact auth+rate-limit chain.","operationId":"whoami_v1_enterprise_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/verify":{"post":{"summary":"Verify","description":"Submit media for authenticity detection. API-key authenticated + rate-limited.\n\nRoutes through the DetectionEngine façade (closes T1). Returns 202 + a case reference\nimmediately (detection is async); poll GET /v1/verify/{case_id} for the verdict.","operationId":"verify_v1_verify_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_verify_v1_verify_post"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/verify/{case_id}":{"get":{"summary":"Verify Result","description":"Poll a submitted detection. API-key authenticated; tenant-isolated.\n\nReturns the DetectionResult: status PROCESSING | COMPLETE | FAILED. Only trust\nrisk_state + dimension_scores when status == COMPLETE.","operationId":"verify_result_v1_verify__case_id__get","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Case Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/verify/{case_id}/media":{"get":{"summary":"Verify Media","description":"Stream the SUBMITTED media for a case so the console can show a reviewer the file the verdict\nis about. Tenant-isolated and FAIL-CLOSED behind MEDIA_PREVIEW_ENABLED (see _media_preview_enabled).\n\nThe presigned storage URL never leaves this process: the engine resolves it, fetches the bytes,\nand streams them. The console proxies this route same-origin, so the browser needs no reach to\n(or CSP allowance for) object storage. Same auth as verify_result (dual-auth, tenant from the\nresolved context, ADR-001). When the gate is off, or no media exists, this is indistinguishable\nfrom \"not found\" — a face photo is never revealed by the existence of a 200 vs a 404.","operationId":"verify_media_v1_verify__case_id__media_get","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Case Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/webhooks/subscriptions":{"get":{"summary":"List Webhooks","description":"List the tenant's webhook subscriptions. Never returns the secret.","operationId":"list_webhooks_v1_webhooks_subscriptions_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Create Webhook","description":"Register a webhook endpoint. Returns the signing secret ONCE.\n\nThe URL is SSRF-validated here (must be public HTTPS) and re-validated at every\ndelivery. The secret signs each delivery (HMAC-SHA256); store it now — it is not\nretrievable later.","operationId":"create_webhook_v1_webhooks_subscriptions_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWebhookRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/webhooks/subscriptions/{subscription_id}":{"delete":{"summary":"Delete Webhook","description":"Delete a webhook subscription. Tenant-scoped (ADR-001) — you can only delete your own.","operationId":"delete_webhook_v1_webhooks_subscriptions__subscription_id__delete","parameters":[{"name":"subscription_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Subscription Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"summary":"Update Webhook","description":"Update a webhook subscription: pause/resume (`active`) and/or `payload_detail`.\n\nA paused subscription is skipped by dispatch_webhooks (which loads only active subs), so this\nis the console's honest pause/resume — no deliveries fire while inactive, and re-enabling\nresumes them. URL/events/secret remain immutable (recreate to change).\n\n`payload_detail` is mutable HERE and not only at create, because migration 014 backfills every\npre-existing subscription to 'full'. Those subscriptions were registered under the thin-webhook\ncontract, and if the only way back were delete-and-recreate, a subscriber wanting the boundary\nthey signed up for would have to rotate their signing secret and reconfigure their receiver to\nget it. A default we chose for them has to be one they can undo.","operationId":"update_webhook_v1_webhooks_subscriptions__subscription_id__patch","parameters":[{"name":"subscription_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Subscription Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWebhookRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/verify/batch":{"post":{"summary":"Verify Batch","description":"Submit up to 50 media files in one call. Each fans out to a normal case + pipeline.\n\nReturns 202 + a batch_id and the per-item case_ids. Poll GET /v1/verify/batch/{id}\nfor aggregate status, or GET /v1/verify/{case_id} per item.","operationId":"verify_batch_v1_verify_batch_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_verify_batch_v1_verify_batch_post"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/verify/batch/{batch_id}":{"get":{"summary":"Verify Batch Result","description":"Aggregate status of a batch. Tenant-isolated; per-item statuses from each case.","operationId":"verify_batch_result_v1_verify_batch__batch_id__get","parameters":[{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Batch Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/verify/{case_id}/record":{"get":{"summary":"Get Case Record","description":"The full Trust Record for a case (W3 / D15): the engine's sealed decision, then every human\nreview sealed after it, in chain order — each with its exact bytes, hash, re-verified integrity\nand detached signatures. Superseded reviews stay in the chain. API key or console session;\nanother tenant's case is simply not found (ADR-001).","operationId":"get_case_record_v1_verify__case_id__record_get","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Case Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/audit/checkpoint":{"get":{"summary":"Latest Audit Checkpoint","description":"The caller's tenant's latest signed audit checkpoint (gap-closure plan E1, CEO D9).\n\nWith `from_size` (the tree size of a checkpoint you hold), also an RFC 6962 consistency proof\nthat the latest tree extends it: if it fails, an entry your receipt covered was changed or\nremoved. Tenant from the token or key only (ADR-001). 404 when nothing is checkpointed yet.","operationId":"latest_audit_checkpoint_v1_audit_checkpoint_get","parameters":[{"name":"from_size","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"From Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/verify/{case_id}/export":{"get":{"summary":"Export Case Bundle","description":"The chain-of-custody export bundle for a completed case (T6).\n\nServes the SEALED decision-of-record from `decision_bundles` — the append-only,\nDB-immutable evidentiary record (migration 009) — NOT a re-assembly of the operational\nprojections. `bundle_json` is returned as the EXACT canonical bytes that were hashed at\ndecision time, so sha256(bundle_json) == bundle_hash reproduces for any third party, on\nevery call, forever. The sealed content carries the verdict, the per-item evidence\ncontent hashes, the engine_version, the input media hash, and both error-rate snapshots.\n\nThis previously re-assembled the bundle from DecisionRecord on every request and minted a\nfresh uuid4() + now() INTO the hashed content — so the same decision returned a DIFFERENT\nbundle_hash on every call, the evidence manifest carried bare UUIDs instead of hashes, and\nengine_version was absent entirely. A record whose hash changes on every read is the\nopposite of a chain-of-custody artifact. The sealed table was built to fix exactly this\n(Codex #8/#9) and this door was simply never repointed at it.\n\nTenant isolation (ADR-001): a case belonging to another tenant is simply not found. C2PA\nsigning is roadmap, not built (`provenance_compatibility = \"C2PA_PENDING\"`). We fail closed\nif the stored bytes do not re-hash to the stored hash — serving an unverifiable\nchain-of-custody record would defeat the whole point.","operationId":"export_case_bundle_v1_verify__case_id__export_get","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Case Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/review/queue":{"get":{"summary":"Review Queue","description":"Cases routed to human review for this tenant. open = routed or assigned, not yet decided.","operationId":"review_queue_v1_review_queue_get","parameters":[{"name":"state","in":"query","required":false,"schema":{"enum":["open","decided","all"],"type":"string","default":"open","title":"State"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"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/cases/{case_id}/review/assign":{"post":{"summary":"Assign Review","operationId":"assign_review_v1_cases__case_id__review_assign_post","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Case Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssignBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/cases/{case_id}/review/decision":{"post":{"summary":"Decide Review","operationId":"decide_review_v1_cases__case_id__review_decision_post","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Case Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DecisionBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/speakers/enroll":{"post":{"tags":["speakers"],"summary":"Enroll Speaker","description":"Enroll a speaker for identity linkage scoring, under the authenticated tenant.\nRequires 2-5 audio samples for reliable baseline.\nEmbeddings stored in isolated per-tenant path only (ADR-004).","operationId":"enroll_speaker_v1_speakers_enroll_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_enroll_speaker_v1_speakers_enroll_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/speakers/{speaker_id}/status":{"get":{"tags":["speakers"],"summary":"Speaker Status","description":"Check enrollment status for a speaker under the authenticated tenant.","operationId":"speaker_status_v1_speakers__speaker_id__status_get","parameters":[{"name":"speaker_id","in":"path","required":true,"schema":{"type":"string","title":"Speaker Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/speakers/{speaker_id}":{"delete":{"tags":["speakers"],"summary":"Delete Speaker","description":"Remove speaker enrollment — right to erasure — for the authenticated tenant.\nFully deletes the embedding file (no soft delete).","operationId":"delete_speaker_v1_speakers__speaker_id__delete","parameters":[{"name":"speaker_id","in":"path","required":true,"schema":{"type":"string","title":"Speaker Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/.well-known/blackwater-signing-keys.json":{"get":{"summary":"Signing Keys","operationId":"signing_keys__well_known_blackwater_signing_keys_json_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/public/verify":{"post":{"summary":"Public Verify","description":"Is this decision record genuine, unaltered, and issued by Blackwater? Unauthenticated.\n\nSTATELESS (D6): no database is read. Its signature check is the one an auditor runs offline\n(docs/ENTERPRISE_API.md, \"Offline\", steps 1 to 3):\n  1. sha256 of the SUPPLIED `bundle_json` bytes (never re-serialised: any other JSON encoder\n     changes the bytes and the hash);\n  2. each supplied signature checked by shared_utils.signing.verify_signature against the\n     PUBLISHED key for its kid (/.well-known/blackwater-signing-keys.json). A compromised key\n     fails (D14); a retired key still verifies; a kid that is not published fails.\nIts checks of the body below (a repeated key, a field the export never carries, a copy that\ndisagrees with bundle_json, the superseded advisory) are offline steps 4 to 6, so an offline\ncheck that stops at the signature can pass a file this endpoint refuses.\nIt holds no tenant data, and no answer follows any tenant's settings (_superseded never asks the\nvideo gate's internal-testing allowlist), so it can leak none; a record we never issued simply has\nno valid signature. Until a signing key is provisioned the key set is empty, so no record has a\nsignature to send and none can verify. There is no per-record withdrawal yet (TODOS.md).\n\nBody: the `data` object of GET /v1/verify/{case_id}/export as it came back, or just its\n`bundle_json`, `bundle_hash` (optional) and `signatures` fields. The export also carries unsigned\ncopies of what bundle_json seals (SIGNED_COPIES: the parsed `bundle`, risk_state, reliance_tier and\nothers). A reviewer may read those instead of the record, so each copy sent must equal the\nrecord's own value, or the answer is fields_disagree, never valid; a copy left out is fine. Every\nanswer shows the decision bundle_json itself states (`attested`) and says that only bundle_json is\ncovered by a signature. A record that shows it is a video record the export serves with the\nsuperseded advisory answers with that advisory too (`superseded`), worked out from the record, and\na `superseded` sent must be exactly an advisory the export has served, beside a record it can have\nserved one beside (WORKED_OUT). A field the export never carries is a 422\n(UNKNOWN_FIELD), as is a signatures[] entry (its kid and signature included), signing_status or\nsealed_at in a form the export never gives it, so every field of the body has the export's form,\nand the answer repeats back no kid that is not published. A key repeated in one\nJSON object, in the body or in bundle_json, is a 422: Python keeps the last copy and many readers\nthe first.\nEvery response is in the standard envelope (ADR-005).","operationId":"public_verify_v1_public_verify_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/app/{full_path}":{"get":{"summary":"Consumer App Spa","description":"SPA fallback: serve index.html for all /app/* routes.","operationId":"consumer_app_spa_app__full_path__get","parameters":[{"name":"full_path","in":"path","required":true,"schema":{"type":"string","title":"Full Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/health":{"get":{"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/calibration/run":{"post":{"summary":"Run Calibration","description":"Run the calibration pipeline for a use_case and return the evaluation report.\n\nOps/admin endpoint — it runs against the system tenant (not a per-tenant op),\nso it authenticates with the shared GATE_KEY secret, the same scheme as\n/v1/calibration/apply-gate. Set GATE_KEY to a strong value in production; the\nin-source default exists only for local dev.","operationId":"run_calibration_v1_calibration_run_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/calibration/apply-gate":{"post":{"summary":"Apply Governance Gate","description":"Insert a pre-validated CalibrationReport record.\nUsed by the gate scripts to apply Phase 2/3 calibration results\ndirectly to the database, bypassing the pipeline (which requires\nsufficient production outcomes to compute status).","operationId":"apply_governance_gate_v1_calibration_apply_gate_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"AdjudicationCreateRequest":{"properties":{"outcome_id":{"type":"string","title":"Outcome Id"},"label":{"type":"string","title":"Label"},"label_confidence":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Label Confidence"},"adjudicator_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Adjudicator Id"},"fraud_typology":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fraud Typology"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["outcome_id","label","label_confidence"],"title":"AdjudicationCreateRequest","description":"Payload from the feedback screen.\n\nFields:\n    outcome_id:       UUID of the Outcome row being labelled.\n    label:            One of the 6 taxonomy labels (TRUE_POSITIVE, etc.).\n                      The UI maps plain-language selections to these via\n                      LABEL_MAP before sending.\n    label_confidence: Float [0.6, 1.0]. Minimum 0.6 per adjudication_writer.py.\n    adjudicator_id:   DEPRECATED + IGNORED (T4). The adjudicator is the VERIFIED user from the\n                      JWT (ctx.user_id), never a client-supplied id — otherwise a client could\n                      attribute a label to any analyst and the audit trail would be worthless.\n    fraud_typology:   Optional structured fraud category (job_offer, romance, …).\n    notes:            Optional free-text annotation."},"AssignBody":{"properties":{"assignee_name":{"type":"string","maxLength":200,"minLength":1,"title":"Assignee Name"},"notes":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Notes"}},"type":"object","required":["assignee_name"],"title":"AssignBody"},"Body_create_case_v1_cases_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"},"use_case":{"type":"string","title":"Use Case"},"pipeline_mode":{"type":"string","title":"Pipeline Mode","default":"ASYNC"},"preferred_locale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preferred Locale"}},"type":"object","required":["file","use_case"],"title":"Body_create_case_v1_cases_post"},"Body_enroll_speaker_v1_speakers_enroll_post":{"properties":{"speaker_id":{"type":"string","title":"Speaker Id"},"use_case":{"type":"string","title":"Use Case"},"audio_samples":{"items":{"type":"string","format":"binary"},"type":"array","title":"Audio Samples"}},"type":"object","required":["speaker_id","use_case","audio_samples"],"title":"Body_enroll_speaker_v1_speakers_enroll_post"},"Body_upload_case_v1_cases_upload_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"},"use_case":{"type":"string","title":"Use Case"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"preferred_locale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preferred Locale"},"capture_language_hint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Capture Language Hint"}},"type":"object","required":["file","use_case"],"title":"Body_upload_case_v1_cases_upload_post"},"Body_verify_batch_v1_verify_batch_post":{"properties":{"use_case":{"type":"string","title":"Use Case"},"modality":{"type":"string","title":"Modality"},"files":{"items":{"type":"string","format":"binary"},"type":"array","title":"Files"}},"type":"object","required":["use_case","modality","files"],"title":"Body_verify_batch_v1_verify_batch_post"},"Body_verify_v1_verify_post":{"properties":{"use_case":{"type":"string","title":"Use Case"},"modality":{"type":"string","title":"Modality"},"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["use_case","modality","file"],"title":"Body_verify_v1_verify_post"},"ChallengeCompletionRequest":{"properties":{"action_key":{"type":"string","title":"Action Key","default":"completed"},"completed":{"type":"boolean","title":"Completed","default":true},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","title":"ChallengeCompletionRequest"},"ChangePasswordRequest":{"properties":{"current_password":{"type":"string","title":"Current Password"},"new_password":{"type":"string","title":"New Password"}},"type":"object","required":["current_password","new_password"],"title":"ChangePasswordRequest"},"ConsumerAuthRequest":{"properties":{"phone_number":{"type":"string","title":"Phone Number"}},"type":"object","required":["phone_number"],"title":"ConsumerAuthRequest"},"CreateKeyRequest":{"properties":{"name":{"type":"string","title":"Name"},"rate_limit_per_hour":{"type":"integer","maximum":5000.0,"minimum":1.0,"title":"Rate Limit Per Hour","default":1000}},"type":"object","required":["name"],"title":"CreateKeyRequest"},"CreateWebhookRequest":{"properties":{"url":{"type":"string","title":"Url"},"events":{"items":{"type":"string"},"type":"array","title":"Events","default":["*"]},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"payload_detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payload Detail"}},"type":"object","required":["url"],"title":"CreateWebhookRequest"},"DecisionBody":{"properties":{"decision":{"type":"string","enum":["approved","rejected"],"title":"Decision"},"reason":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Reason"},"notes":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Notes"}},"type":"object","required":["decision"],"title":"DecisionBody"},"FinaliseStreamRequest":{"properties":{"session_id":{"type":"string","title":"Session Id"}},"type":"object","required":["session_id"],"title":"FinaliseStreamRequest"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"LiveStartRequest":{"properties":{"channel_type":{"type":"string","title":"Channel Type"},"use_case":{"type":"string","title":"Use Case"},"device_context":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Device Context"},"preferred_locale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preferred Locale"},"ui_locale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ui Locale"},"capture_language_hint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Capture Language Hint"}},"type":"object","required":["channel_type","use_case"],"title":"LiveStartRequest"},"RefreshRequest":{"properties":{"jwt":{"type":"string","title":"Jwt"}},"type":"object","required":["jwt"],"title":"RefreshRequest"},"RegisterRequest":{"properties":{"email":{"type":"string","title":"Email"},"password":{"type":"string","title":"Password"},"org_name":{"type":"string","title":"Org Name"},"package":{"type":"string","title":"Package","default":"dev_api"},"region":{"type":"string","title":"Region","default":"us"}},"type":"object","required":["email","password","org_name"],"title":"RegisterRequest"},"StreamChunkRequest":{"properties":{"session_id":{"type":"string","title":"Session Id"},"chunk_index":{"type":"integer","title":"Chunk Index"},"audio_b64":{"type":"string","title":"Audio B64"},"sample_rate":{"type":"integer","title":"Sample Rate","default":16000},"use_case":{"type":"string","title":"Use Case","default":"consumer_suspicious_call"},"is_final":{"type":"boolean","title":"Is Final","default":false}},"type":"object","required":["session_id","chunk_index","audio_b64"],"title":"StreamChunkRequest"},"TextCaseRequest":{"properties":{"text_content":{"type":"string","title":"Text Content"},"use_case":{"type":"string","title":"Use Case"},"pipeline_mode":{"type":"string","title":"Pipeline Mode","default":"ASYNC"},"preferred_locale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preferred Locale"}},"type":"object","required":["text_content","use_case"],"title":"TextCaseRequest"},"UpdateWebhookRequest":{"properties":{"active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Active"},"payload_detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payload Detail"}},"type":"object","title":"UpdateWebhookRequest"},"UrlCaseRequest":{"properties":{"source_url":{"type":"string","title":"Source Url"},"use_case":{"type":"string","title":"Use Case"},"pipeline_mode":{"type":"string","title":"Pipeline Mode","default":"ASYNC"},"preferred_locale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preferred Locale"}},"type":"object","required":["source_url","use_case"],"title":"UrlCaseRequest"},"UserLoginRequest":{"properties":{"email":{"type":"string","title":"Email"},"password":{"type":"string","title":"Password"},"tenant_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant Id"}},"type":"object","required":["email","password"],"title":"UserLoginRequest"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"VerifyRequest":{"properties":{"phone_number":{"type":"string","title":"Phone Number"},"otp":{"type":"string","title":"Otp"}},"type":"object","required":["phone_number","otp"],"title":"VerifyRequest"}}}}