{"openapi":"3.1.0","info":{"title":"The Closing Code AI - Unified API","description":"Reporting, ingestion, exports, and analysis for sales call intelligence","version":"1.0.0"},"paths":{"/health":{"get":{"tags":["ops"],"summary":"Health","description":"Liveness probe — returns service status and DB connectivity.","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/ready":{"get":{"tags":["ops"],"summary":"Ready","description":"Readiness probe — fails if DB is unreachable.","operationId":"ready_ready_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/metrics":{"get":{"tags":["ops"],"summary":"Metrics","description":"In-memory request metrics — counts, error rates, latency percentiles.","operationId":"metrics_metrics_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/health/db":{"get":{"tags":["ops"],"summary":"Db Health","description":"Deep DB health — pool stats + pg_stat_activity + headroom vs Supabase 200 limit.\n\nReturns:\n    - Pool metrics (size, idle, busy, avg_wait from the local asyncpg pool)\n    - pg_stat_activity breakdown: active, idle, idle_in_transaction\n    - Headroom: how many more connections the app can open before hitting limit\n    - Supabase limit: hard cap of 200 connections","operationId":"db_health_health_db_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/client-auth/login":{"post":{"tags":["Client Portal Auth"],"summary":"Request Login","description":"Request a magic link sent via email.","operationId":"request_login_v1_client_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/client-auth/signup":{"post":{"tags":["Client Portal Auth"],"summary":"Request Signup","description":"Creates a new client tenant and an owner user, then sends a magic link.","operationId":"request_signup_v1_client_auth_signup_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignupRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/client-auth/verify":{"post":{"tags":["Client Portal Auth"],"summary":"Verify Login","description":"Verify the magic link token and create an HttpOnly session cookie.","operationId":"verify_login_v1_client_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/client-auth/logout":{"post":{"tags":["Client Portal Auth"],"summary":"Logout","description":"Destroy the current session and clear the HttpOnly cookie.","operationId":"logout_v1_client_auth_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/client-auth/me":{"get":{"tags":["Client Portal Auth"],"summary":"Get Me","description":"Return the authenticated user profile based on the cookie.","operationId":"get_me_v1_client_auth_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientUser"}}}}}}},"/v1/client-portal/market-profile":{"get":{"tags":["Client Portal"],"summary":"Get Market Profile","operationId":"get_market_profile_v1_client_portal_market_profile_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"put":{"tags":["Client Portal"],"summary":"Save Market Profile","operationId":"save_market_profile_v1_client_portal_market_profile_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketProfileRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/client-portal/lead-context-profile":{"get":{"tags":["Client Portal"],"summary":"Get Lead Context Profile","operationId":"get_lead_context_profile_v1_client_portal_lead_context_profile_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"put":{"tags":["Client Portal"],"summary":"Save Lead Context Profile","operationId":"save_lead_context_profile_v1_client_portal_lead_context_profile_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadContextProfileRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/client-portal/account-cockpit":{"get":{"tags":["Client Portal"],"summary":"Get Account Cockpit","operationId":"get_account_cockpit_v1_client_portal_account_cockpit_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/client-portal/plan-usage":{"get":{"tags":["Client Portal"],"summary":"Get Plan Usage","description":"Monthly ingest usage and Whop upgrade links.","operationId":"get_plan_usage_v1_client_portal_plan_usage_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/client-portal/onboarding-activation":{"get":{"tags":["Client Portal"],"summary":"Get Onboarding Activation","operationId":"get_onboarding_activation_v1_client_portal_onboarding_activation_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/client-portal/operational-trust":{"get":{"tags":["Client Portal"],"summary":"Get Operational Trust","operationId":"get_operational_trust_v1_client_portal_operational_trust_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/client-portal/customer-value":{"get":{"tags":["Client Portal"],"summary":"Get Customer Value","operationId":"get_customer_value_v1_client_portal_customer_value_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/client-portal/customer-roi-digest":{"get":{"tags":["Client Portal"],"summary":"Get Customer Roi Digest","operationId":"get_customer_roi_digest_v1_client_portal_customer_roi_digest_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/client-portal/customer-roi-review-pack":{"get":{"tags":["Client Portal"],"summary":"Get Customer Roi Review Pack","operationId":"get_customer_roi_review_pack_v1_client_portal_customer_roi_review_pack_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/client-portal/daily-brief":{"get":{"tags":["Client Portal"],"summary":"Get Daily Brief","operationId":"get_daily_brief_v1_client_portal_daily_brief_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/client-portal/concierge/chat":{"post":{"tags":["Client Portal"],"summary":"Concierge Chat","operationId":"concierge_chat_v1_client_portal_concierge_chat_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConciergeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/client-portal/calls/{call_id}/outcome-truth":{"get":{"tags":["Client Portal"],"summary":"Get Call Outcome Truth","operationId":"get_call_outcome_truth_v1_client_portal_calls__call_id__outcome_truth_get","parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"string","title":"Call Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Client Portal"],"summary":"Save Call Outcome Truth","operationId":"save_call_outcome_truth_v1_client_portal_calls__call_id__outcome_truth_put","parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"string","title":"Call Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutcomeTruthRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/client-portal/outcome-truth-backlog":{"get":{"tags":["Client Portal"],"summary":"Get Outcome Truth Backlog","operationId":"get_outcome_truth_backlog_v1_client_portal_outcome_truth_backlog_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":25,"title":"Limit"}},{"name":"include_test_data","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Test Data"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/client-portal/recall/status":{"get":{"tags":["Client Portal"],"summary":"Get Recall Status","operationId":"get_recall_status_v1_client_portal_recall_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/client-portal/recall/activate":{"post":{"tags":["Client Portal"],"summary":"Activate Recall","operationId":"activate_recall_v1_client_portal_recall_activate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivateRecallRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/client-portal/recall/deactivate":{"post":{"tags":["Client Portal"],"summary":"Deactivate Recall","operationId":"deactivate_recall_v1_client_portal_recall_deactivate_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/client-portal/closers":{"get":{"tags":["Client Portal"],"summary":"List Closers","operationId":"list_closers_v1_client_portal_closers_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"tags":["Client Portal"],"summary":"Add Closer","operationId":"add_closer_v1_client_portal_closers_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddCloserRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/client-portal/closers/{closer_id}":{"patch":{"tags":["Client Portal"],"summary":"Update Closer Status","operationId":"update_closer_status_v1_client_portal_closers__closer_id__patch","parameters":[{"name":"closer_id","in":"path","required":true,"schema":{"type":"string","title":"Closer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCloserStatusRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/client-portal/closers/{closer_id}/send-verification":{"post":{"tags":["Client Portal"],"summary":"Resend Verification","operationId":"resend_verification_v1_client_portal_closers__closer_id__send_verification_post","parameters":[{"name":"closer_id","in":"path","required":true,"schema":{"type":"string","title":"Closer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/client-portal/closers/verify-email":{"post":{"tags":["Client Portal"],"summary":"Verify Email","description":"Public endpoint to verify email from magic link token.","operationId":"verify_email_v1_client_portal_closers_verify_email_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyEmailRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/client-portal/events/recent":{"get":{"tags":["Client Portal"],"summary":"Get Recent Events","description":"Get recent sales call webhook events.","operationId":"get_recent_events_v1_client_portal_events_recent_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/client-portal/events":{"get":{"tags":["Client Portal"],"summary":"Get Filtered Events","description":"Get filtered sales call events.","operationId":"get_filtered_events_v1_client_portal_events_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","title":"Status"}},{"name":"closer_email","in":"query","required":false,"schema":{"type":"string","title":"Closer Email"}},{"name":"platform","in":"query","required":false,"schema":{"type":"string","title":"Platform"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/client-portal/health-kpis":{"get":{"tags":["Client Portal"],"summary":"Get Integration Health Kpis","description":"Get KPI metrics for integration health.","operationId":"get_integration_health_kpis_v1_client_portal_health_kpis_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/client-portal/audit-logs":{"get":{"tags":["Client Portal"],"summary":"Get Audit Logs","description":"Get internal audit logs (For support readiness).","operationId":"get_audit_logs_v1_client_portal_audit_logs_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/client-portal/closers/{closer_id}/integrations/google/start":{"post":{"tags":["Client Integrations"],"summary":"Start Google Calendar Connect","operationId":"start_google_calendar_connect_v1_client_portal_closers__closer_id__integrations_google_start_post","parameters":[{"name":"closer_id","in":"path","required":true,"schema":{"type":"string","title":"Closer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/client-portal/closers/{closer_id}/integrations/google":{"delete":{"tags":["Client Integrations"],"summary":"Disconnect Google Calendar","operationId":"disconnect_google_calendar_v1_client_portal_closers__closer_id__integrations_google_delete","parameters":[{"name":"closer_id","in":"path","required":true,"schema":{"type":"string","title":"Closer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/client-portal/closers/{closer_id}/integrations/zoom/start":{"post":{"tags":["Client Integrations"],"summary":"Start Zoom Connect","operationId":"start_zoom_connect_v1_client_portal_closers__closer_id__integrations_zoom_start_post","parameters":[{"name":"closer_id","in":"path","required":true,"schema":{"type":"string","title":"Closer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/client-portal/closers/{closer_id}/integrations/zoom":{"delete":{"tags":["Client Integrations"],"summary":"Disconnect Zoom","operationId":"disconnect_zoom_v1_client_portal_closers__closer_id__integrations_zoom_delete","parameters":[{"name":"closer_id","in":"path","required":true,"schema":{"type":"string","title":"Closer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/client-portal/integrations/google/callback":{"get":{"tags":["Client Integrations"],"summary":"Handle Google Callback","operationId":"handle_google_callback_v1_client_portal_integrations_google_callback_get","parameters":[{"name":"code","in":"query","required":true,"schema":{"type":"string","title":"Code"}},{"name":"state","in":"query","required":true,"schema":{"type":"string","title":"State"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/client-portal/integrations/zoom/callback":{"get":{"tags":["Client Integrations"],"summary":"Handle Zoom Callback","operationId":"handle_zoom_callback_v1_client_portal_integrations_zoom_callback_get","parameters":[{"name":"code","in":"query","required":true,"schema":{"type":"string","title":"Code"}},{"name":"state","in":"query","required":true,"schema":{"type":"string","title":"State"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/client-portal/integrations/ghl":{"get":{"tags":["Client Integrations"],"summary":"Get Ghl Integration","operationId":"get_ghl_integration_v1_client_portal_integrations_ghl_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"put":{"tags":["Client Integrations"],"summary":"Upsert Ghl Integration","operationId":"upsert_ghl_integration_v1_client_portal_integrations_ghl_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpsertGhlRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Client Integrations"],"summary":"Delete Ghl Integration","operationId":"delete_ghl_integration_v1_client_portal_integrations_ghl_delete","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/client-portal/integrations/llm":{"get":{"tags":["Client Integrations"],"summary":"Get Llm Integrations","operationId":"get_llm_integrations_v1_client_portal_integrations_llm_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"put":{"tags":["Client Integrations"],"summary":"Upsert Llm Integration","operationId":"upsert_llm_integration_v1_client_portal_integrations_llm_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpsertLlmRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/client-portal/integrations/llm/{provider}":{"delete":{"tags":["Client Integrations"],"summary":"Delete Llm Integration","operationId":"delete_llm_integration_v1_client_portal_integrations_llm__provider__delete","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/client-portal/crm/providers":{"get":{"tags":["Client Integrations"],"summary":"List Crm Providers","description":"List all available CRM providers and their required fields.","operationId":"list_crm_providers_v1_client_portal_crm_providers_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/client-portal/crm/status":{"get":{"tags":["Client Integrations"],"summary":"Get Crm Status","description":"Get current CRM integration status for this tenant.","operationId":"get_crm_status_v1_client_portal_crm_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/client-portal/crm/connect":{"post":{"tags":["Client Integrations"],"summary":"Connect Crm","description":"Connect a CRM integration for this tenant.","operationId":"connect_crm_v1_client_portal_crm_connect_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectCrmRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/client-portal/crm/disconnect/{provider}":{"delete":{"tags":["Client Integrations"],"summary":"Disconnect Crm","description":"Disconnect a CRM integration.","operationId":"disconnect_crm_v1_client_portal_crm_disconnect__provider__delete","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/coaching/status":{"get":{"tags":["Coaching"],"summary":"Get Coaching Status","operationId":"get_coaching_status_v1_coaching_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/coaching/welcome/complete":{"post":{"tags":["Coaching"],"summary":"Complete Welcome","operationId":"complete_welcome_v1_coaching_welcome_complete_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/coaching/oath/complete":{"post":{"tags":["Coaching"],"summary":"Complete Oath","operationId":"complete_oath_v1_coaching_oath_complete_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OathCompleteRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/coaching/dashboard":{"get":{"tags":["Coaching"],"summary":"Get Dashboard","operationId":"get_dashboard_v1_coaching_dashboard_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/coaching/manual-audits":{"get":{"tags":["Coaching"],"summary":"List Manual Audits","operationId":"list_manual_audits_v1_coaching_manual_audits_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"tags":["Coaching"],"summary":"Create Manual Audit","operationId":"create_manual_audit_v1_coaching_manual_audits_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManualAuditRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/coaching/manual-audits/{audit_id}":{"get":{"tags":["Coaching"],"summary":"Get Manual Audit","operationId":"get_manual_audit_v1_coaching_manual_audits__audit_id__get","parameters":[{"name":"audit_id","in":"path","required":true,"schema":{"type":"string","title":"Audit Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/coaching/wiki/sections":{"get":{"tags":["Coaching"],"summary":"Get Wiki Sections","operationId":"get_wiki_sections_v1_coaching_wiki_sections_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/coaching/wiki/articles/{slug}":{"get":{"tags":["Coaching"],"summary":"Get Wiki Article","operationId":"get_wiki_article_v1_coaching_wiki_articles__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/coaching/wiki/articles/progress":{"post":{"tags":["Coaching"],"summary":"Update Article Progress","operationId":"update_article_progress_v1_coaching_wiki_articles_progress_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticleProgressRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/companion/telegram/webhook":{"post":{"tags":["Companion"],"summary":"Telegram Webhook","operationId":"telegram_webhook_v1_companion_telegram_webhook_post","parameters":[{"name":"X-Telegram-Bot-Api-Secret-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Telegram-Bot-Api-Secret-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/companion/whatsapp/webhook":{"get":{"tags":["Companion"],"summary":"Whatsapp Webhook Verify","operationId":"whatsapp_webhook_verify_v1_companion_whatsapp_webhook_get","parameters":[{"name":"hub.mode","in":"query","required":false,"schema":{"type":"string","default":"","title":"Hub.Mode"}},{"name":"hub.verify_token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Hub.Verify Token"}},{"name":"hub.challenge","in":"query","required":false,"schema":{"type":"string","default":"","title":"Hub.Challenge"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Companion"],"summary":"Whatsapp Webhook","operationId":"whatsapp_webhook_v1_companion_whatsapp_webhook_post","parameters":[{"name":"X-Hub-Signature-256","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Hub-Signature-256"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/internal/admin/companion/status":{"get":{"tags":["Admin Companion"],"summary":"Companion Status","operationId":"companion_status_v1_internal_admin_companion_status_get","parameters":[{"name":"client_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Id"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/internal/admin/companion/connect-code":{"post":{"tags":["Admin Companion"],"summary":"Create Connect Code","operationId":"create_connect_code_v1_internal_admin_companion_connect_code_post","parameters":[{"name":"client_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Id"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanionConnectCodeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/internal/admin/companion/push":{"post":{"tags":["Admin Companion"],"summary":"Push Report","operationId":"push_report_v1_internal_admin_companion_push_post","parameters":[{"name":"client_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Id"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanionPushRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/internal/admin/status":{"get":{"tags":["Admin"],"summary":"Admin Status","operationId":"admin_status_v1_internal_admin_status_get","parameters":[{"name":"client_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Id"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/internal/admin/recall-alerts":{"get":{"tags":["Admin"],"summary":"Recall Alerts","operationId":"recall_alerts_v1_internal_admin_recall_alerts_get","parameters":[{"name":"client_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/internal/admin/clients/{client_id}/plan-usage":{"get":{"tags":["Admin"],"summary":"Admin Client Plan Usage","operationId":"admin_client_plan_usage_v1_internal_admin_clients__client_id__plan_usage_get","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/internal/admin/clients/{client_id}/usage-bonus":{"patch":{"tags":["Admin"],"summary":"Admin Client Usage Bonus","description":"Comp extra monthly ingests (admin override).","operationId":"admin_client_usage_bonus_v1_internal_admin_clients__client_id__usage_bonus_patch","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsageBonusRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/internal/admin/pipeline-health":{"get":{"tags":["Admin"],"summary":"Pipeline Health","description":"Platform call_jobs health — use operational_7d for alerts, not all-time raw.","operationId":"pipeline_health_v1_internal_admin_pipeline_health_get","parameters":[{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/internal/admin/doctor":{"get":{"tags":["Admin"],"summary":"Doctor Center","operationId":"doctor_center_v1_internal_admin_doctor_get","parameters":[{"name":"client_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Id"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/internal/admin/settings/runtime-flags":{"get":{"tags":["Admin"],"summary":"Get Runtime Flags Settings","operationId":"get_runtime_flags_settings_v1_internal_admin_settings_runtime_flags_get","parameters":[{"name":"client_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Id"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/internal/admin/settings/runtime-flags/{client_id}":{"put":{"tags":["Admin"],"summary":"Update Runtime Flags Settings","operationId":"update_runtime_flags_settings_v1_internal_admin_settings_runtime_flags__client_id__put","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/internal/admin/market-intel/profiles":{"get":{"tags":["Admin"],"summary":"Market Profiles","operationId":"market_profiles_v1_internal_admin_market_intel_profiles_get","parameters":[{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/internal/admin/market-intel/profiles/{client_id}":{"get":{"tags":["Admin"],"summary":"Market Profile","operationId":"market_profile_v1_internal_admin_market_intel_profiles__client_id__get","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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"}}}}}},"put":{"tags":["Admin"],"summary":"Save Market Profile","operationId":"save_market_profile_v1_internal_admin_market_intel_profiles__client_id__put","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Admin"],"summary":"Remove Market Profile","operationId":"remove_market_profile_v1_internal_admin_market_intel_profiles__client_id__delete","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/internal/admin/market-intel/overview":{"get":{"tags":["Admin"],"summary":"Market Intel Overview","operationId":"market_intel_overview_v1_internal_admin_market_intel_overview_get","parameters":[{"name":"period_type","in":"query","required":false,"schema":{"type":"string","default":"week","title":"Period Type"}},{"name":"period_start","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Period Start"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/internal/admin/market-intel/industries":{"get":{"tags":["Admin"],"summary":"Market Intel Industries","operationId":"market_intel_industries_v1_internal_admin_market_intel_industries_get","parameters":[{"name":"period_type","in":"query","required":false,"schema":{"type":"string","default":"week","title":"Period Type"}},{"name":"period_start","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Period Start"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/internal/admin/market-intel/industries/{industry_label}/icps/{icp_label}":{"get":{"tags":["Admin"],"summary":"Market Intel Segment","operationId":"market_intel_segment_v1_internal_admin_market_intel_industries__industry_label__icps__icp_label__get","parameters":[{"name":"industry_label","in":"path","required":true,"schema":{"type":"string","title":"Industry Label"}},{"name":"icp_label","in":"path","required":true,"schema":{"type":"string","title":"Icp Label"}},{"name":"period_type","in":"query","required":false,"schema":{"type":"string","default":"week","title":"Period Type"}},{"name":"period_start","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Period Start"}},{"name":"periods","in":"query","required":false,"schema":{"type":"integer","maximum":26,"minimum":1,"default":8,"title":"Periods"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/internal/admin/market-intel/lead-sources":{"get":{"tags":["Admin"],"summary":"Market Intel Lead Sources","operationId":"market_intel_lead_sources_v1_internal_admin_market_intel_lead_sources_get","parameters":[{"name":"period_type","in":"query","required":false,"schema":{"type":"string","default":"week","title":"Period Type"}},{"name":"period_start","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Period Start"}},{"name":"periods","in":"query","required":false,"schema":{"type":"integer","maximum":26,"minimum":1,"default":8,"title":"Periods"}},{"name":"include_test_data","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Test Data"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/internal/admin/market-intel/outcome-truth":{"get":{"tags":["Admin"],"summary":"Market Intel Outcome Truth","operationId":"market_intel_outcome_truth_v1_internal_admin_market_intel_outcome_truth_get","parameters":[{"name":"period_type","in":"query","required":false,"schema":{"type":"string","default":"week","title":"Period Type"}},{"name":"period_start","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Period Start"}},{"name":"periods","in":"query","required":false,"schema":{"type":"integer","maximum":26,"minimum":1,"default":8,"title":"Periods"}},{"name":"include_test_data","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Test Data"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/internal/admin/market-intel/segment-truth-gap":{"get":{"tags":["Admin"],"summary":"Market Intel Segment Truth Gap","operationId":"market_intel_segment_truth_gap_v1_internal_admin_market_intel_segment_truth_gap_get","parameters":[{"name":"period_type","in":"query","required":false,"schema":{"type":"string","default":"week","title":"Period Type"}},{"name":"period_start","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Period Start"}},{"name":"periods","in":"query","required":false,"schema":{"type":"integer","maximum":26,"minimum":1,"default":8,"title":"Periods"}},{"name":"include_test_data","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Test Data"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/internal/admin/market-intel/data-hygiene":{"get":{"tags":["Admin"],"summary":"Market Intel Data Hygiene","operationId":"market_intel_data_hygiene_v1_internal_admin_market_intel_data_hygiene_get","parameters":[{"name":"period_type","in":"query","required":false,"schema":{"type":"string","default":"week","title":"Period Type"}},{"name":"period_start","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Period Start"}},{"name":"periods","in":"query","required":false,"schema":{"type":"integer","maximum":26,"minimum":1,"default":8,"title":"Periods"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/internal/admin/market-intel/truth-adoption":{"get":{"tags":["Admin"],"summary":"Market Intel Truth Adoption","operationId":"market_intel_truth_adoption_v1_internal_admin_market_intel_truth_adoption_get","parameters":[{"name":"period_type","in":"query","required":false,"schema":{"type":"string","default":"week","title":"Period Type"}},{"name":"period_start","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Period Start"}},{"name":"periods","in":"query","required":false,"schema":{"type":"integer","maximum":26,"minimum":1,"default":8,"title":"Periods"}},{"name":"include_test_data","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Test Data"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/internal/admin/market-intel/clients/{client_id}/renewal-expansion-radar":{"get":{"tags":["Admin"],"summary":"Market Intel Customer Renewal Expansion Radar","operationId":"market_intel_customer_renewal_expansion_radar_v1_internal_admin_market_intel_clients__client_id__renewal_expansion_radar_get","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/internal/admin/market-intel/truth-backlog-priority":{"get":{"tags":["Admin"],"summary":"Market Intel Truth Backlog Priority","operationId":"market_intel_truth_backlog_priority_v1_internal_admin_market_intel_truth_backlog_priority_get","parameters":[{"name":"period_type","in":"query","required":false,"schema":{"type":"string","default":"week","title":"Period Type"}},{"name":"period_start","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Period Start"}},{"name":"periods","in":"query","required":false,"schema":{"type":"integer","maximum":26,"minimum":1,"default":8,"title":"Periods"}},{"name":"include_test_data","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Test Data"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/internal/admin/market-intel/calls/{call_id}/hygiene":{"put":{"tags":["Admin"],"summary":"Save Call Hygiene","operationId":"save_call_hygiene_v1_internal_admin_market_intel_calls__call_id__hygiene_put","parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"string","title":"Call Id"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/internal/admin/market-intel/rebuild":{"post":{"tags":["Admin"],"summary":"Rebuild Market Intel Route","operationId":"rebuild_market_intel_route_v1_internal_admin_market_intel_rebuild_post","parameters":[{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspace/session":{"post":{"tags":["Workspace"],"summary":"Create Workspace Session","operationId":"create_workspace_session_v1_workspace_session_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/workspace/state":{"get":{"tags":["Workspace"],"summary":"Get Workspace State","operationId":"get_workspace_state_v1_workspace_state_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/workspace/search":{"get":{"tags":["Workspace"],"summary":"Search Workspace Context","operationId":"search_workspace_context_v1_workspace_search_get","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":2,"title":"Q"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspace/chat":{"post":{"tags":["Workspace"],"summary":"Chat With Workspace","operationId":"chat_with_workspace_v1_workspace_chat_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceChatRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspace/actions/run":{"post":{"tags":["Workspace"],"summary":"Run Workspace Action","operationId":"run_workspace_action_v1_workspace_actions_run_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceActionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspace/channel/send":{"post":{"tags":["Workspace"],"summary":"Send Workspace Channel","operationId":"send_workspace_channel_v1_workspace_channel_send_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceChannelRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspace/meeting-prep-brief":{"get":{"tags":["Workspace"],"summary":"Public Meeting Prep Brief","description":"Get meeting prep brief for dashboard. May return null if Hermes unavailable.","operationId":"public_meeting_prep_brief_v1_workspace_meeting_prep_brief_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/workspace/deal-intelligence":{"get":{"tags":["Workspace"],"summary":"Public Deal Intelligence","description":"Get deal intelligence for dashboard. May return null if Hermes unavailable.","operationId":"public_deal_intelligence_v1_workspace_deal_intelligence_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/workspace/team-health":{"get":{"tags":["Workspace"],"summary":"Public Team Health","description":"Get team health for dashboard. May return null if Hermes unavailable.","operationId":"public_team_health_v1_workspace_team_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/workspace/calls/{call_id}":{"get":{"tags":["Workspace"],"summary":"Public Call Details","description":"Get full call analysis details including QuantumCore scores and profiling.","operationId":"public_call_details_v1_workspace_calls__call_id__get","parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"string","title":"Call Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/internal/hermes/account-overview":{"get":{"tags":["Internal Hermes"],"summary":"Internal Account Overview","operationId":"internal_account_overview_v1_internal_hermes_account_overview_get","parameters":[{"name":"client_id","in":"query","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/internal/hermes/onboarding-status":{"get":{"tags":["Internal Hermes"],"summary":"Internal Onboarding Status","operationId":"internal_onboarding_status_v1_internal_hermes_onboarding_status_get","parameters":[{"name":"client_id","in":"query","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/internal/hermes/operational-trust":{"get":{"tags":["Internal Hermes"],"summary":"Internal Operational Trust","operationId":"internal_operational_trust_v1_internal_hermes_operational_trust_get","parameters":[{"name":"client_id","in":"query","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/internal/hermes/call-queue":{"get":{"tags":["Internal Hermes"],"summary":"Internal Call Queue","operationId":"internal_call_queue_v1_internal_hermes_call_queue_get","parameters":[{"name":"client_id","in":"query","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":10,"title":"Limit"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/internal/hermes/calls/{call_id}":{"get":{"tags":["Internal Hermes"],"summary":"Internal Call Details","operationId":"internal_call_details_v1_internal_hermes_calls__call_id__get","parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"string","title":"Call Id"}},{"name":"client_id","in":"query","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/internal/hermes/review-pack":{"get":{"tags":["Internal Hermes"],"summary":"Internal Review Pack","operationId":"internal_review_pack_v1_internal_hermes_review_pack_get","parameters":[{"name":"client_id","in":"query","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/internal/hermes/roi-digest":{"get":{"tags":["Internal Hermes"],"summary":"Internal Roi Digest","operationId":"internal_roi_digest_v1_internal_hermes_roi_digest_get","parameters":[{"name":"client_id","in":"query","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/internal/hermes/team-health":{"get":{"tags":["Internal Hermes"],"summary":"Internal Team Health","operationId":"internal_team_health_v1_internal_hermes_team_health_get","parameters":[{"name":"client_id","in":"query","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/internal/hermes/meeting-prep-brief":{"get":{"tags":["Internal Hermes"],"summary":"Internal Meeting Prep Brief","operationId":"internal_meeting_prep_brief_v1_internal_hermes_meeting_prep_brief_get","parameters":[{"name":"client_id","in":"query","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"focus","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Focus"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/internal/hermes/deal-rescue-brief":{"get":{"tags":["Internal Hermes"],"summary":"Internal Deal Rescue Brief","operationId":"internal_deal_rescue_brief_v1_internal_hermes_deal_rescue_brief_get","parameters":[{"name":"client_id","in":"query","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"focus","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Focus"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/internal/hermes/deal-intelligence":{"get":{"tags":["Internal Hermes"],"summary":"Internal Deal Intelligence","operationId":"internal_deal_intelligence_v1_internal_hermes_deal_intelligence_get","parameters":[{"name":"client_id","in":"query","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/internal/hermes/manager-coaching-pack":{"get":{"tags":["Internal Hermes"],"summary":"Internal Manager Coaching Pack","operationId":"internal_manager_coaching_pack_v1_internal_hermes_manager_coaching_pack_get","parameters":[{"name":"client_id","in":"query","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/internal/hermes/follow-up-brief":{"get":{"tags":["Internal Hermes"],"summary":"Internal Follow Up Brief","operationId":"internal_follow_up_brief_v1_internal_hermes_follow_up_brief_get","parameters":[{"name":"client_id","in":"query","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/internal/hermes/daily-brief":{"get":{"tags":["Internal Hermes"],"summary":"Internal Daily Brief","operationId":"internal_daily_brief_v1_internal_hermes_daily_brief_get","parameters":[{"name":"client_id","in":"query","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"focus","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Focus"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/internal/hermes/methodology/articles/{slug}":{"get":{"tags":["Internal Hermes"],"summary":"Internal Methodology Article","operationId":"internal_methodology_article_v1_internal_hermes_methodology_articles__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/internal/hermes/send-digest":{"post":{"tags":["Internal Hermes"],"summary":"Internal Send Digest","operationId":"internal_send_digest_v1_internal_hermes_send_digest_post","parameters":[{"name":"client_id","in":"query","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceChannelRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/internal/hermes/methodology/closing-cuantico":{"get":{"tags":["Internal Hermes"],"summary":"Internal Get Closing Cuantico","description":"Return Closing Cuántico methodology (private). Requires valid API key.","operationId":"internal_get_closing_cuantico_v1_internal_hermes_methodology_closing_cuantico_get","parameters":[{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/internal/hermes/methodology/scoring-rubric":{"get":{"tags":["Internal Hermes"],"summary":"Internal Get Scoring Rubric","description":"Return QC_4.0 scoring rubric (private). Requires valid API key.","operationId":"internal_get_scoring_rubric_v1_internal_hermes_methodology_scoring_rubric_get","parameters":[{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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"}}}}}}},"/webhooks/whop":{"post":{"tags":["webhooks"],"summary":"Whop Webhook","description":"Receive and process Whop membership webhooks.\n\nValidates HMAC signature if WHOP_WEBHOOK_SECRET is configured.\nStores customer data in SQLite (concurrent-safe).","operationId":"whop_webhook_webhooks_whop_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/whop/free-tier/start":{"post":{"tags":["whop"],"summary":"Free Tier Start","description":"Activate free tier directly — bypasses Whop checkout UI.\n\n1. Validates email is not already active.\n2. Generates API key + provisions tenant.\n3. Creates ephemeral onboarding token (single-use, 15-min TTL).\n4. Returns onboarding URL + api_key for dashboard email gate.","operationId":"free_tier_start_whop_free_tier_start_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FreeTierRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/whop/onboarding-session/{token}":{"get":{"tags":["whop"],"summary":"Get Onboarding Session","description":"Retrieve onboarding session by ephemeral token.\n\nSingle-use. Token expires after 15 minutes.\nReturns full API key + metadata for onboarding page.","operationId":"get_onboarding_session_whop_onboarding_session__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"}}}}}}},"/whop/post-purchase/register-email":{"post":{"tags":["whop"],"summary":"Register Purchase Email","description":"Email gate — capture checkout email for funnel before activation completes.","operationId":"register_purchase_email_whop_post_purchase_register_email_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseEmailRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/whop/post-purchase/resend-link":{"post":{"tags":["whop"],"summary":"Resend Post Purchase Link","description":"Resend welcome email with fresh magic link (rate-limited).","operationId":"resend_post_purchase_link_whop_post_purchase_resend_link_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseEmailRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/whop/post-purchase/claim":{"get":{"tags":["whop"],"summary":"Claim Post Purchase Token","description":"Mint onboarding token after Whop checkout — requires claim_ref from register-email.\n\nPoll-friendly: returns ready=false until activation completes or claim_ref invalid.","operationId":"claim_post_purchase_token_whop_post_purchase_claim_get","parameters":[{"name":"email","in":"query","required":true,"schema":{"type":"string","title":"Email"}},{"name":"claim_ref","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Claim Ref"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/whop/free-tier/status/{email}":{"get":{"tags":["whop"],"summary":"Free Tier Status","description":"Limited public check — no PII (no user_id/client_id).","operationId":"free_tier_status_whop_free_tier_status__email__get","parameters":[{"name":"email","in":"path","required":true,"schema":{"type":"string","title":"Email"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/whop/teams/checkout-intent":{"post":{"tags":["whop"],"summary":"Teams Checkout Intent","description":"Register Teams prospect + mint Whop checkout URL with correlation metadata.","operationId":"teams_checkout_intent_whop_teams_checkout_intent_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamsCheckoutIntentRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/whop/teams/plan-info":{"get":{"tags":["whop"],"summary":"Teams Plan Info","description":"Public metadata for Teams Whop checkout ($500 one-time audit).","operationId":"teams_plan_info_whop_teams_plan_info_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/whop/plan-info":{"get":{"tags":["whop"],"summary":"Plan Info","description":"Return public plan metadata for the frontend.","operationId":"plan_info_whop_plan_info_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/webhooks/resend/inbound":{"post":{"tags":["webhooks"],"summary":"Resend Inbound Webhook","description":"Receive Resend email.received events and forward to ops inbox.","operationId":"resend_inbound_webhook_webhooks_resend_inbound_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/clients/{client_id}/analysis/latest":{"get":{"summary":"Latest Analysis","operationId":"latest_analysis_v1_clients__client_id__analysis_latest_get","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/me/analysis/latest":{"get":{"summary":"Latest Analysis For Session","operationId":"latest_analysis_for_session_v1_me_analysis_latest_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/clients/{client_id}/analysis":{"get":{"summary":"Analysis Range","operationId":"analysis_range_v1_clients__client_id__analysis_get","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"from","in":"query","required":true,"schema":{"type":"string","title":"From"}},{"name":"to","in":"query","required":true,"schema":{"type":"string","title":"To"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/me/analysis":{"get":{"summary":"Analysis Range For Session","operationId":"analysis_range_for_session_v1_me_analysis_get","parameters":[{"name":"from","in":"query","required":true,"schema":{"type":"string","title":"From"}},{"name":"to","in":"query","required":true,"schema":{"type":"string","title":"To"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/clients/{client_id}/closers/{closer_id}/analysis":{"get":{"summary":"Closer Analysis","operationId":"closer_analysis_v1_clients__client_id__closers__closer_id__analysis_get","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"closer_id","in":"path","required":true,"schema":{"type":"string","title":"Closer Id"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/me/closers/{closer_id}/analysis":{"get":{"summary":"Closer Analysis For Session","operationId":"closer_analysis_for_session_v1_me_closers__closer_id__analysis_get","parameters":[{"name":"closer_id","in":"path","required":true,"schema":{"type":"string","title":"Closer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/clients/{client_id}/weekly-summary":{"get":{"summary":"Weekly Summary","operationId":"weekly_summary_v1_clients__client_id__weekly_summary_get","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"week_start","in":"query","required":true,"schema":{"type":"string","title":"Week Start"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/me/weekly-summary":{"get":{"summary":"Weekly Summary For Session","operationId":"weekly_summary_for_session_v1_me_weekly_summary_get","parameters":[{"name":"week_start","in":"query","required":true,"schema":{"type":"string","title":"Week Start"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/calls/{call_id}/analysis":{"get":{"summary":"Get Call Analysis By Id","description":"Get full QC_4.0 analysis for a specific call by ID.\n\nReturns the complete analysis run with scores, verdict, and structured data.\nAccepts X-API-Key (client or internal) or session cookie.","operationId":"get_call_analysis_by_id_v1_calls__call_id__analysis_get","parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"string","title":"Call Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/clients/{client_id}/weekly-digest":{"get":{"summary":"Weekly Digest Json","operationId":"weekly_digest_json_v1_clients__client_id__weekly_digest_get","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"week_start","in":"query","required":true,"schema":{"type":"string","title":"Week Start"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/me/weekly-digest":{"get":{"summary":"Weekly Digest Json For Session","operationId":"weekly_digest_json_for_session_v1_me_weekly_digest_get","parameters":[{"name":"week_start","in":"query","required":true,"schema":{"type":"string","title":"Week Start"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/clients/{client_id}/weekly-digest.md":{"get":{"summary":"Weekly Digest Md","operationId":"weekly_digest_md_v1_clients__client_id__weekly_digest_md_get","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"week_start","in":"query","required":true,"schema":{"type":"string","title":"Week Start"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/me/weekly-digest.md":{"get":{"summary":"Weekly Digest Md For Session","operationId":"weekly_digest_md_for_session_v1_me_weekly_digest_md_get","parameters":[{"name":"week_start","in":"query","required":true,"schema":{"type":"string","title":"Week Start"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/clients/{client_id}/weekly-digest.csv":{"get":{"summary":"Weekly Digest Csv","operationId":"weekly_digest_csv_v1_clients__client_id__weekly_digest_csv_get","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"week_start","in":"query","required":true,"schema":{"type":"string","title":"Week Start"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/me/weekly-digest.csv":{"get":{"summary":"Weekly Digest Csv For Session","operationId":"weekly_digest_csv_for_session_v1_me_weekly_digest_csv_get","parameters":[{"name":"week_start","in":"query","required":true,"schema":{"type":"string","title":"Week Start"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/clients/{client_id}/exports/weekly-summary.csv":{"get":{"summary":"Export Weekly","operationId":"export_weekly_v1_clients__client_id__exports_weekly_summary_csv_get","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"week_start","in":"query","required":true,"schema":{"type":"string","title":"Week Start"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/me/exports/weekly-summary.csv":{"get":{"summary":"Export Weekly For Session","operationId":"export_weekly_for_session_v1_me_exports_weekly_summary_csv_get","parameters":[{"name":"week_start","in":"query","required":true,"schema":{"type":"string","title":"Week Start"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/clients/{client_id}/closers/{closer_id}/exports/analysis.csv":{"get":{"summary":"Export Closer","operationId":"export_closer_v1_clients__client_id__closers__closer_id__exports_analysis_csv_get","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"closer_id","in":"path","required":true,"schema":{"type":"string","title":"Closer Id"}},{"name":"from","in":"query","required":true,"schema":{"type":"string","title":"From"}},{"name":"to","in":"query","required":true,"schema":{"type":"string","title":"To"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/me/closers/{closer_id}/exports/analysis.csv":{"get":{"summary":"Export Closer For Session","operationId":"export_closer_for_session_v1_me_closers__closer_id__exports_analysis_csv_get","parameters":[{"name":"closer_id","in":"path","required":true,"schema":{"type":"string","title":"Closer Id"}},{"name":"from","in":"query","required":true,"schema":{"type":"string","title":"From"}},{"name":"to","in":"query","required":true,"schema":{"type":"string","title":"To"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/clients/{client_id}/exports/calls.csv":{"get":{"summary":"Export Calls","operationId":"export_calls_v1_clients__client_id__exports_calls_csv_get","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"from","in":"query","required":true,"schema":{"type":"string","title":"From"}},{"name":"to","in":"query","required":true,"schema":{"type":"string","title":"To"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/me/exports/calls.csv":{"get":{"summary":"Export Calls For Session","operationId":"export_calls_for_session_v1_me_exports_calls_csv_get","parameters":[{"name":"from","in":"query","required":true,"schema":{"type":"string","title":"From"}},{"name":"to","in":"query","required":true,"schema":{"type":"string","title":"To"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/internal/hermes/closer-integrations":{"get":{"tags":["Internal Hermes"],"summary":"Get Closer Integrations","description":"Return every closer for *client_id* with their integration statuses.","operationId":"get_closer_integrations_v1_internal_hermes_closer_integrations_get","parameters":[{"name":"client_id","in":"query","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/internal/hermes/closer-calendar-events":{"get":{"tags":["Internal Hermes"],"summary":"Get Closer Calendar Events","description":"Fetch upcoming Google Calendar events for a closer.","operationId":"get_closer_calendar_events_v1_internal_hermes_closer_calendar_events_get","parameters":[{"name":"client_id","in":"query","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"closer_id","in":"query","required":true,"schema":{"type":"string","title":"Closer Id"}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":90,"minimum":1,"default":7,"title":"Days"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/internal/hermes/closer-meetings":{"get":{"tags":["Internal Hermes"],"summary":"Get Closer Zoom Meetings","description":"Fetch upcoming scheduled Zoom meetings for a closer.","operationId":"get_closer_zoom_meetings_v1_internal_hermes_closer_meetings_get","parameters":[{"name":"client_id","in":"query","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"closer_id","in":"query","required":true,"schema":{"type":"string","title":"Closer Id"}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":90,"minimum":1,"default":7,"title":"Days"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/internal/hermes/cold-deals/{client_id}":{"get":{"tags":["Internal Hermes"],"summary":"Get Cold Deals","description":"Return deals with no activity in the last N days.\n\nDesigned for Hermes to call at 7:30 AM as part of a daily brief cron:\n'These deals are going cold — take action today.'","operationId":"get_cold_deals_v1_internal_hermes_cold_deals__client_id__get","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"stale_days","in":"query","required":false,"schema":{"type":"integer","default":3,"title":"Stale Days"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/internal/hermes/cold-deals/all":{"get":{"tags":["Internal Hermes"],"summary":"Get Cold Deals All","description":"Batch cold-deal alerts for ALL active clients.\n\nDesigned for the 7:30 AM cron on the VPS:\n  30 7 * * * curl \".../v1/internal/hermes/cold-deals/all?stale_days=3\" \\\n      -H \"X-Internal-Key: <API_KEY_INTERNAL>\"","operationId":"get_cold_deals_all_v1_internal_hermes_cold_deals_all_get","parameters":[{"name":"stale_days","in":"query","required":false,"schema":{"type":"integer","default":3,"title":"Stale Days"}},{"name":"limit_per_client","in":"query","required":false,"schema":{"type":"integer","default":10,"title":"Limit Per Client"}},{"name":"X-Internal-Key","in":"header","required":true,"schema":{"type":"string","title":"X-Internal-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/internal/hermes/shadow-playbook/{client_id}":{"get":{"tags":["Internal Hermes"],"summary":"Get Shadow Playbook","description":"Top-performer pattern mining for coaching and Live Coach injection.\n\nReturns the winning suggestion types and phases from the top 10% of closers\nso Hermes can surface them as coaching insights.","operationId":"get_shadow_playbook_v1_internal_hermes_shadow_playbook__client_id__get","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/internal/hermes/shadow-playbook/all/digest":{"get":{"tags":["Internal Hermes"],"summary":"Get Shadow Playbook All","description":"Weekly Shadow Playbook digest for ALL active clients.\n\nDesigned for the Monday 9:00 AM cron on the VPS:\n  0 9 * * 1 curl \".../v1/internal/hermes/shadow-playbook/all/digest\" \\\n      -H \"X-Internal-Key: <API_KEY_INTERNAL>\"","operationId":"get_shadow_playbook_all_v1_internal_hermes_shadow_playbook_all_digest_get","parameters":[{"name":"X-Internal-Key","in":"header","required":true,"schema":{"type":"string","title":"X-Internal-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/internal/hermes/precall-warmup":{"post":{"tags":["Internal Hermes"],"summary":"Create Precall Warmup","description":"Create a Pre-Call Warmup session and return a direct voice link.\n\nCalled by the Hermes `start_precall_warmup` tool. Returns a deep link\nto practice.html that opens the warmup immediately — no form needed.","operationId":"create_precall_warmup_v1_internal_hermes_precall_warmup_post","parameters":[{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/internal/hermes/learning-loop/sync":{"post":{"tags":["Internal Hermes"],"summary":"Sync Learning Loop","description":"Mine won calls and return a Hermes-compatible skill fragment.\n\nThe nightly cron on the HOST (not Docker) writes this output to\n/root/.hermes/skills/learned/<client_id>_patterns.md\n\nIf client_id is omitted, aggregates patterns across all clients.","operationId":"sync_learning_loop_v1_internal_hermes_learning_loop_sync_post","parameters":[{"name":"client_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Id"}},{"name":"X-Internal-Key","in":"header","required":true,"schema":{"type":"string","title":"X-Internal-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/external/me":{"get":{"summary":"External Me","description":"Validate API key and return client capabilities.","operationId":"external_me_v1_external_me_get","parameters":[{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExternalMeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/external/me/language":{"patch":{"summary":"External Update Language","description":"Persist UI language preference for emails and script generation defaults.","operationId":"external_update_language_v1_external_me_language_patch","parameters":[{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExternalLanguageUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/external/ingest-audio":{"post":{"summary":"External Ingest Audio","description":"Upload audio and queue full analysis for HCE integration.","operationId":"external_ingest_audio_v1_external_ingest_audio_post","parameters":[{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","title":"X-Api-Key"}},{"name":"X-HCE-Local-Session-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Hce-Local-Session-Id"}},{"name":"X-HCE-Local-Gate-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Hce-Local-Gate-Token"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_external_ingest_audio_v1_external_ingest_audio_post"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExternalIngestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/external/plan-usage":{"get":{"summary":"External Plan Usage","description":"Monthly ingest + script finalize usage and Whop upgrade links (HCE v1.2).","operationId":"external_plan_usage_v1_external_plan_usage_get","parameters":[{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExternalPlanUsageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/external/calls":{"get":{"summary":"External Calls List","description":"Paginated call history for the authenticated partner client.","operationId":"external_calls_list_v1_external_calls_get","parameters":[{"name":"source_type","in":"query","required":false,"schema":{"type":"string","default":"hce","title":"Source Type"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","default":"","title":"Cursor"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","default":"","title":"Status"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExternalCallListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/external/calls/{call_id}":{"get":{"summary":"External Call Detail","description":"Call detail for history re-open (includes analysis fields when available).","operationId":"external_call_detail_v1_external_calls__call_id__get","parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"string","title":"Call Id"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExternalCallDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/external/analysis/{call_id}":{"get":{"summary":"External Analysis","description":"Poll analysis job status for a given call.","operationId":"external_analysis_v1_external_analysis__call_id__get","parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"string","title":"Call Id"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExternalAnalysisResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/external/director-brief/{call_id}":{"get":{"summary":"External Director Brief","description":"HCE Director digest (post-QC). Generated once per call; tenant-scoped by API key.","operationId":"external_director_brief_v1_external_director_brief__call_id__get","parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"string","title":"Call Id"}},{"name":"refresh","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Refresh"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExternalDirectorBriefResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/external/reports/{call_id}/html":{"head":{"summary":"External Report Html","description":"Return premium HTML report (skill v2) for embed.","operationId":"external_report_html_v1_external_reports__call_id__html_head","parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"string","title":"Call Id"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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"}}}}}},"get":{"summary":"External Report Html","description":"Return premium HTML report (skill v2) for embed.","operationId":"external_report_html_v1_external_reports__call_id__html_get","parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"string","title":"Call Id"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/pilot/auth/accept":{"post":{"tags":["Teams Pilot Workspace"],"summary":"Pilot Accept Invite","description":"Exchange one-time invite for a session token. Invite cannot be reused.","operationId":"pilot_accept_invite_v1_pilot_auth_accept_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcceptInvitePayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/pilot/auth/request-access":{"post":{"tags":["Teams Pilot Workspace"],"summary":"Pilot Request Access","description":"Self-serve: resend pilot invite to owner email (post-payment recovery).","operationId":"pilot_request_access_v1_pilot_auth_request_access_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestAccessPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/pilot/session":{"get":{"tags":["Teams Pilot Workspace"],"summary":"Pilot Session","operationId":"pilot_session_v1_pilot_session_get","parameters":[{"name":"X-Pilot-Session","in":"header","required":true,"schema":{"type":"string","title":"X-Pilot-Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/pilot/calls":{"get":{"tags":["Teams Pilot Workspace"],"summary":"Pilot List Calls","operationId":"pilot_list_calls_v1_pilot_calls_get","parameters":[{"name":"X-Pilot-Session","in":"header","required":true,"schema":{"type":"string","title":"X-Pilot-Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Teams Pilot Workspace"],"summary":"Pilot Upload Call","operationId":"pilot_upload_call_v1_pilot_calls_post","parameters":[{"name":"X-Pilot-Session","in":"header","required":true,"schema":{"type":"string","title":"X-Pilot-Session"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_pilot_upload_call_v1_pilot_calls_post"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/pilot/calls/{pilot_call_id}/html":{"get":{"tags":["Teams Pilot Workspace"],"summary":"Pilot Call Html","operationId":"pilot_call_html_v1_pilot_calls__pilot_call_id__html_get","parameters":[{"name":"pilot_call_id","in":"path","required":true,"schema":{"type":"string","title":"Pilot Call Id"}},{"name":"X-Pilot-Session","in":"header","required":true,"schema":{"type":"string","title":"X-Pilot-Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/pilot/calls/{pilot_call_id}/pdf":{"get":{"tags":["Teams Pilot Workspace"],"summary":"Pilot Call Pdf","operationId":"pilot_call_pdf_v1_pilot_calls__pilot_call_id__pdf_get","parameters":[{"name":"pilot_call_id","in":"path","required":true,"schema":{"type":"string","title":"Pilot Call Id"}},{"name":"X-Pilot-Session","in":"header","required":true,"schema":{"type":"string","title":"X-Pilot-Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/pilot/summary":{"get":{"tags":["Teams Pilot Workspace"],"summary":"Pilot Summary","operationId":"pilot_summary_v1_pilot_summary_get","parameters":[{"name":"X-Pilot-Session","in":"header","required":true,"schema":{"type":"string","title":"X-Pilot-Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/pilot/summary/published":{"get":{"tags":["Teams Pilot Workspace"],"summary":"Pilot Summary Published","operationId":"pilot_summary_published_v1_pilot_summary_published_get","parameters":[{"name":"X-Pilot-Session","in":"header","required":true,"schema":{"type":"string","title":"X-Pilot-Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/pilot/summary/published/pdf":{"get":{"tags":["Teams Pilot Workspace"],"summary":"Pilot Summary Published Pdf","operationId":"pilot_summary_published_pdf_v1_pilot_summary_published_pdf_get","parameters":[{"name":"X-Pilot-Session","in":"header","required":true,"schema":{"type":"string","title":"X-Pilot-Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/pilot/finish":{"post":{"tags":["Teams Pilot Workspace"],"summary":"Pilot Finish Uploads","description":"Mark uploads complete and generate Team Executive Report from uploaded calls.","operationId":"pilot_finish_uploads_v1_pilot_finish_post","parameters":[{"name":"X-Pilot-Session","in":"header","required":true,"schema":{"type":"string","title":"X-Pilot-Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/pilot/internal/call-analysis-complete":{"post":{"tags":["Teams Pilot Workspace"],"summary":"Pilot Internal Call Complete","operationId":"pilot_internal_call_complete_v1_pilot_internal_call_analysis_complete_post","parameters":[{"name":"X-Internal-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallAnalysisCompletePayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/pilot/admin/orgs":{"post":{"tags":["Teams Pilot Admin"],"summary":"Admin Create Org","operationId":"admin_create_org_v1_pilot_admin_orgs_post","parameters":[{"name":"X-Internal-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateOrgPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/pilot/admin/invites":{"post":{"tags":["Teams Pilot Admin"],"summary":"Admin Invite","operationId":"admin_invite_v1_pilot_admin_invites_post","parameters":[{"name":"X-Internal-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitePayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/pilot/admin/members/revoke":{"post":{"tags":["Teams Pilot Admin"],"summary":"Admin Revoke Member","operationId":"admin_revoke_member_v1_pilot_admin_members_revoke_post","parameters":[{"name":"X-Internal-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevokePayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/pilot/admin/pilots":{"get":{"tags":["Teams Pilot Admin"],"summary":"Admin List Pilots","operationId":"admin_list_pilots_v1_pilot_admin_pilots_get","parameters":[{"name":"X-Internal-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/pilot/admin/pilots/{pilot_id}/calls":{"get":{"tags":["Teams Pilot Admin"],"summary":"Admin List Pilot Calls","operationId":"admin_list_pilot_calls_v1_pilot_admin_pilots__pilot_id__calls_get","parameters":[{"name":"pilot_id","in":"path","required":true,"schema":{"type":"string","title":"Pilot Id"}},{"name":"X-Internal-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/pilot/admin/summaries/{pilot_id}":{"get":{"tags":["Teams Pilot Admin"],"summary":"Admin Get Summary","operationId":"admin_get_summary_v1_pilot_admin_summaries__pilot_id__get","parameters":[{"name":"pilot_id","in":"path","required":true,"schema":{"type":"string","title":"Pilot Id"}},{"name":"X-Internal-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/pilot/admin/summaries/{pilot_id}/preview":{"get":{"tags":["Teams Pilot Admin"],"summary":"Admin Preview Summary","operationId":"admin_preview_summary_v1_pilot_admin_summaries__pilot_id__preview_get","parameters":[{"name":"pilot_id","in":"path","required":true,"schema":{"type":"string","title":"Pilot Id"}},{"name":"X-Internal-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/pilot/admin/calls/{pilot_call_id}":{"patch":{"tags":["Teams Pilot Admin"],"summary":"Admin Patch Call","operationId":"admin_patch_call_v1_pilot_admin_calls__pilot_call_id__patch","parameters":[{"name":"pilot_call_id","in":"path","required":true,"schema":{"type":"string","title":"Pilot Call Id"}},{"name":"X-Internal-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallStatusPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/pilot/admin/summaries/{pilot_id}/generate":{"post":{"tags":["Teams Pilot Admin"],"summary":"Admin Generate Summary","operationId":"admin_generate_summary_v1_pilot_admin_summaries__pilot_id__generate_post","parameters":[{"name":"pilot_id","in":"path","required":true,"schema":{"type":"string","title":"Pilot Id"}},{"name":"X-Internal-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/pilot/admin/summaries/{pilot_id}/publish":{"post":{"tags":["Teams Pilot Admin"],"summary":"Admin Publish Summary","operationId":"admin_publish_summary_v1_pilot_admin_summaries__pilot_id__publish_post","parameters":[{"name":"pilot_id","in":"path","required":true,"schema":{"type":"string","title":"Pilot Id"}},{"name":"X-Internal-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/pilot/admin/reminders":{"post":{"tags":["Teams Pilot Admin"],"summary":"Admin Send Reminder","operationId":"admin_send_reminder_v1_pilot_admin_reminders_post","parameters":[{"name":"X-Internal-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReminderPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/external/live-radar/config":{"get":{"tags":["External Live Radar"],"summary":"Live Radar Config","description":"Public Live Radar setup metadata (no secrets).","operationId":"live_radar_config_v1_external_live_radar_config_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/external/live-radar/session/start":{"post":{"tags":["External Live Radar"],"summary":"Live Radar Session Start","description":"Start a Live Radar session (alerts + hybrid delivery) for the API key holder.","operationId":"live_radar_session_start_v1_external_live_radar_session_start_post","parameters":[{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveRadarStartRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/external/scripts/active":{"get":{"tags":["External Scripts"],"summary":"External Script Active","operationId":"external_script_active_v1_external_scripts_active_get","parameters":[{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/external/scripts/active/document.html":{"head":{"tags":["External Scripts"],"summary":"External Script Active Document Html","description":"Read-only branded HTML document for the active script (no quota).","operationId":"external_script_active_document_html_v1_external_scripts_active_document_html_head","parameters":[{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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"}}}}}},"get":{"tags":["External Scripts"],"summary":"External Script Active Document Html","description":"Read-only branded HTML document for the active script (no quota).","operationId":"external_script_active_document_html_v1_external_scripts_active_document_html_get","parameters":[{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/external/scripts/active/document.pdf":{"get":{"tags":["External Scripts"],"summary":"External Script Active Document Pdf","description":"Read-only PDF export for the active script (no quota).","operationId":"external_script_active_document_pdf_v1_external_scripts_active_document_pdf_get","parameters":[{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/external/scripts/sessions/{session_id}/document.html":{"head":{"tags":["External Scripts"],"summary":"External Script Session Document Html","description":"Wizard preview document for a draft session (no quota).","operationId":"external_script_session_document_html_v1_external_scripts_sessions__session_id__document_html_head","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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"}}}}}},"get":{"tags":["External Scripts"],"summary":"External Script Session Document Html","description":"Wizard preview document for a draft session (no quota).","operationId":"external_script_session_document_html_v1_external_scripts_sessions__session_id__document_html_get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/external/scripts/history":{"get":{"tags":["External Scripts"],"summary":"External Script History","operationId":"external_script_history_v1_external_scripts_history_get","parameters":[{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/external/scripts/sessions":{"post":{"tags":["External Scripts"],"summary":"External Script Start Session","description":"Start script session. Body parsed via request.json() (slowapi + Request breaks Body()).","operationId":"external_script_start_session_v1_external_scripts_sessions_post","parameters":[{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/external/scripts/sessions/{session_id}":{"get":{"tags":["External Scripts"],"summary":"External Script Get Session","operationId":"external_script_get_session_v1_external_scripts_sessions__session_id__get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/external/scripts/sessions/{session_id}/generate":{"post":{"tags":["External Scripts"],"summary":"External Script Generate","operationId":"external_script_generate_v1_external_scripts_sessions__session_id__generate_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/external/scripts/sessions/{session_id}/finalize":{"post":{"tags":["External Scripts"],"summary":"External Script Finalize","operationId":"external_script_finalize_v1_external_scripts_sessions__session_id__finalize_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/external/objection-gym/usage":{"get":{"tags":["External Objection Gym"],"summary":"External Gym Usage","operationId":"external_gym_usage_v1_external_objection_gym_usage_get","parameters":[{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/external/objection-gym/profile":{"get":{"tags":["External Objection Gym"],"summary":"External Gym Profile Get","operationId":"external_gym_profile_get_v1_external_objection_gym_profile_get","parameters":[{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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"}}}}}},"put":{"tags":["External Objection Gym"],"summary":"External Gym Profile Put","operationId":"external_gym_profile_put_v1_external_objection_gym_profile_put","parameters":[{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/external/objection-gym/sessions":{"get":{"tags":["External Objection Gym"],"summary":"External Gym List Sessions","operationId":"external_gym_list_sessions_v1_external_objection_gym_sessions_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":20,"title":"Limit"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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"}}}}}},"post":{"tags":["External Objection Gym"],"summary":"External Gym Start Session","operationId":"external_gym_start_session_v1_external_objection_gym_sessions_post","parameters":[{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/external/objection-gym/sessions/{session_id}":{"get":{"tags":["External Objection Gym"],"summary":"External Gym Get Session","operationId":"external_gym_get_session_v1_external_objection_gym_sessions__session_id__get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/external/objection-gym/sessions/{session_id}/coach-turn":{"post":{"tags":["External Objection Gym"],"summary":"External Gym Coach Turn","operationId":"external_gym_coach_turn_v1_external_objection_gym_sessions__session_id__coach_turn_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/external/objection-gym/sessions/{session_id}/message":{"post":{"tags":["External Objection Gym"],"summary":"External Gym Coach Turn","operationId":"external_gym_coach_turn_v1_external_objection_gym_sessions__session_id__message_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/external/objection-gym/sessions/{session_id}/complete":{"post":{"tags":["External Objection Gym"],"summary":"External Gym Complete","operationId":"external_gym_complete_v1_external_objection_gym_sessions__session_id__complete_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/external/objection-gym/sessions/{session_id}/abandon":{"post":{"tags":["External Objection Gym"],"summary":"External Gym Abandon","operationId":"external_gym_abandon_v1_external_objection_gym_sessions__session_id__abandon_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/external/objection-gym/library":{"get":{"tags":["External Objection Gym"],"summary":"External Gym Library List","operationId":"external_gym_library_list_v1_external_objection_gym_library_get","parameters":[{"name":"canon_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Canon Type"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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"}}}}}},"post":{"tags":["External Objection Gym"],"summary":"External Gym Library Upsert","operationId":"external_gym_library_upsert_v1_external_objection_gym_library_post","parameters":[{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/external/objection-gym/library/{item_id}":{"delete":{"tags":["External Objection Gym"],"summary":"External Gym Library Delete","operationId":"external_gym_library_delete_v1_external_objection_gym_library__item_id__delete","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/external/objection-gym/crosswalk/{call_id}":{"get":{"tags":["External Objection Gym"],"summary":"External Gym Crosswalk","operationId":"external_gym_crosswalk_v1_external_objection_gym_crosswalk__call_id__get","parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"string","title":"Call Id"}},{"name":"refresh","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Refresh"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/external/objection-gym/sessions/{session_id}/state":{"patch":{"tags":["External Objection Gym"],"summary":"External Gym Patch State","operationId":"external_gym_patch_state_v1_external_objection_gym_sessions__session_id__state_patch","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/calls/ingest":{"post":{"summary":"Ingest Call","description":"Ingest a call from a generic/manual source.\n\nAccepts internal API key (admin/worker) or client API key.\nClient keys require tier 'closer-engine' (100/mo) or 'closing-code-pro' (unlimited).","operationId":"ingest_call_v1_calls_ingest_post","parameters":[{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IngestCallRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IngestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/webhooks/ghl-recording-completed":{"post":{"summary":"Ghl Webhook","description":"Ingest a call from GoHighLevel webhook. (Internal key only)","operationId":"ghl_webhook_v1_webhooks_ghl_recording_completed_post","parameters":[{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GHLRecordingPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IngestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/webhooks/zoom-recording-completed":{"post":{"summary":"Zoom Webhook","description":"Ingest a call from Zoom webhook. (Internal key only)","operationId":"zoom_webhook_v1_webhooks_zoom_recording_completed_post","parameters":[{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZoomRecordingPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IngestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/calls/request-upload":{"post":{"summary":"Request Upload","description":"Request a temporary upload slot for large audio files (>20MB).\n\nReturns a presigned-like URL valid for 15 minutes.\nUpload via PUT /v1/uploads/{token}/{filename}.","operationId":"request_upload_v1_calls_request_upload_post","parameters":[{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestUploadRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestUploadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/uploads/{token}/{filename}":{"put":{"summary":"Upload File","description":"Receive uploaded file bytes directly and auto-ingest on success.\n\nAccepts raw bytes (curl -T) or multipart form-data.\nReturns call_id and job_id after successful ingest.","operationId":"upload_file_v1_uploads__token___filename__put","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"name":"filename","in":"path","required":true,"schema":{"type":"string","title":"Filename"}},{"name":"X-Upload-Secret","in":"header","required":true,"schema":{"type":"string","title":"X-Upload-Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Serve File","description":"Serve uploaded file (temporary, expires with slot). Requires slot secret.","operationId":"serve_file_v1_uploads__token___filename__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"name":"filename","in":"path","required":true,"schema":{"type":"string","title":"Filename"}},{"name":"X-Upload-Secret","in":"header","required":true,"schema":{"type":"string","title":"X-Upload-Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/uploads/{token}/{filename}/form":{"post":{"summary":"Upload File Form","description":"Upload via HTML form (POST multipart) — Safari iOS compatible.","operationId":"upload_file_form_v1_uploads__token___filename__form_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"name":"filename","in":"path","required":true,"schema":{"type":"string","title":"Filename"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_file_form_v1_uploads__token___filename__form_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/uploads/{token}/status":{"get":{"summary":"Upload Status","description":"Check upload slot status and remaining TTL.","operationId":"upload_status_v1_uploads__token__status_get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/calls/ingest-uploaded/{token}/{filename}":{"post":{"summary":"Ingest Uploaded","description":"Ingest a call from a completed upload slot.\n\nVerifies the upload is ready, builds the public audio_url,\nand creates the call + job for analysis.","operationId":"ingest_uploaded_v1_calls_ingest_uploaded__token___filename__post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"name":"filename","in":"path","required":true,"schema":{"type":"string","title":"Filename"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IngestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/live-coach/suggestions":{"post":{"tags":["Live Coach"],"summary":"Get Live Suggestions","description":"Get live coaching suggestions for a call.\n\nAccepts X-API-Key (client or internal) or session cookie.\nClient API keys are scoped to their own client_id.","operationId":"get_live_suggestions_v1_live_coach_suggestions_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveCoachRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/live-coach/session/start":{"post":{"tags":["Live Coach"],"summary":"Start Live Session","description":"Start a live coaching session for a call.\n\nIf bridge_id is provided, the WCC pre-call briefing (profiles, expected\nobjections, recommended closing system) is automatically injected into\nthe coaching session from the bridge data.","operationId":"start_live_session_v1_live_coach_session_start_post","parameters":[{"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/StartSessionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/live-coach/session/chunk":{"post":{"tags":["Live Coach"],"summary":"Process Transcript Chunk","description":"Process a transcript chunk and return any suggestions.","operationId":"process_transcript_chunk_v1_live_coach_session_chunk_post","parameters":[{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TranscriptChunkRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/live-coach/session/end/{call_id}":{"post":{"tags":["Live Coach"],"summary":"End Live Session","description":"End a live coaching session.","operationId":"end_live_session_v1_live_coach_session_end__call_id__post","parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"string","title":"Call Id"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/live-coach/session/{call_id}":{"get":{"tags":["Live Coach"],"summary":"Get Session Status","description":"Get status of a live coaching session.","operationId":"get_session_status_v1_live_coach_session__call_id__get","parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"string","title":"Call Id"}},{"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/live-coach/sessions/active":{"get":{"tags":["Live Coach"],"summary":"List Active Sessions","description":"List all active coaching sessions.","operationId":"list_active_sessions_v1_live_coach_sessions_active_get","parameters":[{"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/live-coach/briefing":{"post":{"tags":["Live Coach"],"summary":"Get Pre Call Briefing","description":"Generate a pre-call briefing for a lead.\n\nIf lead_data is provided, uses it directly.\nOtherwise, queries Twenty CRM by email/phone.\n\nReturns a methodology-aware briefing with:\n- 3-axis profile (friction, decision, monetary)\n- Recommended closing system\n- Expected objections\n- Key phrases to use\n- Agent notes from WhatsApp qualification","operationId":"get_pre_call_briefing_v1_live_coach_briefing_post","parameters":[{"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/PreCallBriefingRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/live-coach/briefing/{call_id}":{"get":{"tags":["Live Coach"],"summary":"Get Briefing For Call","description":"Get pre-call briefing for a scheduled call.\n\nLooks up the call in recall_bots → resolves lead → queries CRM.","operationId":"get_briefing_for_call_v1_live_coach_briefing__call_id__get","parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"string","title":"Call Id"}},{"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/live-coach/outcome":{"post":{"tags":["Live Coach"],"summary":"Record Call Outcome","description":"Record the outcome of a call (won/lost/pending/no_show).\n\nTriggers coaching correlation analysis automatically.","operationId":"record_call_outcome_v1_live_coach_outcome_post","parameters":[{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordOutcomeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/live-coach/outcome/{call_id}":{"get":{"tags":["Live Coach"],"summary":"Get Call Outcome","description":"Get outcome and coaching analysis for a call.","operationId":"get_call_outcome_v1_live_coach_outcome__call_id__get","parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"string","title":"Call Id"}},{"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/live-coach/performance/{closer_id}":{"get":{"tags":["Live Coach"],"summary":"Get Closer Performance","description":"Get a closer's performance profile based on historical data.","operationId":"get_closer_performance_v1_live_coach_performance__closer_id__get","parameters":[{"name":"closer_id","in":"path","required":true,"schema":{"type":"string","title":"Closer Id"}},{"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/live-coach/script/{client_id}":{"get":{"tags":["Live Coach"],"summary":"Get Client Script","description":"Get the active script for a client. Optionally filter by business_type.","operationId":"get_client_script_v1_live_coach_script__client_id__get","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"business_type","in":"query","required":false,"schema":{"type":"string","default":"b2c","title":"Business Type"}},{"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/live-coach/script":{"post":{"tags":["Live Coach"],"summary":"Save Client Script","description":"Save or update a client's sales script.","operationId":"save_client_script_v1_live_coach_script_post","parameters":[{"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/SaveScriptRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/live-coach/script/variables":{"put":{"tags":["Live Coach"],"summary":"Update Script Variables","description":"Update variables on the active script.","operationId":"update_script_variables_v1_live_coach_script_variables_put","parameters":[{"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/UpdateVariablesRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/live-coach/script/mode":{"put":{"tags":["Live Coach"],"summary":"Update Script Mode","description":"Change the script mode (ganador/generado/adaptado).","operationId":"update_script_mode_v1_live_coach_script_mode_put","parameters":[{"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/UpdateModeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/live-coach/script/generate":{"post":{"tags":["Live Coach"],"summary":"Generate Sales Script","description":"Generate a sales script from client inputs and save it.\n\nFor 'generado' mode: builds from scratch using methodology.\nFor 'ganador' mode: personalizes the definitive QuantumCore script.\nFor 'adaptado' mode: restructures to methodology phases.\nAuto-saves to client_scripts table — ready for Live Coach immediately.","operationId":"generate_sales_script_v1_live_coach_script_generate_post","parameters":[{"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/GenerateScriptRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/live-coach/feedback/{client_id}":{"get":{"tags":["Live Coach"],"summary":"Get Feedback Ranking","description":"Get suggestion effectiveness ranking for a client.\n\nShows which coaching suggestion types correlate with won vs lost deals.\nSorted by impact_score (highest positive impact first).","operationId":"get_feedback_ranking_v1_live_coach_feedback__client_id__get","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}},{"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/live-coach/feedback/{client_id}/recommendations":{"get":{"tags":["Live Coach"],"summary":"Get Feedback Recommendations","description":"Get actionable coaching recommendations based on outcome data.","operationId":"get_feedback_recommendations_v1_live_coach_feedback__client_id__recommendations_get","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}},{"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/live-coach/feedback/{client_id}/refresh":{"post":{"tags":["Live Coach"],"summary":"Refresh Feedback","description":"Force recalculation of suggestion effectiveness from call history.","operationId":"refresh_feedback_v1_live_coach_feedback__client_id__refresh_post","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}},{"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/live-coach/practice/scenarios":{"get":{"tags":["Live Coach"],"summary":"List Practice Scenarios","description":"List available practice scenarios, optionally filtered.","operationId":"list_practice_scenarios_v1_live_coach_practice_scenarios_get","parameters":[{"name":"practice_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Practice Type"}},{"name":"difficulty","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Difficulty"}},{"name":"business_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Business Type"}},{"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/live-coach/practice/start":{"post":{"tags":["Live Coach"],"summary":"Start Practice Session","description":"Start a practice session. Returns first prospect line.","operationId":"start_practice_session_v1_live_coach_practice_start_post","parameters":[{"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/StartPracticeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/live-coach/practice/chunk":{"post":{"tags":["Live Coach"],"summary":"Process Practice Chunk","description":"Process a practice chunk. Closer's text goes through the real pipeline.\n\nIf speaker='closer', processes through LiveCoachEngine for suggestions.\nIf speaker='prospect', simulates the prospect response from scenario.\nReturns suggestions + next prospect line.","operationId":"process_practice_chunk_v1_live_coach_practice_chunk_post","parameters":[{"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/PracticeChunkRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/live-coach/practice/end/{session_id}":{"post":{"tags":["Live Coach"],"summary":"End Practice Session","description":"End a practice session and return the score.","operationId":"end_practice_session_v1_live_coach_practice_end__session_id__post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"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/live-coach/practice/session/{session_id}":{"get":{"tags":["Live Coach"],"summary":"Get Practice Session Status","description":"Get current status of a practice session.","operationId":"get_practice_session_status_v1_live_coach_practice_session__session_id__get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"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/live-coach/practice/simulated/profiles":{"get":{"tags":["Live Coach"],"summary":"List Simulated Buyer Profiles","description":"List DISC buyer profiles for LLM simulated practice.","operationId":"list_simulated_buyer_profiles_v1_live_coach_practice_simulated_profiles_get","parameters":[{"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/live-coach/practice/simulated/start":{"post":{"tags":["Live Coach"],"summary":"Start Simulated Practice","description":"Start LLM simulated buyer session + Live Coach engine context.","operationId":"start_simulated_practice_v1_live_coach_practice_simulated_start_post","parameters":[{"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/StartSimulatedPracticeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/live-coach/practice/simulated/turn":{"post":{"tags":["Live Coach"],"summary":"Simulated Practice Turn","description":"Process closer turn: buyer LLM response + live coaching suggestions.","operationId":"simulated_practice_turn_v1_live_coach_practice_simulated_turn_post","parameters":[{"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/SimulatedTurnRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/live-coach/practice/simulated/end":{"post":{"tags":["Live Coach"],"summary":"End Simulated Practice","description":"End simulated buyer session and return summary.","operationId":"end_simulated_practice_v1_live_coach_practice_simulated_end_post","parameters":[{"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/SimulatedEndRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/live-coach/adherence/{call_id}":{"get":{"tags":["Live Coach"],"summary":"Get Phase Adherence","description":"Get post-call phase adherence report for a completed call.\n\nAnalyzes how well the closer executed each phase of the script,\nwhich phases were skipped, and generates improvement recommendations.","operationId":"get_phase_adherence_v1_live_coach_adherence__call_id__get","parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"string","title":"Call Id"}},{"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/live-coach/delivery-mode/{call_id}":{"get":{"tags":["Live Coach"],"summary":"Get Delivery Mode","description":"Get current delivery mode for a live session.","operationId":"get_delivery_mode_v1_live_coach_delivery_mode__call_id__get","parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"string","title":"Call Id"}},{"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/live-coach/delivery-mode":{"put":{"tags":["Live Coach"],"summary":"Set Delivery Mode","description":"Change delivery mode mid-call.\n\nModes:\n- active: suggestions shown in real-time panel (default)\n- silent: all suggestions saved for post-call review\n- hybrid: only high-priority shown, rest saved","operationId":"set_delivery_mode_v1_live_coach_delivery_mode_put","parameters":[{"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/DeliveryModeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/live-coach/silent-suggestions/{call_id}":{"get":{"tags":["Live Coach"],"summary":"Get Silent Suggestions","description":"Get suggestions that were saved in silent/hybrid mode.\n\nReturns all suggestions that weren't shown in real-time.\nCan be called during or after the call.","operationId":"get_silent_suggestions_v1_live_coach_silent_suggestions__call_id__get","parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"string","title":"Call Id"}},{"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/live-coach/metrics/{closer_id}":{"get":{"tags":["Live Coach"],"summary":"Get Closer Weekly Metrics","description":"Get weekly performance metrics for a closer.\n\nShows improvement over time: close rate, avg close score,\nadherence, critical errors, and trend.","operationId":"get_closer_weekly_metrics_v1_live_coach_metrics__closer_id__get","parameters":[{"name":"closer_id","in":"path","required":true,"schema":{"type":"string","title":"Closer Id"}},{"name":"client_id","in":"query","required":false,"schema":{"type":"string","default":"default","title":"Client Id"}},{"name":"weeks","in":"query","required":false,"schema":{"type":"integer","default":8,"title":"Weeks"}},{"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/live-coach/warmup/create":{"post":{"tags":["Live Coach"],"summary":"Create Warmup Session","description":"Create a pre-call warmup session.\n\nLoads deal memory for the prospect and generates a personalized\nscenario using real objection history and buyer profile.","operationId":"create_warmup_session_v1_live_coach_warmup_create_post","parameters":[{"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/CreateWarmupRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/live-coach/warmup/session/{session_id}":{"get":{"tags":["Live Coach"],"summary":"Get Warmup Session","description":"Get warmup session status and deal context.","operationId":"get_warmup_session_v1_live_coach_warmup_session__session_id__get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"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/live-coach/warmup/chunk":{"post":{"tags":["Live Coach"],"summary":"Process Warmup Chunk","description":"Process a warmup chunk — closer's text through real coaching pipeline.\n\nReuses the same pipeline as practice mode but tracks warmup-specific metrics.\nReturns coaching suggestions + next prospect line from deal-specific scenario.","operationId":"process_warmup_chunk_v1_live_coach_warmup_chunk_post","parameters":[{"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/PracticeChunkRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/live-coach/warmup/end/{session_id}":{"post":{"tags":["Live Coach"],"summary":"End Warmup Session","description":"End a warmup session and get readiness assessment for the real call.","operationId":"end_warmup_session_v1_live_coach_warmup_end__session_id__post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"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/live-coach/warmup/tts/{session_id}":{"get":{"tags":["Live Coach"],"summary":"Get Warmup Tts","description":"Generate TTS audio for a prospect line.\n\nReturns audio/mpeg bytes for the closer's earpiece.","operationId":"get_warmup_tts_v1_live_coach_warmup_tts__session_id__get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"text","in":"query","required":true,"schema":{"type":"string","title":"Text"}},{"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/live-coach/warmup/transcribe":{"post":{"tags":["Live Coach"],"summary":"Warmup Transcribe Audio","description":"Transcribe closer's audio for warmup response.\n\nAccepts raw audio/webm bytes body, returns transcribed text.","operationId":"warmup_transcribe_audio_v1_live_coach_warmup_transcribe_post","parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"audio/webm":{"schema":{"type":"string","format":"binary","title":"Audio"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/live-coach/sparring/scenarios":{"get":{"tags":["Live Coach"],"summary":"List Sparring Scenarios","description":"List all available sparring scenarios from Canon profiles.\n\nFilters: difficulty (beginner/intermediate/advanced),\nfriction (tiburon/pez_globo/delfin/ostra),\ndecision (impulsivo/racional/evasivo/dependiente),\nmonetary (restringido/reactivo/indiferente).","operationId":"list_sparring_scenarios_v1_live_coach_sparring_scenarios_get","parameters":[{"name":"difficulty","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Difficulty"}},{"name":"friction","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Friction"}},{"name":"decision","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Decision"}},{"name":"monetary","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Monetary"}},{"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/live-coach/sparring/start":{"post":{"tags":["Live Coach"],"summary":"Start Sparring Session","description":"Start a new sparring session. Returns session info + scenario details.","operationId":"start_sparring_session_v1_live_coach_sparring_start_post","parameters":[{"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/StartSparringRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/live-coach/sparring/session/{session_id}":{"get":{"tags":["Live Coach"],"summary":"Get Sparring Session","description":"Get current status of a sparring session.","operationId":"get_sparring_session_v1_live_coach_sparring_session__session_id__get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"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/live-coach/sparring/end/{session_id}":{"post":{"tags":["Live Coach"],"summary":"End Sparring Session","description":"End a sparring session and return Canon-based score.","operationId":"end_sparring_session_v1_live_coach_sparring_end__session_id__post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"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/live-coach/sparring/sessions":{"get":{"tags":["Live Coach"],"summary":"List Sparring Sessions","description":"List recent sparring sessions, optionally filtered by closer.","operationId":"list_sparring_sessions_v1_live_coach_sparring_sessions_get","parameters":[{"name":"closer_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Closer Id"}},{"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/live-coach/health":{"get":{"tags":["Live Coach"],"summary":"Get Live Coach Health","description":"Check health of the live coaching pipeline for a session.\n\nReturns whether the pipeline (Recall.ai, etc.) is successfully\nsending transcript chunks. Useful for the dashboard to show\nalerts when the closer's integration is misconfigured.","operationId":"get_live_coach_health_v1_live_coach_health_get","parameters":[{"name":"call_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Call Id"}},{"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/live-coach/integrations/config":{"get":{"tags":["Live Coach"],"summary":"Get Integration Config","description":"Return integration configuration for the client's admin.\n\nOnly users with admin/owner role can see the API key.\nOthers get setup instructions without the key.","operationId":"get_integration_config_v1_live_coach_integrations_config_get","parameters":[{"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/integrations/recall/webhook":{"post":{"summary":"Recall Webhook","description":"Receive Recall.ai webhook events.\n\nVerifies signature, processes event, returns 200 quickly.\nOn bot.done: auto-queues for background reprocessing.","operationId":"recall_webhook_v1_integrations_recall_webhook_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/internal/recall/bots":{"post":{"summary":"Create Bot","description":"Create a Recall bot to join a meeting.\n\nInternal/admin use only.","operationId":"create_bot_v1_internal_recall_bots_post","parameters":[{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecallCreateBotRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecallBotResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/internal/recall/bots/{bot_id}/reprocess":{"post":{"summary":"Reprocess Recall Bot","description":"Re-attempt transcript fetch and analysis for a bot.\n\nFallback/admin endpoint. The automatic flow handles this via worker polling.","operationId":"reprocess_recall_bot_v1_internal_recall_bots__bot_id__reprocess_post","parameters":[{"name":"bot_id","in":"path","required":true,"schema":{"type":"string","title":"Bot Id"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/internal/recall/bots/{bot_id}":{"get":{"summary":"Get Bot","description":"Get full bot detail for admin debugging.","operationId":"get_bot_v1_internal_recall_bots__bot_id__get","parameters":[{"name":"bot_id","in":"path","required":true,"schema":{"type":"string","title":"Bot Id"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/internal/admin/recall/meetings/{meeting_key}":{"get":{"summary":"Get Recall Meeting","operationId":"get_recall_meeting_v1_internal_admin_recall_meetings__meeting_key__get","parameters":[{"name":"meeting_key","in":"path","required":true,"schema":{"type":"string","title":"Meeting Key"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/internal/admin/recall/calls/{call_id}/recording-sessions":{"get":{"summary":"Get Recording Sessions","operationId":"get_recording_sessions_v1_internal_admin_recall_calls__call_id__recording_sessions_get","parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"string","title":"Call Id"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/internal/admin/recall/calls/{call_id}/rejoin":{"post":{"summary":"Admin Rejoin Call","operationId":"admin_rejoin_call_v1_internal_admin_recall_calls__call_id__rejoin_post","parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"string","title":"Call Id"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/internal/admin/recall/waiting-room-risk":{"get":{"summary":"Get Waiting Room Risk","operationId":"get_waiting_room_risk_v1_internal_admin_recall_waiting_room_risk_get","parameters":[{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/internal/admin/recall/cost-metrics":{"get":{"summary":"Get Recall Costs","operationId":"get_recall_costs_v1_internal_admin_recall_cost_metrics_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Days"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/internal/admin/recall/guardrails/run":{"post":{"summary":"Run Recall Guardrails","operationId":"run_recall_guardrails_v1_internal_admin_recall_guardrails_run_post","parameters":[{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/internal/admin/recall/bots/{bot_id}/cancel":{"post":{"summary":"Admin Cancel Recall Bot","operationId":"admin_cancel_recall_bot_v1_internal_admin_recall_bots__bot_id__cancel_post","parameters":[{"name":"bot_id","in":"path","required":true,"schema":{"type":"string","title":"Bot Id"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/internal/recall/integrations/{client_id}":{"get":{"summary":"Integration Status","description":"Get Recall integration status for a client.","operationId":"integration_status_v1_internal_recall_integrations__client_id__get","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecallIntegrationStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/internal/calls/{call_id}/lead-context":{"put":{"tags":["Internal"],"summary":"Save Call Lead Context","operationId":"save_call_lead_context_v1_internal_calls__call_id__lead_context_put","parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"string","title":"Call Id"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadContextRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/integrations/sales-calls/scheduled":{"post":{"tags":["Integrations Webhooks"],"summary":"Handle Scheduled Sales Call","description":"Public webhook to receive calendar scheduling events.\nExpected to be configured in GoHighLevel, Calendly, Zapier, etc.","operationId":"handle_scheduled_sales_call_v1_integrations_sales_calls_scheduled_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SalesCallScheduledEvent"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyHeader":[]}]}},"/v1/teams/audio":{"post":{"tags":["Teams Agent API"],"summary":"Teams Upload Audio","description":"Upload audio and queue full analysis for a Teams client (202 Accepted).","operationId":"teams_upload_audio_v1_teams_audio_post","parameters":[{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_teams_upload_audio_v1_teams_audio_post"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamsIngestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/teams/credits":{"get":{"tags":["Teams Agent API"],"summary":"Teams Credit Balance","operationId":"teams_credit_balance_v1_teams_credits_get","parameters":[{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamsCreditBalanceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/teams/analysis/{call_id}":{"get":{"tags":["Teams Agent API"],"summary":"Teams Analysis Status","description":"Analysis status for a Teams call. Ownership-scoped (404 cross-client).","operationId":"teams_analysis_status_v1_teams_analysis__call_id__get","parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"string","title":"Call Id"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamsAnalysisResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/teams/reports/{call_id}/html":{"get":{"tags":["Teams Agent API"],"summary":"Teams Report Html","description":"HTML report for a Teams call. Ownership-scoped (404 cross-client).","operationId":"teams_report_html_v1_teams_reports__call_id__html_get","parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"string","title":"Call Id"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/integrations/ghl/appointments":{"post":{"tags":["Provider Webhooks"],"summary":"Ghl Appointments Webhook","operationId":"ghl_appointments_webhook_v1_integrations_ghl_appointments_post","parameters":[{"name":"X-GHL-Webhook-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Ghl-Webhook-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/integrations/rb2b/visitor":{"post":{"tags":["Provider Webhooks"],"summary":"Rb2B Visitor Webhook","description":"RB2B Visitor Intelligence Webhook.\nSupports BYOK (Bring Your Own Account) by routing leads to the correct workspace.","operationId":"rb2b_visitor_webhook_v1_integrations_rb2b_visitor_post","parameters":[{"name":"client_id","in":"query","required":true,"schema":{"type":"string","description":"The workspace client ID","title":"Client Id"},"description":"The workspace client ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/integrations/hubspot/events":{"post":{"tags":["Provider Webhooks"],"summary":"Hubspot Webhook","description":"HubSpot engagement webhook endpoint.\n\nHubSpot sends arrays of events. We filter for MEETING engagements.\nSignature verification uses the app secret (if configured).","operationId":"hubspot_webhook_v1_integrations_hubspot_events_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/integrations/salesforce/events":{"post":{"tags":["Provider Webhooks"],"summary":"Salesforce Webhook","description":"Salesforce Platform Event / Outbound Message endpoint.\n\nAccepts JSON payloads from Salesforce Platform Events\nor direct REST API calls.","operationId":"salesforce_webhook_v1_integrations_salesforce_events_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/onboarding/steps":{"get":{"tags":["Onboarding"],"summary":"Get Onboarding Steps","description":"Get all onboarding steps.","operationId":"get_onboarding_steps_v1_onboarding_steps_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/onboarding/status/{closer_id}":{"get":{"tags":["Onboarding"],"summary":"Get Onboarding Status","description":"Get onboarding progress for a closer. Reads from DB.","operationId":"get_onboarding_status_v1_onboarding_status__closer_id__get","parameters":[{"name":"closer_id","in":"path","required":true,"schema":{"type":"string","title":"Closer Id"}},{"name":"client_id","in":"query","required":false,"schema":{"type":"string","default":"default","title":"Client Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/onboarding/complete-step":{"post":{"tags":["Onboarding"],"summary":"Complete Onboarding Step","description":"Mark a step as completed. Persists to DB.","operationId":"complete_onboarding_step_v1_onboarding_complete_step_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompleteStepRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/onboarding/verify-step":{"post":{"tags":["Onboarding"],"summary":"Verify Onboarding Step","description":"Verify that a step has been properly completed.","operationId":"verify_onboarding_step_v1_onboarding_verify_step_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyStepRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/wcc/lead":{"post":{"tags":["WCC Bridge"],"summary":"Ingest Wcc Lead","description":"Ingest a qualified lead from WCC.\n\nWCC calls this when a lead is classified as HOT/WARM/COLD.\nGenerates pre-call briefing automatically from the qualification data.","operationId":"ingest_wcc_lead_v1_wcc_lead_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WCCLeadPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/wcc/briefing/{bridge_id}":{"get":{"tags":["WCC Bridge"],"summary":"Get Wcc Briefing","description":"Get pre-call briefing for a WCC lead.\n\nThe closer can review this before the call.","operationId":"get_wcc_briefing_v1_wcc_briefing__bridge_id__get","parameters":[{"name":"bridge_id","in":"path","required":true,"schema":{"type":"string","title":"Bridge Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/wcc/sessions":{"get":{"tags":["WCC Bridge"],"summary":"List Wcc Sessions","description":"List WCC bridge sessions.","operationId":"list_wcc_sessions_v1_wcc_sessions_get","parameters":[{"name":"client_slug","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Slug"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/wcc/outcome":{"post":{"tags":["WCC Bridge"],"summary":"Sync Call Outcome","description":"Sync call outcome back to WCC.\n\nAfter a call ends, QuantumCore sends the result so WCC can:\n- Update lead scoring model\n- Move pipeline status in CRM\n- Trigger follow-up sequences","operationId":"sync_call_outcome_v1_wcc_outcome_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallOutcomePayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/wcc/closed":{"post":{"tags":["WCC Bridge"],"summary":"Notify Deal Closed","description":"Notify WCC that a deal was closed.\n\nWCC can then:\n- Update pipeline to CLOSED_WON\n- Trigger onboarding-welcome skill\n- Update lead scoring model with win data","operationId":"notify_deal_closed_v1_wcc_closed_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClosingNotification"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/wcc/health":{"get":{"tags":["WCC Bridge"],"summary":"Wcc Bridge Health","description":"Health check for WCC bridge.","operationId":"wcc_bridge_health_v1_wcc_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/wcc/objections":{"get":{"tags":["WCC Bridge"],"summary":"List Objections","description":"List all objection types in the unified library.","operationId":"list_objections_v1_wcc_objections_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/wcc/objections/{objection_id}":{"get":{"tags":["WCC Bridge"],"summary":"Get Objection Detail","description":"Get full detail of an objection type including responses.","operationId":"get_objection_detail_v1_wcc_objections__objection_id__get","parameters":[{"name":"objection_id","in":"path","required":true,"schema":{"type":"string","title":"Objection Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/wcc/objections/detect":{"post":{"tags":["WCC Bridge"],"summary":"Detect And Respond","description":"Detect objections in text and return recommended responses.\n\nUses the unified library to match objections and suggest A.C.P. responses\ntailored to the prospect's profile.","operationId":"detect_and_respond_v1_wcc_objections_detect_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DetectObjectionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/wcc/resurrection/preview":{"post":{"tags":["WCC Bridge"],"summary":"Resurrection Preview","description":"Preview resurrection candidates and generated messages (dry_run=True by default).","operationId":"resurrection_preview_v1_wcc_resurrection_preview_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResurrectionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/wcc/resurrection/launch":{"post":{"tags":["WCC Bridge"],"summary":"Resurrection Launch","description":"Queue resurrection messages to WCC outbound. Set dry_run=False to send for real.","operationId":"resurrection_launch_v1_wcc_resurrection_launch_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResurrectionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/wcc/resurrection/stats/{client_id}":{"get":{"tags":["WCC Bridge"],"summary":"Resurrection Stats","description":"Campaign metrics: sent, responded, converted.","operationId":"resurrection_stats_v1_wcc_resurrection_stats__client_id__get","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/wcc/resurrection/nightly":{"post":{"tags":["WCC Bridge"],"summary":"Resurrection Nightly","description":"Nightly batch trigger — runs resurrection for all active clients.\n\nProtected by API_KEY_INTERNAL. Designed for VPS cron:\n    0 2 * * * curl -s -X POST https://api.closingcodeai.online/v1/wcc/resurrection/nightly             -H 'X-API-Key: <API_KEY_INTERNAL>' | jq .\n\nReturns a summary per client_id.","operationId":"resurrection_nightly_v1_wcc_resurrection_nightly_post","parameters":[{"name":"api_key","in":"query","required":false,"schema":{"type":"string","default":"","title":"Api Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/wcc/journey-upsert":{"post":{"tags":["WCC Bridge"],"summary":"Upsert Lead Journey","description":"Upsert unified lead journey from WCC.\n\nCalled by WCC Bridge Server (unified_session.py) via fire-and-forget\nafter every phase change. QuantumCore uses this for Live Coach briefings\nand analytics — no direct WCC webhook needed.","operationId":"upsert_lead_journey_v1_wcc_journey_upsert_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JourneyUpsertPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/wcc/journey/{tenant_id}/{phone}":{"get":{"tags":["WCC Bridge"],"summary":"Get Lead Journey","description":"Get unified lead journey from Supabase.\n\nUsed by Live Coach to load WCC context before a call.","operationId":"get_lead_journey_v1_wcc_journey__tenant_id___phone__get","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"phone","in":"path","required":true,"schema":{"type":"string","title":"Phone"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/wcc-config/{client_id}":{"get":{"tags":["WCC Config"],"summary":"Get Config","description":"Get business configuration for a client.","operationId":"get_config_v1_wcc_config__client_id__get","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["WCC Config"],"summary":"Upsert Config","description":"Create or update business configuration.","operationId":"upsert_config_v1_wcc_config__client_id__post","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BusinessConfigPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["WCC Config"],"summary":"Delete Config","description":"Delete business configuration.","operationId":"delete_config_v1_wcc_config__client_id__delete","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/wcc-script-builder/{client_id}/start":{"post":{"tags":["WCC Script Builder"],"summary":"Start Session","description":"Start a new script builder session.","operationId":"start_session_v1_wcc_script_builder__client_id__start_post","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartSessionPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/wcc-script-builder/session/{session_id}":{"get":{"tags":["WCC Script Builder"],"summary":"Get Session","description":"Get script builder session.","operationId":"get_session_v1_wcc_script_builder_session__session_id__get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/wcc-script-builder/session/{session_id}/generate":{"post":{"tags":["WCC Script Builder"],"summary":"Generate Preview Route","description":"Generate script preview from session data.","operationId":"generate_preview_route_v1_wcc_script_builder_session__session_id__generate_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/wcc-script-builder/session/{session_id}/finalize":{"post":{"tags":["WCC Script Builder"],"summary":"Finalize Script Route","description":"Finalize script — marks as active, archives previous.","operationId":"finalize_script_route_v1_wcc_script_builder_session__session_id__finalize_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/wcc-script-builder/{client_id}/active":{"get":{"tags":["WCC Script Builder"],"summary":"Get Active Script Route","description":"Get the currently active script for a client.","operationId":"get_active_script_route_v1_wcc_script_builder__client_id__active_get","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/wcc-script-builder/{client_id}/history":{"get":{"tags":["WCC Script Builder"],"summary":"Get Script History Route","description":"Get all scripts for a client (including archived).","operationId":"get_script_history_route_v1_wcc_script_builder__client_id__history_get","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/wcc-closing/{client_id}/start":{"post":{"tags":["WCC Closing"],"summary":"Start Closing Flow","description":"Start an autonomous closing flow for a lead.","operationId":"start_closing_flow_v1_wcc_closing__client_id__start_post","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartFlowPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/wcc-closing/{flow_id}/message":{"post":{"tags":["WCC Closing"],"summary":"Process Closing Message","description":"Process a message in the closing flow.\n\nDetects objections, tracks phase, calculates close probability,\nand decides whether to auto-close, continue, or escalate.","operationId":"process_closing_message_v1_wcc_closing__flow_id__message_post","parameters":[{"name":"flow_id","in":"path","required":true,"schema":{"type":"string","title":"Flow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessMessagePayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/wcc-closing/{flow_id}":{"get":{"tags":["WCC Closing"],"summary":"Get Closing Flow","description":"Get closing flow details.","operationId":"get_closing_flow_v1_wcc_closing__flow_id__get","parameters":[{"name":"flow_id","in":"path","required":true,"schema":{"type":"string","title":"Flow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/wcc-closing/{flow_id}/steps":{"get":{"tags":["WCC Closing"],"summary":"Get Flow Steps","description":"Get step-by-step log of a closing flow.","operationId":"get_flow_steps_v1_wcc_closing__flow_id__steps_get","parameters":[{"name":"flow_id","in":"path","required":true,"schema":{"type":"string","title":"Flow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/wcc-closing/{flow_id}/escalate":{"post":{"tags":["WCC Closing"],"summary":"Escalate Flow","description":"Escalate closing flow to human closer.","operationId":"escalate_flow_v1_wcc_closing__flow_id__escalate_post","parameters":[{"name":"flow_id","in":"path","required":true,"schema":{"type":"string","title":"Flow Id"}},{"name":"reason","in":"query","required":false,"schema":{"type":"string","default":"","title":"Reason"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/wcc-closing/{flow_id}/close":{"post":{"tags":["WCC Closing"],"summary":"Close Flow","description":"Mark closing flow as won.","operationId":"close_flow_v1_wcc_closing__flow_id__close_post","parameters":[{"name":"flow_id","in":"path","required":true,"schema":{"type":"string","title":"Flow Id"}},{"name":"deal_value","in":"query","required":false,"schema":{"type":"number","default":0,"title":"Deal Value"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/wcc-closing/client/{client_id}/active":{"get":{"tags":["WCC Closing"],"summary":"Get Active Flows","description":"List active closing flows for a client.","operationId":"get_active_flows_v1_wcc_closing_client__client_id__active_get","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/wcc-closing/{flow_id}/status":{"patch":{"tags":["WCC Closing"],"summary":"Update Flow Status","description":"Update closing flow status (pause, close, etc.).\n\nUsed by the autonomous closing skill to:\n- Pause flow when escalating to human\n- Mark as closed_won / closed_lost\n- Resume flow after human intervention","operationId":"update_flow_status_v1_wcc_closing__flow_id__status_patch","parameters":[{"name":"flow_id","in":"path","required":true,"schema":{"type":"string","title":"Flow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateFlowStatusPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/wcc-closing/{flow_id}/log":{"post":{"tags":["WCC Closing"],"summary":"Log Flow Event","description":"Log an event in the closing flow.\n\nEvents: escalation, next_step_committed, injection_attempt,\npayment_initiated, objection_recorded, etc.","operationId":"log_flow_event_v1_wcc_closing__flow_id__log_post","parameters":[{"name":"flow_id","in":"path","required":true,"schema":{"type":"string","title":"Flow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowLogPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/wcc-closing/client/{client_id}/stats":{"get":{"tags":["WCC Closing"],"summary":"Get Closing Stats","description":"Get closing flow statistics for a client.","operationId":"get_closing_stats_v1_wcc_closing_client__client_id__stats_get","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/wcc-warmup/sequence":{"post":{"tags":["WCC Warm-up"],"summary":"Create Sequence","description":"Create a warm-up sequence configuration.","operationId":"create_sequence_v1_wcc_warmup_sequence_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSequencePayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/wcc-warmup/start":{"post":{"tags":["WCC Warm-up"],"summary":"Start Warmup","description":"Start a warm-up sequence for a lead.","operationId":"start_warmup_v1_wcc_warmup_start_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartWarmupPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/wcc-warmup/active/{client_id}":{"get":{"tags":["WCC Warm-up"],"summary":"Get Active Warmups","description":"List active warm-ups for a client.","operationId":"get_active_warmups_v1_wcc_warmup_active__client_id__get","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/wcc-warmup/process/{warmup_id}":{"post":{"tags":["WCC Warm-up"],"summary":"Process Warmup Step","description":"Process the next step in a warm-up sequence.","operationId":"process_warmup_step_v1_wcc_warmup_process__warmup_id__post","parameters":[{"name":"warmup_id","in":"path","required":true,"schema":{"type":"string","title":"Warmup Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/wcc-warmup/cancel/{warmup_id}":{"post":{"tags":["WCC Warm-up"],"summary":"Cancel Warmup","description":"Cancel an active warm-up sequence.","operationId":"cancel_warmup_v1_wcc_warmup_cancel__warmup_id__post","parameters":[{"name":"warmup_id","in":"path","required":true,"schema":{"type":"string","title":"Warmup Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/wcc-warmup/stats/{client_id}":{"get":{"tags":["WCC Warm-up"],"summary":"Get Warmup Stats","description":"Get warm-up statistics for a client.","operationId":"get_warmup_stats_v1_wcc_warmup_stats__client_id__get","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/wcc-warmup/{warmup_id}/status":{"patch":{"tags":["WCC Warm-up"],"summary":"Update Warmup Status","description":"Update warmup instance status.\n\nUsed for: do_not_contact, cancellation, completion, conversion.","operationId":"update_warmup_status_v1_wcc_warmup__warmup_id__status_patch","parameters":[{"name":"warmup_id","in":"path","required":true,"schema":{"type":"string","title":"Warmup Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWarmupStatusPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/wcc-payments/create":{"post":{"tags":["WCC Payments"],"summary":"Create Payment Link","description":"Create a payment link for a closing flow.","operationId":"create_payment_link_v1_wcc_payments_create_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePaymentPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/wcc-payments/status/{payment_id}":{"get":{"tags":["WCC Payments"],"summary":"Get Payment Status","description":"Get the current status of a payment.","operationId":"get_payment_status_v1_wcc_payments_status__payment_id__get","parameters":[{"name":"payment_id","in":"path","required":true,"schema":{"type":"string","title":"Payment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/wcc-payments/webhook/{provider}":{"post":{"tags":["WCC Payments"],"summary":"Payment Webhook","description":"Handle a payment webhook from a provider.\n\nSupports: stripe, mercadopago.","operationId":"payment_webhook_v1_wcc_payments_webhook__provider__post","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/wcc-payments/client/{client_id}":{"get":{"tags":["WCC Payments"],"summary":"Get Payments For Client","description":"List all payment links for a client.","operationId":"get_payments_for_client_v1_wcc_payments_client__client_id__get","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/wcc-objections-engine/record":{"post":{"tags":["WCC Objection Engine"],"summary":"Record Pattern","description":"Record an objection pattern from a conversation.","operationId":"record_pattern_v1_wcc_objections_engine_record_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordPatternPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/wcc-objections-engine/patterns/{client_id}":{"get":{"tags":["WCC Objection Engine"],"summary":"Get Patterns","description":"List patterns for a client, optionally filtered by type.","operationId":"get_patterns_v1_wcc_objections_engine_patterns__client_id__get","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"objection_type","in":"query","required":false,"schema":{"type":"string","default":"","title":"Objection Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/wcc-objections-engine/best-response":{"post":{"tags":["WCC Objection Engine"],"summary":"Get Best Response","description":"Get the best response for an objection based on resolution rate.","operationId":"get_best_response_v1_wcc_objections_engine_best_response_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BestResponsePayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/wcc-objections-engine/stats/{client_id}":{"get":{"tags":["WCC Objection Engine"],"summary":"Get Resolution Stats","description":"Get resolution rate statistics for a client.","operationId":"get_resolution_stats_v1_wcc_objections_engine_stats__client_id__get","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/wcc-objections-engine/top/{client_id}":{"get":{"tags":["WCC Objection Engine"],"summary":"Get Top Patterns","description":"Get the top patterns by resolution rate.","operationId":"get_top_patterns_v1_wcc_objections_engine_top__client_id__get","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":10,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/intent-signals/signals":{"get":{"tags":["Intent Signals"],"summary":"List Signals","description":"List all available intent signal definitions with weights and descriptions.","operationId":"list_signals_v1_intent_signals_signals_get","parameters":[{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/intent-signals/detect":{"post":{"tags":["Intent Signals"],"summary":"Detect Signal","description":"Register a detected signal for a prospect and persist it to DB.","operationId":"detect_signal_v1_intent_signals_detect_post","parameters":[{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignalDetection"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/intent-signals/score":{"post":{"tags":["Intent Signals"],"summary":"Score Lead","description":"Score a lead based on detected signals + ICP fit.","operationId":"score_lead_v1_intent_signals_score_post","parameters":[{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadScoreRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/intent-signals/scores":{"get":{"tags":["Intent Signals"],"summary":"Get Scores","description":"Get all scored leads from DB, optionally filtered by client / score / tier.","operationId":"get_scores_v1_intent_signals_scores_get","parameters":[{"name":"client_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Id"}},{"name":"min_score","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":0,"default":0,"title":"Min Score"}},{"name":"tier","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tier"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/intent-signals/dashboard":{"get":{"tags":["Intent Signals"],"summary":"Get Dashboard","description":"Dashboard: signal distribution, top leads, recent activity — from DB.","operationId":"get_dashboard_v1_intent_signals_dashboard_get","parameters":[{"name":"client_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Id"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/intent-signals/monitor/configure":{"post":{"tags":["Intent Signals"],"summary":"Configure Monitor","description":"Configure what LinkedIn monitor should watch: competitors, influencers, companies.","operationId":"configure_monitor_v1_intent_signals_monitor_configure_post","parameters":[{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MonitorConfig"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/intent-signals/monitor/config":{"get":{"tags":["Intent Signals"],"summary":"Get Monitor Config","description":"Get current monitoring configuration.","operationId":"get_monitor_config_v1_intent_signals_monitor_config_get","parameters":[{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/intent-signals/monitor/scan":{"post":{"tags":["Intent Signals"],"summary":"Trigger Scan","description":"Trigger a full LinkedIn monitor scan and store results in DB.","operationId":"trigger_scan_v1_intent_signals_monitor_scan_post","parameters":[{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/intent-signals/enrich":{"post":{"tags":["Intent Signals"],"summary":"Enrich Email","description":"Find email via waterfall enrichment (up to 14 providers + NeverBounce verify).","operationId":"enrich_email_v1_intent_signals_enrich_post","parameters":[{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnrichRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/intent-signals/enrich/batch":{"post":{"tags":["Intent Signals"],"summary":"Enrich Batch","description":"Enrich multiple prospects at once.","operationId":"enrich_batch_v1_intent_signals_enrich_batch_post","parameters":[{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnrichBatchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/intent-signals/personalize":{"post":{"tags":["Intent Signals"],"summary":"Personalize Message","description":"Generate Canon-aware personalized outreach message for a detected signal.","operationId":"personalize_message_v1_intent_signals_personalize_post","parameters":[{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonalizeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/intent-signals/notify":{"post":{"tags":["Intent Signals"],"summary":"Notify Hot Lead","description":"Send hot lead notification to Slack/Telegram (configured via env vars).","operationId":"notify_hot_lead_v1_intent_signals_notify_post","parameters":[{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotifyRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/intent-signals/sequence/next":{"post":{"tags":["Intent Signals"],"summary":"Get Next Sequence Step","description":"Get next step in a Canon Sec 9 follow-up sequence.\n\nScenarios: lead_caliente | promesa_desaparecido | silencio_activo |\n           consulta_tercero | sin_respuesta\nMax 10 contacts, ≥60% value-add steps (Canon Reglas 3 & 4).","operationId":"get_next_sequence_step_v1_intent_signals_sequence_next_post","parameters":[{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SequenceRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/intent-signals/sequence/scenarios":{"get":{"tags":["Intent Signals"],"summary":"List Canon Scenarios","description":"List all Canon Sec 9 follow-up scenarios with step counts and Canon ratios.","operationId":"list_canon_scenarios_v1_intent_signals_sequence_scenarios_get","parameters":[{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/intent-signals/sequence/validate":{"post":{"tags":["Intent Signals"],"summary":"Validate Canon Sequence","description":"Validate sent follow-up steps against Canon audit criteria.","operationId":"validate_canon_sequence_v1_intent_signals_sequence_validate_post","parameters":[{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SequenceValidateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/intent-signals/ab/create":{"post":{"tags":["Intent Signals"],"summary":"Create Ab Campaign","description":"Create an A/B test campaign with message variants.","operationId":"create_ab_campaign_v1_intent_signals_ab_create_post","parameters":[{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/intent-signals/ab/event":{"post":{"tags":["Intent Signals"],"summary":"Record Ab Event","description":"Record an A/B test event (sent, replied, meeting, converted, etc.).","operationId":"record_ab_event_v1_intent_signals_ab_event_post","parameters":[{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ABEventRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/intent-signals/ab/{campaign_id}/results":{"get":{"tags":["Intent Signals"],"summary":"Get Ab Results","description":"Get A/B test results with reply rates and winner (min 50 sends for significance).","operationId":"get_ab_results_v1_intent_signals_ab__campaign_id__results_get","parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/intent-signals/ab/campaigns":{"get":{"tags":["Intent Signals"],"summary":"List Ab Campaigns","description":"List all A/B test campaigns.","operationId":"list_ab_campaigns_v1_intent_signals_ab_campaigns_get","parameters":[{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/intent-signals/free-tools":{"get":{"tags":["Intent Signals"],"summary":"List Free Tools","description":"List available free lead magnet tools (script analyzer, quiz, calculator, etc.).","operationId":"list_free_tools_v1_intent_signals_free_tools_get","parameters":[{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/intent-signals/free-tools/{tool_id}":{"get":{"tags":["Intent Signals"],"summary":"Get Free Tool","description":"Get a specific free tool definition with input fields and output sections.","operationId":"get_free_tool_v1_intent_signals_free_tools__tool_id__get","parameters":[{"name":"tool_id","in":"path","required":true,"schema":{"type":"string","title":"Tool Id"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","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/intent-signals/free-tools/{tool_id}/submit":{"post":{"tags":["Intent Signals"],"summary":"Submit Free Tool","description":"Submit a free tool. Returns analysis + registers intent signal if email provided.","operationId":"submit_free_tool_v1_intent_signals_free_tools__tool_id__submit_post","parameters":[{"name":"tool_id","in":"path","required":true,"schema":{"type":"string","title":"Tool Id"}},{"name":"X-API-Key","in":"header","required":true,"schema":{"type":"string","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolSubmissionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/wcc-analytics/{client_id}":{"get":{"tags":["WCC Analytics"],"summary":"Get Analytics","description":"Get stored analytics for a client.\n\nOptionally filter by period_start and period_end (ISO format strings).","operationId":"get_analytics_v1_wcc_analytics__client_id__get","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"period_start","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Period Start"}},{"name":"period_end","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Period End"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/wcc-analytics/{client_id}/predict":{"get":{"tags":["WCC Analytics"],"summary":"Get Predictions","description":"Get predictive analytics for a client.\n\nReturns close rate prediction and revenue projection via simple moving average.","operationId":"get_predictions_v1_wcc_analytics__client_id__predict_get","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/wcc-analytics/{client_id}/best":{"get":{"tags":["WCC Analytics"],"summary":"Get Best Performers","description":"Get best performing systems, objection responses, and time of day.\n\nIdentifies the most effective closing system and top objection handling.","operationId":"get_best_performers_v1_wcc_analytics__client_id__best_get","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/wcc-analytics/{client_id}/comparison":{"get":{"tags":["WCC Analytics"],"summary":"Get Closer Comparison","description":"Compare closer performance for a client.\n\nReturns per-closer stats: win rate, avg deal value, avg messages to close.","operationId":"get_closer_comparison_v1_wcc_analytics__client_id__comparison_get","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/wcc-channels/config":{"post":{"tags":["WCC Channels"],"summary":"Configure Channel","description":"Configure a channel for a client.\n\nSets enabled state, rate limits, templates, and fallback channel.","operationId":"configure_channel_v1_wcc_channels_config_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelConfigPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/wcc-channels/{client_id}":{"get":{"tags":["WCC Channels"],"summary":"List Channels","description":"List all channel configurations for a client.","operationId":"list_channels_v1_wcc_channels__client_id__get","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/wcc-channels/status/{client_id}/{channel}":{"get":{"tags":["WCC Channels"],"summary":"Get Channel Status","description":"Get the current status and rate limit state of a channel.","operationId":"get_channel_status_v1_wcc_channels_status__client_id___channel__get","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"channel","in":"path","required":true,"schema":{"type":"string","title":"Channel"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/wcc-channels/send":{"post":{"tags":["WCC Channels"],"summary":"Send Channel Message","description":"Send a message via the specified channel.\n\nChecks rate limits and falls back to fallback_channel if unavailable.","operationId":"send_channel_message_v1_wcc_channels_send_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendMessagePayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/wcc-channels/enable/{client_id}/{channel}":{"post":{"tags":["WCC Channels"],"summary":"Enable Channel","description":"Enable a channel for a client.","operationId":"enable_channel_v1_wcc_channels_enable__client_id___channel__post","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"channel","in":"path","required":true,"schema":{"type":"string","title":"Channel"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/wcc-channels/disable/{client_id}/{channel}":{"post":{"tags":["WCC Channels"],"summary":"Disable Channel","description":"Disable a channel for a client.","operationId":"disable_channel_v1_wcc_channels_disable__client_id___channel__post","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"channel","in":"path","required":true,"schema":{"type":"string","title":"Channel"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/wcc-channels/notify":{"post":{"tags":["WCC Channels"],"summary":"Notify Closer","description":"Send notification to a human closer when escalating a lead.","operationId":"notify_closer_v1_wcc_channels_notify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotifyPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/wcc-training/simulation/start":{"post":{"tags":["WCC Training"],"summary":"Start Simulation","description":"Start a training simulation session.\n\nScenario can be a preset name (easy_b2c, medium_b2c, hard_b2c, etc.)\nor a custom scenario dict with profile settings.","operationId":"start_simulation_v1_wcc_training_simulation_start_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartSimulationPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/wcc-training/simulation/{session_id}/message":{"post":{"tags":["WCC Training"],"summary":"Send Training Message","description":"Send a message in an active training simulation.\n\nReturns AI prospect response, score, feedback, and updated state.","operationId":"send_training_message_v1_wcc_training_simulation__session_id__message_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingMessagePayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/wcc-training/session/{session_id}":{"get":{"tags":["WCC Training"],"summary":"Get Session","description":"Get a training session by ID.\n\nReturns full session state including messages, scores, and persona.","operationId":"get_session_v1_wcc_training_session__session_id__get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/wcc-training/history/{client_id}":{"get":{"tags":["WCC Training"],"summary":"Get History","description":"Get training history for a client.\n\nReturns list of past sessions with scores and status.","operationId":"get_history_v1_wcc_training_history__client_id__get","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/wcc-training/ab-test/start":{"post":{"tags":["WCC Training"],"summary":"Start Ab Test","description":"Start an A/B test comparing two configurations.\n\nTracks scores per variant and determines winner.","operationId":"start_ab_test_v1_wcc_training_ab_test_start_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartABTestPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/wcc-training/ab-test/{test_id}/results":{"get":{"tags":["WCC Training"],"summary":"Get Ab Results","description":"Get A/B test results.\n\nReturns scores, win counts, and declared winner for each variant.","operationId":"get_ab_results_v1_wcc_training_ab_test__test_id__results_get","parameters":[{"name":"test_id","in":"path","required":true,"schema":{"type":"string","title":"Test Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/wcc-training/scenario":{"post":{"tags":["WCC Training"],"summary":"Create Scenario","description":"Create a custom training scenario.\n\nDefines a prospect profile for use in future simulations.","operationId":"create_scenario_v1_wcc_training_scenario_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateScenarioPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/deals/predict":{"post":{"summary":"Create Prediction","description":"Generate a deal prediction for a call/opportunity.","operationId":"create_prediction_v1_deals_predict_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PredictRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/deals/pipeline":{"get":{"summary":"Get Pipeline","description":"Get predictions for all active deals in the pipeline.","operationId":"get_pipeline_v1_deals_pipeline_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/deals/outcome":{"post":{"summary":"Submit Outcome","description":"Record actual outcome to improve predictions.","operationId":"submit_outcome_v1_deals_outcome_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutcomeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/deals/stats":{"get":{"summary":"Get Deal Stats","description":"Get deal prediction statistics and model accuracy.","operationId":"get_deal_stats_v1_deals_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/buyer-profile/profile":{"post":{"summary":"Create Profile","description":"Profile a buyer from conversation data.","operationId":"create_profile_v1_buyer_profile_profile_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/buyer-profile/{call_id}":{"get":{"summary":"Get Profile","description":"Get existing buyer profile for a call.","operationId":"get_profile_v1_buyer_profile__call_id__get","parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"string","title":"Call Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/buyer-profile/stats":{"get":{"summary":"Get Profile Stats","description":"Get buyer profile distribution statistics.","operationId":"get_profile_stats_v1_buyer_profile_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/wcc/night-mode/config":{"get":{"summary":"Get Config","description":"Get night mode configuration.","operationId":"get_config_v1_wcc_night_mode_config_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"put":{"summary":"Update Config","description":"Update night mode configuration.","operationId":"update_config_v1_wcc_night_mode_config_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NightModeConfigRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/wcc/night-mode/status":{"get":{"summary":"Get Status","description":"Check if night mode is currently active.","operationId":"get_status_v1_wcc_night_mode_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/wcc/night-mode/message":{"post":{"summary":"Process Message","description":"Process a message during night mode.","operationId":"process_message_v1_wcc_night_mode_message_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NightMessageRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/wcc/night-mode/guardrails/check":{"post":{"summary":"Check Message Guardrails","description":"Check if a message passes night mode guardrails (dry run).","operationId":"check_message_guardrails_v1_wcc_night_mode_guardrails_check_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NightMessageRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/wcc/night-mode/report":{"get":{"summary":"Get Morning Report","description":"Get morning report of night mode activity.","operationId":"get_morning_report_v1_wcc_night_mode_report_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/intelligence/objections/record":{"post":{"summary":"Record Objection","description":"Record an objection interaction for learning.","operationId":"record_objection_v1_intelligence_objections_record_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObjectionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/intelligence/objections/resolution":{"post":{"summary":"Record Objection Resolution","description":"Record whether an objection was resolved.","operationId":"record_objection_resolution_v1_intelligence_objections_resolution_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolutionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/intelligence/objections/best-response":{"post":{"summary":"Get Objection Best Response","description":"Get the best response for an objection.","operationId":"get_objection_best_response_v1_intelligence_objections_best_response_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BestResponseRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/intelligence/objections/analytics":{"get":{"summary":"Objection Analytics","description":"Get objection analytics and improvement trends.","operationId":"objection_analytics_v1_intelligence_objections_analytics_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/intelligence/objections/improve/{objection_type}":{"get":{"summary":"Objection Improvement","description":"Get improvement suggestions for an objection type.","operationId":"objection_improvement_v1_intelligence_objections_improve__objection_type__get","parameters":[{"name":"objection_type","in":"path","required":true,"schema":{"type":"string","title":"Objection Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/intelligence/revenue/forecast":{"get":{"summary":"Revenue Forecast","description":"Get pipeline revenue forecast.","operationId":"revenue_forecast_v1_intelligence_revenue_forecast_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/intelligence/revenue/at-risk":{"get":{"summary":"Revenue At Risk","description":"Get deals at risk of being lost.","operationId":"revenue_at_risk_v1_intelligence_revenue_at_risk_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/intelligence/revenue/next-actions":{"get":{"summary":"Next Actions","description":"Get recommended next actions.","operationId":"next_actions_v1_intelligence_revenue_next_actions_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/intelligence/revenue/team":{"get":{"summary":"Team Performance","description":"Get team performance comparison.","operationId":"team_performance_v1_intelligence_revenue_team_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/intelligence/personas":{"get":{"summary":"List Personas","description":"List all available WCC personas.","operationId":"list_personas_v1_intelligence_personas_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/intelligence/personas/select":{"post":{"summary":"Select Wcc Persona","description":"Auto-select the best persona for a situation.","operationId":"select_wcc_persona_v1_intelligence_personas_select_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonaSelectRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/intelligence/personas/{persona_id}/prompt":{"get":{"summary":"Get Persona System Prompt","description":"Get the system prompt for a persona.","operationId":"get_persona_system_prompt_v1_intelligence_personas__persona_id__prompt_get","parameters":[{"name":"persona_id","in":"path","required":true,"schema":{"type":"string","title":"Persona Id"}},{"name":"context","in":"query","required":false,"schema":{"type":"string","default":"","title":"Context"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/voice-coaching/coach":{"post":{"summary":"Get Coaching","description":"Get real-time coaching advice for a transcript segment.","operationId":"get_coaching_v1_voice_coaching_coach_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoachingRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/voice-coaching/session/start":{"post":{"summary":"Start Session","description":"Start a voice coaching session.","operationId":"start_session_v1_voice_coaching_session_start_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceSessionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/voice-coaching/status":{"get":{"summary":"Voice Status","description":"Get voice coaching feature status.","operationId":"voice_status_v1_voice_coaching_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/deal-desk/create":{"post":{"summary":"Create Deal","description":"Create a new deal desk session.","operationId":"create_deal_v1_deal_desk_create_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealDeskCreateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/deal-desk/proposal":{"post":{"summary":"Create Proposal","description":"Generate a proposal (standalone, without full session).","operationId":"create_proposal_v1_deal_desk_proposal_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealDeskCreateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/deal-desk/negotiate":{"post":{"summary":"Negotiate","description":"Handle a negotiation counter-offer.","operationId":"negotiate_v1_deal_desk_negotiate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NegotiationRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/deal-desk/payment-link":{"post":{"summary":"Create Payment Link","description":"Generate a payment link for a deal.","operationId":"create_payment_link_v1_deal_desk_payment_link_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentLinkRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/deal-desk/status":{"get":{"summary":"Deal Desk Status","description":"Get deal desk feature status.","operationId":"deal_desk_status_v1_deal_desk_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/circuit/status":{"get":{"tags":["Circuit Breakers"],"summary":"Get Circuit Status","operationId":"get_circuit_status_v1_circuit_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"ABEventRequest":{"properties":{"campaign_id":{"type":"string","title":"Campaign Id"},"variant_id":{"type":"string","title":"Variant Id"},"event":{"type":"string","title":"Event"}},"type":"object","required":["campaign_id","variant_id","event"],"title":"ABEventRequest"},"AcceptInvitePayload":{"properties":{"invite_token":{"type":"string","title":"Invite Token"}},"type":"object","required":["invite_token"],"title":"AcceptInvitePayload"},"ActivateRecallRequest":{"properties":{"penalty_acknowledged":{"type":"boolean","title":"Penalty Acknowledged","default":false}},"type":"object","title":"ActivateRecallRequest"},"AddCloserRequest":{"properties":{"name":{"type":"string","title":"Name"},"email":{"type":"string","format":"email","title":"Email"}},"type":"object","required":["name","email"],"title":"AddCloserRequest"},"ArticleProgressRequest":{"properties":{"article_id":{"type":"string","title":"Article Id"}},"type":"object","required":["article_id"],"title":"ArticleProgressRequest"},"BestResponsePayload":{"properties":{"client_id":{"type":"string","title":"Client Id"},"objection_text":{"type":"string","title":"Objection Text"},"profiles":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Profiles"}},"type":"object","required":["client_id","objection_text"],"title":"BestResponsePayload","description":"Request the best response for an objection."},"BestResponseRequest":{"properties":{"objection_type":{"type":"string","title":"Objection Type"},"buyer_friction":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Buyer Friction"}},"type":"object","required":["objection_type"],"title":"BestResponseRequest"},"Body_external_ingest_audio_v1_external_ingest_audio_post":{"properties":{"audio":{"type":"string","format":"binary","title":"Audio"},"closer_name":{"type":"string","title":"Closer Name","default":""},"prospect_name":{"type":"string","title":"Prospect Name","default":""},"external_session_id":{"type":"string","title":"External Session Id","default":""}},"type":"object","required":["audio"],"title":"Body_external_ingest_audio_v1_external_ingest_audio_post"},"Body_pilot_upload_call_v1_pilot_calls_post":{"properties":{"audio":{"type":"string","format":"binary","title":"Audio"},"closer_name":{"type":"string","title":"Closer Name"},"outcome":{"type":"string","title":"Outcome","default":"unknown"},"deal_label":{"type":"string","title":"Deal Label","default":""},"deal_value":{"type":"string","title":"Deal Value","default":""},"manager_note":{"type":"string","title":"Manager Note","default":""}},"type":"object","required":["audio","closer_name"],"title":"Body_pilot_upload_call_v1_pilot_calls_post"},"Body_teams_upload_audio_v1_teams_audio_post":{"properties":{"audio":{"type":"string","format":"binary","title":"Audio"},"external_call_id":{"type":"string","title":"External Call Id"},"closer_name":{"type":"string","title":"Closer Name","default":""}},"type":"object","required":["audio","external_call_id"],"title":"Body_teams_upload_audio_v1_teams_audio_post"},"Body_upload_file_form_v1_uploads__token___filename__form_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"},"upload_secret":{"type":"string","title":"Upload Secret"}},"type":"object","required":["file","upload_secret"],"title":"Body_upload_file_form_v1_uploads__token___filename__form_post"},"BusinessConfigPayload":{"properties":{"business_type":{"type":"string","title":"Business Type"},"product_name":{"type":"string","title":"Product Name","default":""},"product_description":{"type":"string","title":"Product Description","default":""},"price_entry":{"type":"number","title":"Price Entry","default":0},"price_mid":{"type":"number","title":"Price Mid","default":0},"price_vip":{"type":"number","title":"Price Vip","default":0},"currency":{"type":"string","title":"Currency","default":"USD"},"company_name":{"type":"string","title":"Company Name","default":""},"result_main":{"type":"string","title":"Result Main","default":""},"differentiator":{"type":"string","title":"Differentiator","default":""},"pilar_1":{"type":"string","title":"Pilar 1","default":""},"pilar_2":{"type":"string","title":"Pilar 2","default":""},"pilar_3":{"type":"string","title":"Pilar 3","default":""},"industry":{"type":"string","title":"Industry","default":""},"target_market":{"type":"string","title":"Target Market","default":""},"ticket_threshold_human":{"type":"number","title":"Ticket Threshold Human","default":500},"decision_committee_size":{"type":"integer","title":"Decision Committee Size","default":1},"avg_sales_cycle_days":{"type":"integer","title":"Avg Sales Cycle Days","default":30},"auto_close_enabled":{"type":"boolean","title":"Auto Close Enabled","default":false},"warmup_enabled":{"type":"boolean","title":"Warmup Enabled","default":true},"payment_enabled":{"type":"boolean","title":"Payment Enabled","default":false}},"type":"object","required":["business_type"],"title":"BusinessConfigPayload","description":"Business configuration payload."},"CallAnalysisCompletePayload":{"properties":{"call_id":{"type":"string","title":"Call Id"}},"type":"object","required":["call_id"],"title":"CallAnalysisCompletePayload"},"CallOutcomePayload":{"properties":{"bridge_id":{"type":"string","title":"Bridge Id"},"call_id":{"type":"string","title":"Call Id"},"outcome":{"type":"string","title":"Outcome"},"close_score":{"type":"number","title":"Close Score","default":0.0},"adherence_pct":{"type":"number","title":"Adherence Pct","default":0.0},"critical_errors":{"type":"integer","title":"Critical Errors","default":0},"notes":{"type":"string","title":"Notes","default":""}},"type":"object","required":["bridge_id","call_id","outcome"],"title":"CallOutcomePayload","description":"Call outcome to sync back to WCC."},"CallStatusPayload":{"properties":{"status":{"type":"string","title":"Status"},"review_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Review Note"}},"type":"object","required":["status"],"title":"CallStatusPayload"},"CampaignCreateRequest":{"properties":{"name":{"type":"string","title":"Name"},"variants":{"items":{"additionalProperties":{"type":"string"},"type":"object"},"type":"array","title":"Variants"}},"type":"object","required":["name","variants"],"title":"CampaignCreateRequest"},"ChannelConfigPayload":{"properties":{"client_id":{"type":"string","title":"Client Id"},"channel":{"type":"string","title":"Channel"},"enabled":{"type":"boolean","title":"Enabled","default":true},"max_messages_per_hour":{"type":"integer","maximum":10000.0,"minimum":1.0,"title":"Max Messages Per Hour","default":60},"max_messages_per_day":{"type":"integer","maximum":100000.0,"minimum":1.0,"title":"Max Messages Per Day","default":500},"fallback_channel":{"type":"string","title":"Fallback Channel","default":""},"templates":{"additionalProperties":{"type":"string"},"type":"object","title":"Templates","default":{}}},"type":"object","required":["client_id","channel"],"title":"ChannelConfigPayload","description":"Channel configuration request."},"ClientUser":{"properties":{"id":{"type":"string","title":"Id"},"client_id":{"type":"string","title":"Client Id"},"client_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Name"},"email":{"type":"string","title":"Email"},"role":{"type":"string","title":"Role"}},"type":"object","required":["id","client_id","email","role"],"title":"ClientUser","description":"Represents the authenticated client user."},"ClosingNotification":{"properties":{"bridge_id":{"type":"string","title":"Bridge Id"},"call_id":{"type":"string","title":"Call Id"},"closer_id":{"type":"string","title":"Closer Id"},"deal_value":{"type":"number","title":"Deal Value","default":0.0},"closing_system_used":{"type":"string","title":"Closing System Used","default":""},"notes":{"type":"string","title":"Notes","default":""}},"type":"object","required":["bridge_id","call_id","closer_id"],"title":"ClosingNotification","description":"Notification when a deal is closed."},"CoachingRequest":{"properties":{"transcript_segment":{"type":"string","title":"Transcript Segment"},"call_id":{"type":"string","title":"Call Id"},"buyer_friction":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Buyer Friction"},"deal_score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Deal Score"},"current_phase":{"type":"string","title":"Current Phase","default":"qualification"}},"type":"object","required":["transcript_segment","call_id"],"title":"CoachingRequest"},"CompanionConnectCodeRequest":{"properties":{"channel":{"type":"string","enum":["telegram","whatsapp"],"title":"Channel"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"}},"type":"object","required":["channel"],"title":"CompanionConnectCodeRequest"},"CompanionPushRequest":{"properties":{"report_type":{"type":"string","enum":["summary","health","roi","review","onboarding"],"title":"Report Type","default":"summary"},"channel":{"anyOf":[{"type":"string","enum":["telegram","whatsapp"]},{"type":"null"}],"title":"Channel"}},"type":"object","title":"CompanionPushRequest"},"CompleteStepRequest":{"properties":{"closer_id":{"type":"string","title":"Closer Id"},"step_id":{"type":"string","title":"Step Id"},"client_id":{"type":"string","title":"Client Id","default":"default"},"metadata":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Metadata"}},"type":"object","required":["closer_id","step_id"],"title":"CompleteStepRequest"},"ConciergeRequest":{"properties":{"message":{"type":"string","title":"Message"}},"type":"object","required":["message"],"title":"ConciergeRequest"},"ConnectCrmRequest":{"properties":{"provider":{"type":"string","title":"Provider"},"fields":{"additionalProperties":{"type":"string"},"type":"object","title":"Fields"}},"type":"object","required":["provider","fields"],"title":"ConnectCrmRequest"},"CreateOrgPayload":{"properties":{"name":{"type":"string","title":"Name"},"owner_email":{"type":"string","format":"email","title":"Owner Email"},"call_limit":{"type":"integer","title":"Call Limit","default":10},"language":{"type":"string","title":"Language","default":"en"},"calendly_event_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Calendly Event Id"},"send_email":{"type":"boolean","title":"Send Email","default":true}},"type":"object","required":["name","owner_email"],"title":"CreateOrgPayload"},"CreatePaymentPayload":{"properties":{"client_id":{"type":"string","title":"Client Id"},"closing_flow_id":{"type":"string","title":"Closing Flow Id"},"amount":{"type":"number","title":"Amount"},"currency":{"type":"string","title":"Currency","default":"USD"},"description":{"type":"string","title":"Description","default":""},"provider":{"type":"string","title":"Provider","default":"stripe"},"installments":{"type":"integer","title":"Installments","default":1},"metadata":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Metadata"},"expires_hours":{"type":"integer","title":"Expires Hours","default":72}},"type":"object","required":["client_id","closing_flow_id","amount"],"title":"CreatePaymentPayload","description":"Create a payment link."},"CreateScenarioPayload":{"properties":{"client_id":{"type":"string","title":"Client Id"},"name":{"type":"string","title":"Name"},"friction_profile":{"type":"string","title":"Friction Profile"},"decision_profile":{"type":"string","title":"Decision Profile"},"monetary_profile":{"type":"string","title":"Monetary Profile"},"difficulty":{"type":"string","title":"Difficulty","default":"medium"},"deal_value":{"type":"number","title":"Deal Value","default":0},"description":{"type":"string","title":"Description","default":""}},"type":"object","required":["client_id","name","friction_profile","decision_profile","monetary_profile"],"title":"CreateScenarioPayload","description":"Create custom scenario."},"CreateSequencePayload":{"properties":{"client_id":{"type":"string","title":"Client Id"},"name":{"type":"string","title":"Name","default":""},"description":{"type":"string","title":"Description","default":""},"steps":{"items":{"$ref":"#/components/schemas/SequenceStep"},"type":"array","title":"Steps","default":[]},"auto_convert_on_positive":{"type":"boolean","title":"Auto Convert On Positive","default":true}},"type":"object","required":["client_id"],"title":"CreateSequencePayload","description":"Create a warm-up sequence."},"CreateWarmupRequest":{"properties":{"prospect_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prospect Email"},"prospect_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prospect Phone"},"prospect_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prospect Name"},"closer_id":{"type":"string","title":"Closer Id"},"closer_email":{"type":"string","title":"Closer Email"},"client_id":{"type":"string","title":"Client Id","default":""},"business_type":{"type":"string","title":"Business Type","default":"b2c"},"focus_area":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Focus Area"},"audio_mode":{"type":"boolean","title":"Audio Mode","default":false}},"type":"object","required":["closer_id","closer_email"],"title":"CreateWarmupRequest"},"DealDeskCreateRequest":{"properties":{"lead_name":{"type":"string","title":"Lead Name"},"lead_email":{"type":"string","title":"Lead Email"},"deal_value":{"type":"number","title":"Deal Value"},"product_name":{"type":"string","title":"Product Name"},"buyer_friction":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Buyer Friction"},"call_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Call Id"}},"type":"object","required":["lead_name","lead_email","deal_value","product_name"],"title":"DealDeskCreateRequest"},"DeliveryModeRequest":{"properties":{"call_id":{"type":"string","title":"Call Id"},"mode":{"type":"string","title":"Mode"}},"type":"object","required":["call_id","mode"],"title":"DeliveryModeRequest"},"DetectObjectionRequest":{"properties":{"text":{"type":"string","title":"Text"},"friction_profile":{"type":"string","title":"Friction Profile","default":""},"decision_profile":{"type":"string","title":"Decision Profile","default":""},"monetary_profile":{"type":"string","title":"Monetary Profile","default":""}},"type":"object","required":["text"],"title":"DetectObjectionRequest"},"EnrichBatchRequest":{"properties":{"prospects":{"items":{"$ref":"#/components/schemas/EnrichRequest"},"type":"array","title":"Prospects"}},"type":"object","required":["prospects"],"title":"EnrichBatchRequest"},"EnrichRequest":{"properties":{"name":{"type":"string","title":"Name"},"company":{"type":"string","title":"Company","default":""},"linkedin_url":{"type":"string","title":"Linkedin Url","default":""},"domain":{"type":"string","title":"Domain","default":""}},"type":"object","required":["name"],"title":"EnrichRequest"},"ExternalAnalysisResponse":{"properties":{"call_id":{"type":"string","title":"Call Id"},"status":{"type":"string","title":"Status"},"progress_pct":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Progress Pct"},"current_step":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Step"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"estimated_seconds_total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Estimated Seconds Total"},"estimated_seconds_remaining":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Estimated Seconds Remaining"},"estimated_queue_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Estimated Queue Seconds"},"queue_position":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Queue Position"},"estimated_completion":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Estimated Completion"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"report_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Report Url"},"report_proxy_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Report Proxy Url"},"score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Score"},"score_max":{"type":"integer","title":"Score Max","default":70},"verdict":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Verdict"},"verdict_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Verdict Code"},"grade":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Grade"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"},"quality_gate_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quality Gate Status"},"quality_gate_requires_review":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Quality Gate Requires Review"},"language_flag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language Flag"},"language_hold_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language Hold Reason"},"transcript_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transcript Text"},"error_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Code"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"retry_recommended":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Retry Recommended"},"user_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Message"}},"type":"object","required":["call_id","status"],"title":"ExternalAnalysisResponse","description":"GET /v1/external/analysis/{call_id}"},"ExternalCallDetailResponse":{"properties":{"call_id":{"type":"string","title":"Call Id"},"status":{"type":"string","title":"Status"},"progress_pct":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Progress Pct"},"current_step":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Step"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"estimated_seconds_total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Estimated Seconds Total"},"estimated_seconds_remaining":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Estimated Seconds Remaining"},"estimated_queue_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Estimated Queue Seconds"},"queue_position":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Queue Position"},"estimated_completion":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Estimated Completion"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"report_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Report Url"},"report_proxy_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Report Proxy Url"},"score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Score"},"score_max":{"type":"integer","title":"Score Max","default":70},"verdict":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Verdict"},"verdict_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Verdict Code"},"grade":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Grade"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"},"quality_gate_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quality Gate Status"},"quality_gate_requires_review":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Quality Gate Requires Review"},"language_flag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language Flag"},"language_hold_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language Hold Reason"},"transcript_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transcript Text"},"error_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Code"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"retry_recommended":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Retry Recommended"},"user_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Message"},"external_call_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Call Id"},"source_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Type"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["call_id","status"],"title":"ExternalCallDetailResponse"},"ExternalCallListItem":{"properties":{"call_id":{"type":"string","title":"Call Id"},"external_call_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Call Id"},"source_type":{"type":"string","title":"Source Type"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"status":{"type":"string","title":"Status"},"score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Score"},"score_max":{"type":"integer","title":"Score Max","default":70},"verdict":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Verdict"},"verdict_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Verdict Code"},"grade":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Grade"},"quality_gate_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quality Gate Status"},"quality_gate_requires_review":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Quality Gate Requires Review"},"language_flag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language Flag"},"report_proxy_path":{"type":"string","title":"Report Proxy Path"},"report_proxy_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Report Proxy Url"},"closer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Closer Name"},"prospect_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prospect Name"}},"type":"object","required":["call_id","source_type","status","report_proxy_path"],"title":"ExternalCallListItem"},"ExternalCallListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ExternalCallListItem"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"},"total_hint":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Hint"}},"type":"object","required":["items"],"title":"ExternalCallListResponse"},"ExternalDirectorBriefResponse":{"properties":{"call_id":{"type":"string","title":"Call Id"},"status":{"type":"string","title":"Status"},"locale":{"type":"string","title":"Locale","default":"es"},"banner_line":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Banner Line"},"digest_markdown":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Digest Markdown"},"acp_excerpt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Acp Excerpt"},"recovery_lines":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Recovery Lines"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"telegram_teaser_sent":{"type":"boolean","title":"Telegram Teaser Sent","default":false}},"type":"object","required":["call_id","status"],"title":"ExternalDirectorBriefResponse","description":"GET /v1/external/director-brief/{call_id} — HCE Director post-QC digest."},"ExternalIngestResponse":{"properties":{"call_id":{"type":"string","title":"Call Id"},"job_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Job Id"},"status":{"type":"string","title":"Status","default":"queued"},"estimated_seconds":{"type":"integer","title":"Estimated Seconds","default":180},"queue_position":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Queue Position"},"estimated_queue_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Estimated Queue Seconds"},"source_type":{"type":"string","title":"Source Type","default":"hce"}},"type":"object","required":["call_id"],"title":"ExternalIngestResponse","description":"POST /v1/external/ingest-audio"},"ExternalLanguageUpdate":{"properties":{"language":{"type":"string","title":"Language","description":"en or es"}},"type":"object","required":["language"],"title":"ExternalLanguageUpdate","description":"PATCH /v1/external/me/language"},"ExternalMeResponse":{"properties":{"client_id":{"type":"string","title":"Client Id"},"tier":{"type":"string","title":"Tier"},"company_name":{"type":"string","title":"Company Name"},"ingest_allowed":{"type":"boolean","title":"Ingest Allowed"},"preferred_language":{"type":"string","title":"Preferred Language","default":"en"},"capabilities":{"additionalProperties":{"type":"boolean"},"type":"object","title":"Capabilities"}},"type":"object","required":["client_id","tier","company_name","ingest_allowed"],"title":"ExternalMeResponse","description":"GET /v1/external/me"},"ExternalPlanUsageResponse":{"properties":{"billing_provider":{"type":"string","title":"Billing Provider","default":"whop"},"tier":{"type":"string","title":"Tier"},"tier_label":{"type":"string","title":"Tier Label"},"period_start":{"type":"string","title":"Period Start"},"period_end":{"type":"string","title":"Period End"},"ingests":{"$ref":"#/components/schemas/ExternalUsageBucket"},"scripts":{"$ref":"#/components/schemas/ExternalUsageBucket"},"usage_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Usage Percent"},"ingest_allowed":{"type":"boolean","title":"Ingest Allowed"},"upgrade_url":{"type":"string","title":"Upgrade Url"},"whop_manage_url":{"type":"string","title":"Whop Manage Url"},"whop_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Whop User Id"},"whop_plan_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Whop Plan Id"},"usage_bonus_ingests":{"type":"integer","title":"Usage Bonus Ingests","default":0}},"type":"object","required":["tier","tier_label","period_start","period_end","ingests","scripts","ingest_allowed","upgrade_url","whop_manage_url"],"title":"ExternalPlanUsageResponse","description":"GET /v1/external/plan-usage"},"ExternalUsageBucket":{"properties":{"used":{"type":"integer","title":"Used","default":0},"limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"},"remaining":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Remaining"},"unlimited":{"type":"boolean","title":"Unlimited","default":false}},"type":"object","title":"ExternalUsageBucket"},"FlowLogPayload":{"properties":{"event":{"type":"string","title":"Event"},"details":{"type":"object","title":"Details","default":{}}},"type":"object","required":["event"],"title":"FlowLogPayload","description":"Log an event in a closing flow."},"FreeTierRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"telegram_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Telegram Id"},"referrer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Referrer"},"consent":{"type":"boolean","title":"Consent","default":true}},"type":"object","required":["email"],"title":"FreeTierRequest"},"GHLRecordingPayload":{"properties":{"contact_id":{"type":"string","title":"Contact Id"},"location_id":{"type":"string","title":"Location Id"},"callId":{"type":"string","title":"Callid"},"recordingUrl":{"type":"string","title":"Recordingurl"},"duration":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration"},"callStartTime":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Callstarttime"},"callEndTime":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Callendtime"},"client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Id"}},"type":"object","required":["contact_id","location_id","callId","recordingUrl"],"title":"GHLRecordingPayload","description":"GoHighLevel webhook payload for recording completed."},"GenerateScriptRequest":{"properties":{"client_id":{"type":"string","title":"Client Id"},"business_type":{"type":"string","title":"Business Type","default":"b2c"},"mode":{"type":"string","title":"Mode","default":"generado"},"company_name":{"type":"string","title":"Company Name","default":""},"product_name":{"type":"string","title":"Product Name","default":""},"price_entry":{"type":"string","title":"Price Entry","default":""},"price_mid":{"type":"string","title":"Price Mid","default":""},"price_vip":{"type":"string","title":"Price Vip","default":""},"result_main":{"type":"string","title":"Result Main","default":""},"differentiator":{"type":"string","title":"Differentiator","default":""},"pilar_1":{"type":"string","title":"Pilar 1","default":""},"pilar_2":{"type":"string","title":"Pilar 2","default":""},"pilar_3":{"type":"string","title":"Pilar 3","default":""}},"type":"object","required":["client_id"],"title":"GenerateScriptRequest"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ICPConfig":{"properties":{"target_company_sizes":{"items":{"type":"string"},"type":"array","title":"Target Company Sizes","default":["smb","mid"]},"target_industries":{"items":{"type":"string"},"type":"array","title":"Target Industries","default":[]},"target_seniority":{"items":{"type":"string"},"type":"array","title":"Target Seniority","default":["manager","director","vp","c_level"]},"target_role_keywords":{"items":{"type":"string"},"type":"array","title":"Target Role Keywords","default":[]}},"type":"object","title":"ICPConfig"},"IngestCallRequest":{"properties":{"client_id":{"type":"string","title":"Client Id"},"closer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Closer Id"},"external_call_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Call Id"},"source_type":{"type":"string","title":"Source Type","default":"manual"},"audio_url":{"type":"string","title":"Audio Url"},"duration_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Seconds"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"ended_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ended At"},"transcript_format":{"type":"string","title":"Transcript Format","default":"raw"}},"type":"object","required":["client_id","audio_url"],"title":"IngestCallRequest","description":"Generic/manual call ingest payload."},"IngestResponse":{"properties":{"call_id":{"type":"string","title":"Call Id"},"job_id":{"type":"integer","title":"Job Id"},"status":{"type":"string","title":"Status","default":"accepted"},"message":{"type":"string","title":"Message","default":"Call queued for processing"}},"type":"object","required":["call_id","job_id"],"title":"IngestResponse"},"InvitePayload":{"properties":{"org_id":{"type":"string","title":"Org Id"},"email":{"type":"string","format":"email","title":"Email"},"role":{"type":"string","title":"Role","default":"member"},"send_email":{"type":"boolean","title":"Send Email","default":true}},"type":"object","required":["org_id","email"],"title":"InvitePayload"},"JourneyUpsertPayload":{"properties":{"tenant_id":{"type":"string","title":"Tenant Id"},"phone":{"type":"string","title":"Phone"},"phase":{"type":"string","title":"Phase","default":"new"},"classification":{"type":"string","title":"Classification","default":""},"current_channel":{"type":"string","title":"Current Channel","default":""},"qual_score":{"type":"integer","title":"Qual Score","default":0},"lead_name":{"type":"string","title":"Lead Name","default":""},"voice_session_id":{"type":"string","title":"Voice Session Id","default":""},"voice_outcome":{"type":"string","title":"Voice Outcome","default":""},"friction_profile":{"type":"string","title":"Friction Profile","default":""},"decision_profile":{"type":"string","title":"Decision Profile","default":""},"monetary_profile":{"type":"string","title":"Monetary Profile","default":""}},"type":"object","required":["tenant_id","phone"],"title":"JourneyUpsertPayload","description":"Payload from WCC unified_session.py _maybe_sync_to_quantumcore."},"LeadContextProfileRequest":{"properties":{"default_ticket_range":{"type":"string","title":"Default Ticket Range","default":""},"default_currency_code":{"type":"string","title":"Default Currency Code","default":""},"default_market_region":{"type":"string","title":"Default Market Region","default":""},"default_sales_cycle_type":{"type":"string","title":"Default Sales Cycle Type","default":""},"default_lead_channel":{"type":"string","title":"Default Lead Channel","default":""},"default_language_code":{"type":"string","title":"Default Language Code","default":"es"},"is_active":{"type":"boolean","title":"Is Active","default":true}},"type":"object","title":"LeadContextProfileRequest"},"LeadContextRequest":{"properties":{"lead_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Source"},"lead_channel":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Channel"},"source_platform":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Platform"},"campaign_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campaign Id"},"campaign_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campaign Label"},"appointment_origin":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Appointment Origin"},"funnel_stage_before_call":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Funnel Stage Before Call"},"lead_temperature":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Temperature"},"lead_intent_level":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Intent Level"},"ticket_range":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ticket Range"},"currency_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency Code"},"market_region":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Market Region"},"sales_cycle_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sales Cycle Type"},"lead_created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Lead Created At"},"scheduled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled At"},"is_inbound":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Inbound"},"is_outbound":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Outbound"},"is_test_data":{"type":"boolean","title":"Is Test Data","default":false}},"type":"object","title":"LeadContextRequest"},"LeadScoreRequest":{"properties":{"signals":{"items":{"$ref":"#/components/schemas/SignalDetection"},"type":"array","title":"Signals"},"prospect":{"type":"object","title":"Prospect","default":{}},"icp":{"anyOf":[{"$ref":"#/components/schemas/ICPConfig"},{"type":"null"}]}},"type":"object","required":["signals"],"title":"LeadScoreRequest"},"LiveCoachRequest":{"properties":{"client_id":{"type":"string","title":"Client Id"},"call_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Call Id"},"closer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Closer Id"},"actor_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor Id"},"recent_segments":{"items":{"type":"object"},"type":"array","title":"Recent Segments"},"explicit_objection":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Explicit Objection"},"safe_mode":{"type":"boolean","title":"Safe Mode","default":true},"deterministic_mode":{"type":"boolean","title":"Deterministic Mode","default":true},"record_event":{"type":"boolean","title":"Record Event","default":false}},"type":"object","required":["client_id","recent_segments"],"title":"LiveCoachRequest"},"LiveRadarStartRequest":{"properties":{"call_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Call Id","description":"Optional call UUID; generated if omitted"},"business_type":{"type":"string","title":"Business Type","default":"b2c"}},"type":"object","title":"LiveRadarStartRequest"},"LoginRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"}},"type":"object","required":["email"],"title":"LoginRequest"},"ManualAuditRequest":{"properties":{"filename":{"type":"string","title":"Filename"},"transcript":{"type":"string","title":"Transcript"}},"type":"object","required":["filename","transcript"],"title":"ManualAuditRequest"},"MarketProfileRequest":{"properties":{"industry_label":{"type":"string","title":"Industry Label"},"icp_label":{"type":"string","title":"Icp Label"},"offer_label":{"type":"string","title":"Offer Label"},"sales_motion":{"type":"string","title":"Sales Motion","default":"appointment"},"language_code":{"type":"string","title":"Language Code","default":"es"},"is_active":{"type":"boolean","title":"Is Active","default":true}},"type":"object","required":["industry_label","icp_label","offer_label"],"title":"MarketProfileRequest"},"MonitorConfig":{"properties":{"competitors":{"items":{"additionalProperties":{"type":"string"},"type":"object"},"type":"array","title":"Competitors","default":[]},"influencers":{"items":{"additionalProperties":{"type":"string"},"type":"object"},"type":"array","title":"Influencers","default":[]},"target_companies":{"items":{"additionalProperties":{"type":"string"},"type":"object"},"type":"array","title":"Target Companies","default":[]},"keywords":{"items":{"type":"string"},"type":"array","title":"Keywords","default":[]}},"type":"object","title":"MonitorConfig"},"NegotiationRequest":{"properties":{"flow_id":{"type":"string","title":"Flow Id"},"prospect_offer":{"type":"number","title":"Prospect Offer"},"prospect_message":{"type":"string","title":"Prospect Message","default":""}},"type":"object","required":["flow_id","prospect_offer"],"title":"NegotiationRequest"},"NightMessageRequest":{"properties":{"flow_id":{"type":"string","title":"Flow Id"},"message":{"type":"string","title":"Message"},"deal_value":{"type":"number","title":"Deal Value","default":0}},"type":"object","required":["flow_id","message"],"title":"NightMessageRequest"},"NightModeConfigRequest":{"properties":{"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"},"start_hour":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Start Hour"},"end_hour":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"End Hour"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"},"max_auto_close_ticket":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Auto Close Ticket"},"min_confidence_threshold":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Min Confidence Threshold"},"max_objection_attempts":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Objection Attempts"},"blocked_keywords":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Blocked Keywords"},"weekend_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Weekend Enabled"},"morning_report":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Morning Report"}},"type":"object","title":"NightModeConfigRequest"},"NotifyPayload":{"properties":{"channel":{"type":"string","title":"Channel","default":"telegram"},"target":{"type":"string","title":"Target","default":""},"message":{"type":"string","title":"Message","default":""},"priority":{"type":"string","title":"Priority","default":"normal"}},"type":"object","title":"NotifyPayload","description":"Send notification to a closer human."},"NotifyRequest":{"properties":{"score_result":{"type":"object","title":"Score Result"},"prospect":{"type":"object","title":"Prospect"},"message_preview":{"type":"string","title":"Message Preview","default":""}},"type":"object","required":["score_result","prospect"],"title":"NotifyRequest"},"OathCompleteRequest":{"properties":{"version":{"type":"string","title":"Version","default":"v1"}},"type":"object","title":"OathCompleteRequest"},"ObjectionRequest":{"properties":{"flow_id":{"type":"string","title":"Flow Id"},"objection_text":{"type":"string","title":"Objection Text"},"objection_type":{"type":"string","title":"Objection Type"},"response_used":{"type":"string","title":"Response Used"},"response_system":{"type":"string","title":"Response System"}},"type":"object","required":["flow_id","objection_text","objection_type","response_used","response_system"],"title":"ObjectionRequest"},"OutcomeRequest":{"properties":{"prediction_id":{"type":"string","title":"Prediction Id"},"actual_outcome":{"type":"string","pattern":"^(won|lost|follow_up|pending)$","title":"Actual Outcome"}},"type":"object","required":["prediction_id","actual_outcome"],"title":"OutcomeRequest"},"OutcomeTruthRequest":{"properties":{"appointment_outcome":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Appointment Outcome"},"sale_outcome":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sale Outcome"},"deal_status_after_call":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Status After Call"},"lost_reason_human":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lost Reason Human"},"deal_value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Deal Value"},"currency_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency Code"},"payment_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payment Type"},"deposit_taken":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Deposit Taken"},"next_step_defined":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Next Step Defined"},"follow_up_required":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Follow Up Required"},"follow_up_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Follow Up Date"},"won_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Won At"},"lost_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Lost At"},"source_of_truth":{"type":"string","title":"Source Of Truth","default":"owner_manual"},"is_test_data":{"type":"boolean","title":"Is Test Data","default":false}},"type":"object","title":"OutcomeTruthRequest"},"PaymentLinkRequest":{"properties":{"flow_id":{"type":"string","title":"Flow Id"},"amount":{"type":"number","title":"Amount"},"installments":{"type":"integer","title":"Installments","default":1}},"type":"object","required":["flow_id","amount"],"title":"PaymentLinkRequest"},"PersonaSelectRequest":{"properties":{"trigger":{"type":"string","title":"Trigger"},"buyer_friction":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Buyer Friction"},"deal_value":{"type":"number","title":"Deal Value","default":0},"days_since_contact":{"type":"integer","title":"Days Since Contact","default":0}},"type":"object","required":["trigger"],"title":"PersonaSelectRequest"},"PersonalizeRequest":{"properties":{"signal_id":{"type":"string","title":"Signal Id"},"signal_metadata":{"type":"object","title":"Signal Metadata","default":{}},"prospect_name":{"type":"string","title":"Prospect Name","default":""},"prospect_company":{"type":"string","title":"Prospect Company","default":""},"prospect_role":{"type":"string","title":"Prospect Role","default":""},"prospect_email":{"type":"string","title":"Prospect Email","default":""},"channel":{"type":"string","title":"Channel","default":"whatsapp"},"friction_profile":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Friction Profile"},"decision_profile":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Decision Profile"},"monetary_profile":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Monetary Profile"}},"type":"object","required":["signal_id"],"title":"PersonalizeRequest"},"PracticeChunkRequest":{"properties":{"session_id":{"type":"string","title":"Session Id"},"text":{"type":"string","title":"Text"},"speaker":{"type":"string","title":"Speaker","default":"closer"}},"type":"object","required":["session_id","text"],"title":"PracticeChunkRequest"},"PreCallBriefingRequest":{"properties":{"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"lead_data":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Lead Data"}},"type":"object","title":"PreCallBriefingRequest"},"PredictRequest":{"properties":{"call_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Call Id"},"closer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Closer Id"}},"type":"object","title":"PredictRequest"},"ProcessMessagePayload":{"properties":{"message":{"type":"string","title":"Message"},"sender":{"type":"string","title":"Sender","default":"prospect"}},"type":"object","required":["message"],"title":"ProcessMessagePayload","description":"Process a message in closing flow."},"ProfileRequest":{"properties":{"call_id":{"type":"string","title":"Call Id"},"participant_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Participant Name"},"transcript_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transcript Text"}},"type":"object","required":["call_id"],"title":"ProfileRequest"},"PublishPayload":{"properties":{"review_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Review Notes"}},"type":"object","title":"PublishPayload"},"PurchaseEmailRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source","default":"activate_gate"}},"type":"object","required":["email"],"title":"PurchaseEmailRequest"},"RecallBotResponse":{"properties":{"bot_id":{"type":"string","title":"Bot Id"},"recall_bot_id":{"type":"string","title":"Recall Bot Id"},"client_id":{"type":"string","title":"Client Id"},"bot_status":{"type":"string","title":"Bot Status"},"meeting_url":{"type":"string","title":"Meeting Url"},"platform":{"type":"string","title":"Platform"},"call_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Call Id"},"message":{"type":"string","title":"Message","default":"ok"}},"type":"object","required":["bot_id","recall_bot_id","client_id","bot_status","meeting_url","platform"],"title":"RecallBotResponse","description":"Response for bot creation or status."},"RecallCreateBotRequest":{"properties":{"client_id":{"type":"string","title":"Client Id"},"meeting_url":{"type":"string","title":"Meeting Url"},"platform":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Platform"},"closer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Closer Id"},"contact_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Email"},"scheduled_for":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled For"},"bot_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bot Name"}},"type":"object","required":["client_id","meeting_url"],"title":"RecallCreateBotRequest","description":"Admin request to create a Recall bot for a meeting."},"RecallIntegrationStatus":{"properties":{"client_id":{"type":"string","title":"Client Id"},"provider":{"type":"string","title":"Provider","default":"recall"},"status":{"type":"string","title":"Status"},"meeting_platform_default":{"type":"string","title":"Meeting Platform Default"},"total_bots":{"type":"integer","title":"Total Bots","default":0},"active_bots":{"type":"integer","title":"Active Bots","default":0}},"type":"object","required":["client_id","status","meeting_platform_default"],"title":"RecallIntegrationStatus","description":"Integration status for a client."},"RecordOutcomeRequest":{"properties":{"call_id":{"type":"string","title":"Call Id"},"outcome":{"type":"string","title":"Outcome"},"deal_value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Deal Value"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["call_id","outcome"],"title":"RecordOutcomeRequest"},"RecordPatternPayload":{"properties":{"client_id":{"type":"string","title":"Client Id"},"objection_text":{"type":"string","title":"Objection Text"},"objection_type":{"type":"string","title":"Objection Type","default":"unknown"},"response_text":{"type":"string","title":"Response Text","default":""},"outcome":{"type":"string","title":"Outcome","default":"unresolved"},"lead_id":{"type":"string","title":"Lead Id","default":""},"conversation_id":{"type":"string","title":"Conversation Id","default":""},"closer_id":{"type":"string","title":"Closer Id","default":""},"profiles":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Profiles"}},"type":"object","required":["client_id","objection_text"],"title":"RecordPatternPayload","description":"Record an objection pattern from a conversation."},"ReminderPayload":{"properties":{"org_id":{"type":"string","title":"Org Id"}},"type":"object","required":["org_id"],"title":"ReminderPayload"},"RequestAccessPayload":{"properties":{"email":{"type":"string","format":"email","title":"Email"}},"type":"object","required":["email"],"title":"RequestAccessPayload"},"RequestUploadRequest":{"properties":{"filename":{"type":"string","title":"Filename"},"content_type":{"type":"string","title":"Content Type","default":"audio/mpeg"},"client_id":{"type":"string","title":"Client Id","default":"default"}},"type":"object","required":["filename"],"title":"RequestUploadRequest","description":"Request a temporary upload slot for large audio files."},"RequestUploadResponse":{"properties":{"token":{"type":"string","title":"Token"},"upload_secret":{"type":"string","title":"Upload Secret"},"upload_url":{"type":"string","title":"Upload Url"},"audio_url":{"type":"string","title":"Audio Url"},"status_url":{"type":"string","title":"Status Url"},"expires_in":{"type":"integer","title":"Expires In"}},"type":"object","required":["token","upload_secret","upload_url","audio_url","status_url","expires_in"],"title":"RequestUploadResponse","description":"Upload slot created successfully."},"ResolutionRequest":{"properties":{"objection_type":{"type":"string","title":"Objection Type"},"response_system":{"type":"string","title":"Response System"},"resolved":{"type":"boolean","title":"Resolved"}},"type":"object","required":["objection_type","response_system","resolved"],"title":"ResolutionRequest"},"ResurrectionRequest":{"properties":{"client_id":{"type":"string","title":"Client Id"},"closer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Closer Id"},"days_since_lost":{"type":"integer","title":"Days Since Lost","default":90},"loss_reason_filter":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Loss Reason Filter"},"dry_run":{"type":"boolean","title":"Dry Run","default":true}},"type":"object","required":["client_id"],"title":"ResurrectionRequest"},"RevokePayload":{"properties":{"org_id":{"type":"string","title":"Org Id"},"email":{"type":"string","format":"email","title":"Email"}},"type":"object","required":["org_id","email"],"title":"RevokePayload"},"SalesCallScheduledEvent":{"properties":{"client_id":{"type":"string","title":"Client Id"},"external_event_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Event Id"},"source_integration_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Integration Id"},"source":{"type":"string","title":"Source"},"meeting_url":{"type":"string","title":"Meeting Url"},"platform":{"type":"string","title":"Platform"},"scheduled_at":{"type":"string","format":"date-time","title":"Scheduled At"},"closer_email":{"type":"string","format":"email","title":"Closer Email"},"closer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Closer Name"},"prospect_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prospect Name"},"prospect_email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Prospect Email"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"metadata":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Metadata"}},"type":"object","required":["client_id","source","meeting_url","platform","scheduled_at","closer_email"],"title":"SalesCallScheduledEvent"},"SaveScriptRequest":{"properties":{"client_id":{"type":"string","title":"Client Id"},"script_mode":{"type":"string","title":"Script Mode","default":"ganador"},"script_name":{"type":"string","title":"Script Name","default":"Guion QuantumCore"},"script_yaml":{"type":"string","title":"Script Yaml","default":""},"variables":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Variables"},"business_type":{"type":"string","title":"Business Type","default":"b2c"}},"type":"object","required":["client_id"],"title":"SaveScriptRequest"},"SendMessagePayload":{"properties":{"client_id":{"type":"string","title":"Client Id"},"lead_id":{"type":"string","title":"Lead Id"},"channel":{"type":"string","title":"Channel"},"message":{"type":"string","title":"Message"}},"type":"object","required":["client_id","lead_id","channel","message"],"title":"SendMessagePayload","description":"Send message request."},"SequenceRequest":{"properties":{"scenario":{"type":"string","title":"Scenario","default":"lead_caliente"},"last_step":{"type":"integer","title":"Last Step","default":0},"touchbase_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Touchbase Date"},"friction_profile":{"type":"string","title":"Friction Profile","default":"default"}},"type":"object","title":"SequenceRequest"},"SequenceStep":{"properties":{"delay_hours":{"type":"number","title":"Delay Hours","default":0},"channel":{"type":"string","title":"Channel","default":"whatsapp"},"message_template":{"type":"string","title":"Message Template","default":""},"condition":{"type":"string","title":"Condition","default":""},"follow_up_action":{"type":"string","title":"Follow Up Action","default":""}},"type":"object","title":"SequenceStep","description":"A single step in a warm-up sequence."},"SequenceValidateRequest":{"properties":{"sent_steps":{"items":{"type":"object"},"type":"array","title":"Sent Steps"}},"type":"object","required":["sent_steps"],"title":"SequenceValidateRequest"},"SignalDetection":{"properties":{"signal_id":{"type":"string","title":"Signal Id"},"client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Id"},"prospect_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prospect Email"},"prospect_linkedin":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prospect Linkedin"},"prospect_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prospect Name"},"company_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Name"},"metadata":{"type":"object","title":"Metadata","default":{}}},"type":"object","required":["signal_id"],"title":"SignalDetection"},"SignupRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"company_name":{"type":"string","title":"Company Name","default":""},"industry_label":{"type":"string","title":"Industry Label","default":""},"icp_label":{"type":"string","title":"Icp Label","default":""},"offer_label":{"type":"string","title":"Offer Label","default":""},"sales_motion":{"type":"string","title":"Sales Motion","default":"appointment"},"language_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language Code"}},"type":"object","required":["email"],"title":"SignupRequest"},"SimulatedEndRequest":{"properties":{"session_id":{"type":"string","title":"Session Id"}},"type":"object","required":["session_id"],"title":"SimulatedEndRequest"},"SimulatedTurnRequest":{"properties":{"session_id":{"type":"string","title":"Session Id"},"closer_message":{"type":"string","title":"Closer Message"}},"type":"object","required":["session_id","closer_message"],"title":"SimulatedTurnRequest"},"StartABTestPayload":{"properties":{"client_id":{"type":"string","title":"Client Id"},"config_a":{"type":"object","title":"Config A"},"config_b":{"type":"object","title":"Config B"}},"type":"object","required":["client_id","config_a","config_b"],"title":"StartABTestPayload","description":"Start A/B test request."},"StartFlowPayload":{"properties":{"lead_name":{"type":"string","title":"Lead Name","default":""},"lead_phone":{"type":"string","title":"Lead Phone","default":""},"lead_email":{"type":"string","title":"Lead Email","default":""},"classification":{"type":"string","title":"Classification","default":""},"friction_profile":{"type":"string","title":"Friction Profile","default":""},"decision_profile":{"type":"string","title":"Decision Profile","default":""},"monetary_profile":{"type":"string","title":"Monetary Profile","default":""},"estimated_value":{"type":"number","title":"Estimated Value","default":0}},"type":"object","title":"StartFlowPayload","description":"Start a closing flow."},"StartPracticeRequest":{"properties":{"scenario_id":{"type":"string","title":"Scenario Id"},"closer_id":{"type":"string","title":"Closer Id"},"closer_email":{"type":"string","title":"Closer Email"},"client_id":{"type":"string","title":"Client Id","default":"practice"}},"type":"object","required":["scenario_id","closer_id","closer_email"],"title":"StartPracticeRequest"},"StartSessionPayload":{"properties":{"mode":{"type":"string","title":"Mode"},"business_type":{"type":"string","title":"Business Type"},"input_data":{"type":"object","title":"Input Data","default":{}}},"type":"object","required":["mode","business_type"],"title":"StartSessionPayload","description":"Start a script builder session."},"StartSessionRequest":{"properties":{"call_id":{"type":"string","title":"Call Id"},"client_id":{"type":"string","title":"Client Id"},"closer_id":{"type":"string","title":"Closer Id"},"closer_email":{"type":"string","title":"Closer Email"},"business_type":{"type":"string","title":"Business Type","default":"b2c"},"bridge_id":{"type":"string","title":"Bridge Id","default":""},"coaching_surface":{"type":"string","title":"Coaching Surface","default":"playbook"},"delivery_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Delivery Mode"}},"type":"object","required":["call_id","client_id","closer_id","closer_email"],"title":"StartSessionRequest"},"StartSimulatedPracticeRequest":{"properties":{"profile_key":{"type":"string","title":"Profile Key"},"closer_id":{"type":"string","title":"Closer Id"},"closer_email":{"type":"string","title":"Closer Email"},"client_id":{"type":"string","title":"Client Id","default":"practice"}},"type":"object","required":["profile_key","closer_id","closer_email"],"title":"StartSimulatedPracticeRequest"},"StartSimulationPayload":{"properties":{"client_id":{"type":"string","title":"Client Id"},"scenario":{"anyOf":[{"type":"string"},{"type":"object"}],"title":"Scenario"}},"type":"object","required":["client_id","scenario"],"title":"StartSimulationPayload","description":"Start simulation request."},"StartSparringRequest":{"properties":{"scenario_id":{"type":"string","title":"Scenario Id"},"closer_id":{"type":"string","title":"Closer Id","default":""},"closer_email":{"type":"string","title":"Closer Email","default":""},"client_id":{"type":"string","title":"Client Id","default":"sparring"},"business_context":{"type":"string","title":"Business Context","default":"un servicio de alto valor que transforma tu negocio"}},"type":"object","required":["scenario_id"],"title":"StartSparringRequest"},"StartWarmupPayload":{"properties":{"client_id":{"type":"string","title":"Client Id"},"lead_id":{"type":"string","title":"Lead Id"},"sequence_id":{"type":"string","title":"Sequence Id"}},"type":"object","required":["client_id","lead_id","sequence_id"],"title":"StartWarmupPayload","description":"Start a warm-up for a lead."},"TeamsAnalysisResponse":{"properties":{"call_id":{"type":"string","title":"Call Id"},"status":{"type":"string","title":"Status"},"progress_pct":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Progress Pct"},"current_step":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Step"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"estimated_seconds_total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Estimated Seconds Total"},"estimated_seconds_remaining":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Estimated Seconds Remaining"},"estimated_queue_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Estimated Queue Seconds"},"queue_position":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Queue Position"},"estimated_completion":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Estimated Completion"},"report_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Report Url"},"report_proxy_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Report Proxy Url"},"score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Score"},"score_max":{"type":"integer","title":"Score Max","default":70},"verdict":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Verdict"},"verdict_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Verdict Code"},"grade":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Grade"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"},"quality_gate_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quality Gate Status"},"quality_gate_requires_review":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Quality Gate Requires Review"},"language_flag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language Flag"},"language_hold_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language Hold Reason"},"transcript_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transcript Text"},"error_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Code"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"retry_recommended":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Retry Recommended"},"user_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Message"}},"type":"object","required":["call_id","status"],"title":"TeamsAnalysisResponse","description":"GET /v1/teams/analysis/{call_id} — analysis status for a call."},"TeamsCheckoutIntentRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"org_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Name"},"sdr_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sdr Uid"},"call_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Call Id"},"language":{"type":"string","title":"Language","default":"en"}},"type":"object","required":["email"],"title":"TeamsCheckoutIntentRequest"},"TeamsCreditBalanceResponse":{"properties":{"granted":{"type":"integer","title":"Granted"},"consumed":{"type":"integer","title":"Consumed"},"available":{"type":"integer","title":"Available"},"upgrade_url":{"type":"string","title":"Upgrade Url"}},"type":"object","required":["granted","consumed","available","upgrade_url"],"title":"TeamsCreditBalanceResponse"},"TeamsIngestResponse":{"properties":{"call_id":{"type":"string","title":"Call Id"},"job_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Job Id"},"status":{"type":"string","title":"Status","default":"queued"},"source_type":{"type":"string","title":"Source Type","default":"teams"},"idempotent":{"type":"boolean","title":"Idempotent","default":false}},"type":"object","required":["call_id"],"title":"TeamsIngestResponse","description":"POST /v1/teams/audio — accepted analysis (202)."},"ToolSubmissionRequest":{"properties":{"inputs":{"type":"object","title":"Inputs"}},"type":"object","required":["inputs"],"title":"ToolSubmissionRequest"},"TrainingMessagePayload":{"properties":{"message":{"type":"string","title":"Message"}},"type":"object","required":["message"],"title":"TrainingMessagePayload","description":"Send message in simulation."},"TranscriptChunkRequest":{"properties":{"call_id":{"type":"string","title":"Call Id"},"speaker":{"type":"string","title":"Speaker"},"text":{"type":"string","title":"Text"},"is_final":{"type":"boolean","title":"Is Final","default":true}},"type":"object","required":["call_id","speaker","text"],"title":"TranscriptChunkRequest"},"UpdateCloserStatusRequest":{"properties":{"is_active":{"type":"boolean","title":"Is Active"}},"type":"object","required":["is_active"],"title":"UpdateCloserStatusRequest"},"UpdateFlowStatusPayload":{"properties":{"status":{"type":"string","title":"Status"},"reason":{"type":"string","title":"Reason","default":""}},"type":"object","required":["status"],"title":"UpdateFlowStatusPayload","description":"Update closing flow status."},"UpdateModeRequest":{"properties":{"client_id":{"type":"string","title":"Client Id"},"script_mode":{"type":"string","title":"Script Mode"}},"type":"object","required":["client_id","script_mode"],"title":"UpdateModeRequest"},"UpdateVariablesRequest":{"properties":{"client_id":{"type":"string","title":"Client Id"},"variables":{"type":"object","title":"Variables"}},"type":"object","required":["client_id","variables"],"title":"UpdateVariablesRequest"},"UpdateWarmupStatusPayload":{"properties":{"status":{"type":"string","title":"Status"},"reason":{"type":"string","title":"Reason","default":""}},"type":"object","required":["status"],"title":"UpdateWarmupStatusPayload","description":"Update warmup instance status."},"UploadStatusResponse":{"properties":{"token":{"type":"string","title":"Token"},"status":{"type":"string","title":"Status"},"filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filename"},"content_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Type"},"client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Id"},"file_size":{"type":"integer","title":"File Size","default":0},"expires_in":{"type":"integer","title":"Expires In"}},"type":"object","required":["token","status","expires_in"],"title":"UploadStatusResponse","description":"Current status of an upload slot."},"UpsertGhlRequest":{"properties":{"location_id":{"type":"string","title":"Location Id"}},"type":"object","required":["location_id"],"title":"UpsertGhlRequest"},"UpsertLlmRequest":{"properties":{"provider":{"type":"string","title":"Provider"},"api_key":{"type":"string","title":"Api Key"}},"type":"object","required":["provider","api_key"],"title":"UpsertLlmRequest"},"UsageBonusRequest":{"properties":{"bonus_ingests":{"type":"integer","title":"Bonus Ingests","default":0}},"type":"object","title":"UsageBonusRequest"},"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"},"VerifyEmailRequest":{"properties":{"token":{"type":"string","title":"Token"}},"type":"object","required":["token"],"title":"VerifyEmailRequest"},"VerifyRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"token":{"type":"string","title":"Token"}},"type":"object","required":["email","token"],"title":"VerifyRequest"},"VerifyStepRequest":{"properties":{"closer_id":{"type":"string","title":"Closer Id"},"step_id":{"type":"string","title":"Step Id"},"client_id":{"type":"string","title":"Client Id","default":"default"},"api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Key"},"business_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Business Type"}},"type":"object","required":["closer_id","step_id"],"title":"VerifyStepRequest"},"VoiceSessionRequest":{"properties":{"closer_id":{"type":"string","title":"Closer Id"},"call_id":{"type":"string","title":"Call Id"}},"type":"object","required":["closer_id","call_id"],"title":"VoiceSessionRequest"},"WCCLeadPayload":{"properties":{"lead_id":{"type":"string","title":"Lead Id"},"client_slug":{"type":"string","title":"Client Slug"},"name":{"type":"string","title":"Name"},"phone":{"type":"string","title":"Phone"},"email":{"type":"string","title":"Email","default":""},"classification":{"type":"string","title":"Classification","default":""},"quantum_score":{"type":"number","title":"Quantum Score","default":0.0},"friction_profile":{"type":"string","title":"Friction Profile","default":""},"decision_profile":{"type":"string","title":"Decision Profile","default":""},"monetary_profile":{"type":"string","title":"Monetary Profile","default":""},"trigger_event":{"type":"string","title":"Trigger Event","default":""},"pain_points":{"items":{"type":"string"},"type":"array","title":"Pain Points","default":[]},"budget_range":{"type":"string","title":"Budget Range","default":""},"company_size":{"type":"string","title":"Company Size","default":""},"industry":{"type":"string","title":"Industry","default":""},"crm_type":{"type":"string","title":"Crm Type","default":""},"crm_contact_id":{"type":"string","title":"Crm Contact Id","default":""},"qualified_at":{"type":"string","title":"Qualified At","default":""},"source":{"type":"string","title":"Source","default":"wcc"}},"type":"object","required":["lead_id","client_slug","name","phone"],"title":"WCCLeadPayload","description":"Lead payload from WCC webhook."},"WorkspaceActionRequest":{"properties":{"action_id":{"type":"string","enum":["daily_brief_operator","meeting_prep_agent","install_daily_brief_cron","deal_risk_radar","manager_coaching_pack","follow_up_brief","account_brief","ops_priority","prepare_renewal","crm_snapshot","premium_research","pipeline_research","explain_call","explain_method","send_digest"],"title":"Action Id"},"prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt"},"call_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Call Id"},"article_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Article Slug"},"channel":{"anyOf":[{"type":"string","enum":["telegram","whatsapp"]},{"type":"null"}],"title":"Channel"}},"type":"object","required":["action_id"],"title":"WorkspaceActionRequest"},"WorkspaceChannelRequest":{"properties":{"channel":{"type":"string","enum":["telegram","whatsapp"],"title":"Channel"},"report_type":{"type":"string","enum":["daily_brief","summary","health","roi","review","onboarding"],"title":"Report Type","default":"daily_brief"}},"type":"object","required":["channel"],"title":"WorkspaceChannelRequest"},"WorkspaceChatRequest":{"properties":{"message":{"type":"string","title":"Message"}},"type":"object","required":["message"],"title":"WorkspaceChatRequest"},"ZoomPayloadData":{"properties":{"meeting_id":{"type":"string","title":"Meeting Id"},"recording_files":{"items":{"$ref":"#/components/schemas/ZoomRecordingFile"},"type":"array","title":"Recording Files"},"host_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Host Email"},"duration":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration"},"start_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Time"},"end_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Time"},"client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Id"}},"type":"object","required":["meeting_id","recording_files"],"title":"ZoomPayloadData"},"ZoomRecordingFile":{"properties":{"download_url":{"type":"string","title":"Download Url"},"file_type":{"type":"string","title":"File Type","default":"mp4"},"recording_type":{"type":"string","title":"Recording Type","default":"shared_screen_with_speaker_view"}},"type":"object","required":["download_url"],"title":"ZoomRecordingFile"},"ZoomRecordingPayload":{"properties":{"event":{"type":"string","title":"Event","default":"recording.completed"},"payload":{"$ref":"#/components/schemas/ZoomPayloadData"}},"type":"object","required":["payload"],"title":"ZoomRecordingPayload","description":"Zoom webhook payload for recording completed."}},"securitySchemes":{"APIKeyHeader":{"type":"apiKey","in":"header","name":"X-API-Key"}}}}