{"openapi":"3.1.0","info":{"title":"Pragma","version":"0.1.0"},"paths":{"/webhooks/wecom":{"get":{"tags":["wecom"],"summary":"Wecom Verify","operationId":"wecom_verify_webhooks_wecom_get","parameters":[{"name":"msg_signature","in":"query","required":true,"schema":{"type":"string","title":"Msg Signature"}},{"name":"timestamp","in":"query","required":true,"schema":{"type":"string","title":"Timestamp"}},{"name":"nonce","in":"query","required":true,"schema":{"type":"string","title":"Nonce"}},{"name":"echostr","in":"query","required":true,"schema":{"type":"string","title":"Echostr"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["wecom"],"summary":"Wecom Receive","operationId":"wecom_receive_webhooks_wecom_post","parameters":[{"name":"msg_signature","in":"query","required":true,"schema":{"type":"string","title":"Msg Signature"}},{"name":"timestamp","in":"query","required":true,"schema":{"type":"string","title":"Timestamp"}},{"name":"nonce","in":"query","required":true,"schema":{"type":"string","title":"Nonce"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/whatsapp":{"get":{"tags":["whatsapp"],"summary":"Whatsapp Verify","description":"Meta webhook verification — returns hub.challenge when verify_token matches.","operationId":"whatsapp_verify_webhooks_whatsapp_get","parameters":[{"name":"hub.mode","in":"query","required":false,"schema":{"type":"string","default":"","title":"Hub.Mode"}},{"name":"hub.challenge","in":"query","required":false,"schema":{"type":"string","default":"","title":"Hub.Challenge"}},{"name":"hub.verify_token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Hub.Verify Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["whatsapp"],"summary":"Whatsapp Receive","description":"Receive inbound WhatsApp messages from Meta Cloud API.","operationId":"whatsapp_receive_webhooks_whatsapp_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/webhooks/wechat-oa":{"get":{"tags":["wechat_oa"],"summary":"Wechat Oa Verify","operationId":"wechat_oa_verify_webhooks_wechat_oa_get","parameters":[{"name":"msg_signature","in":"query","required":true,"schema":{"type":"string","title":"Msg Signature"}},{"name":"timestamp","in":"query","required":true,"schema":{"type":"string","title":"Timestamp"}},{"name":"nonce","in":"query","required":true,"schema":{"type":"string","title":"Nonce"}},{"name":"echostr","in":"query","required":true,"schema":{"type":"string","title":"Echostr"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["wechat_oa"],"summary":"Wechat Oa Receive","operationId":"wechat_oa_receive_webhooks_wechat_oa_post","parameters":[{"name":"msg_signature","in":"query","required":true,"schema":{"type":"string","title":"Msg Signature"}},{"name":"timestamp","in":"query","required":true,"schema":{"type":"string","title":"Timestamp"}},{"name":"nonce","in":"query","required":true,"schema":{"type":"string","title":"Nonce"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/teams":{"post":{"tags":["teams"],"summary":"Teams Receive","description":"Accept an inbound Teams message (sent via Power Automate or bot).","operationId":"teams_receive_webhooks_teams_post","parameters":[{"name":"X-Teams-Secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Teams-Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/teams/transcript":{"post":{"tags":["teams"],"summary":"Teams Transcript","description":"Sprint 359 — Accept a Teams meeting transcript (sent via Power Automate after recording).\n\nExpected payload:\n  { \"transcript\": \"<plain text or VTT>\",\n    \"organizer_email\": \"rep@company.com\",\n    \"meeting_subject\": \"optional topic\",\n    \"lead_id\": 123  (optional override) }","operationId":"teams_transcript_webhooks_teams_transcript_post","parameters":[{"name":"X-Teams-Secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Teams-Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/zoom":{"post":{"tags":["zoom"],"summary":"Zoom Webhook","operationId":"zoom_webhook_webhooks_zoom_post","parameters":[{"name":"X-Zm-Signature","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Zm-Signature"}},{"name":"X-Zm-Request-Timestamp","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Zm-Request-Timestamp"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/erp":{"post":{"tags":["erp_webhook"],"summary":"Erp Receive","description":"Accept an inbound ERP event (contact sync, order update, etc.).","operationId":"erp_receive_webhooks_erp_post","parameters":[{"name":"X-ERP-Secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Erp-Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pay":{"get":{"tags":["payment"],"summary":"Pay Page","operationId":"pay_page_pay_get","parameters":[{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}},{"name":"plan","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/paypal/orders":{"post":{"tags":["payment"],"summary":"Paypal Create Order","operationId":"paypal_create_order_api_paypal_orders_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderIn","default":{}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/paypal/orders/{order_id}/capture":{"post":{"tags":["payment"],"summary":"Paypal Capture","operationId":"paypal_capture_api_paypal_orders__order_id__capture_post","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaptureIn","default":{}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaptureOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/download/wechat-crm":{"get":{"tags":["payment"],"summary":"Download Wechat Crm","operationId":"download_wechat_crm_download_wechat_crm_get","parameters":[{"name":"token","in":"query","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"}}}}}}},"/api/paypal/subscriptions":{"post":{"tags":["payment"],"summary":"Paypal Create Subscription","description":"Create a PayPal recurring subscription and return the approval URL.","operationId":"paypal_create_subscription_api_paypal_subscriptions_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderIn","default":{}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pay/subscription/callback":{"get":{"tags":["payment"],"summary":"Paypal Subscription Callback","description":"PayPal redirects here after subscription approval. Activate and redirect.","operationId":"paypal_subscription_callback_pay_subscription_callback_get","parameters":[{"name":"plan","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}},{"name":"subscription_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subscription Id"}},{"name":"ba_token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ba Token"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/paypal/subscriptions/{subscription_id}/cancel":{"post":{"tags":["payment"],"summary":"Paypal Cancel Subscription","description":"Cancel the active PayPal subscription for the current workspace.","operationId":"paypal_cancel_subscription_api_paypal_subscriptions__subscription_id__cancel_post","parameters":[{"name":"subscription_id","in":"path","required":true,"schema":{"type":"string","title":"Subscription Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/voice/incoming":{"get":{"tags":["voice"],"summary":"Voice Incoming Deny Other Methods","operationId":"voice_incoming_deny_other_methods_api_voice_incoming_head","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"put":{"tags":["voice"],"summary":"Voice Incoming Deny Other Methods","operationId":"voice_incoming_deny_other_methods_api_voice_incoming_head","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"tags":["voice"],"summary":"Voice Incoming","description":"Twilio Voice webhook: validate request and return TwiML.","operationId":"voice_incoming_api_voice_incoming_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"delete":{"tags":["voice"],"summary":"Voice Incoming Deny Other Methods","operationId":"voice_incoming_deny_other_methods_api_voice_incoming_head","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"options":{"tags":["voice"],"summary":"Voice Incoming Deny Other Methods","operationId":"voice_incoming_deny_other_methods_api_voice_incoming_head","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"head":{"tags":["voice"],"summary":"Voice Incoming Deny Other Methods","operationId":"voice_incoming_deny_other_methods_api_voice_incoming_head","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"patch":{"tags":["voice"],"summary":"Voice Incoming Deny Other Methods","operationId":"voice_incoming_deny_other_methods_api_voice_incoming_head","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/voice/gather-stub":{"get":{"tags":["voice"],"summary":"Voice Gather Deny Other Methods","operationId":"voice_gather_deny_other_methods_api_voice_gather_stub_head","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"put":{"tags":["voice"],"summary":"Voice Gather Deny Other Methods","operationId":"voice_gather_deny_other_methods_api_voice_gather_stub_head","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"tags":["voice"],"summary":"Voice Gather Stub","description":"Optional second hop when PUBLIC_APP_URL enables &lt;Gather&gt; in TwiML.","operationId":"voice_gather_stub_api_voice_gather_stub_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"delete":{"tags":["voice"],"summary":"Voice Gather Deny Other Methods","operationId":"voice_gather_deny_other_methods_api_voice_gather_stub_head","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"options":{"tags":["voice"],"summary":"Voice Gather Deny Other Methods","operationId":"voice_gather_deny_other_methods_api_voice_gather_stub_head","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"head":{"tags":["voice"],"summary":"Voice Gather Deny Other Methods","operationId":"voice_gather_deny_other_methods_api_voice_gather_stub_head","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"patch":{"tags":["voice"],"summary":"Voice Gather Deny Other Methods","operationId":"voice_gather_deny_other_methods_api_voice_gather_stub_head","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/voice/status-callback":{"get":{"tags":["voice"],"summary":"Voice Status Deny Other Methods","operationId":"voice_status_deny_other_methods_api_voice_status_callback_head","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"put":{"tags":["voice"],"summary":"Voice Status Deny Other Methods","operationId":"voice_status_deny_other_methods_api_voice_status_callback_head","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"tags":["voice"],"summary":"Voice Status Callback","description":"Twilio call status updates; logs at INFO when accepted.","operationId":"voice_status_callback_api_voice_status_callback_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"delete":{"tags":["voice"],"summary":"Voice Status Deny Other Methods","operationId":"voice_status_deny_other_methods_api_voice_status_callback_head","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"options":{"tags":["voice"],"summary":"Voice Status Deny Other Methods","operationId":"voice_status_deny_other_methods_api_voice_status_callback_head","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"head":{"tags":["voice"],"summary":"Voice Status Deny Other Methods","operationId":"voice_status_deny_other_methods_api_voice_status_callback_head","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"patch":{"tags":["voice"],"summary":"Voice Status Deny Other Methods","operationId":"voice_status_deny_other_methods_api_voice_status_callback_head","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/datenschutz":{"get":{"summary":"Datenschutz Page","description":"Public privacy policy (GDPR information) for apps.pragma-crm.com.","operationId":"datenschutz_page_datenschutz_get","parameters":[{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/contact/sales":{"get":{"summary":"Contact Sales Page","description":"Enterprise / sales contact: HTTPS page with mailto + webmail fallbacks.","operationId":"contact_sales_page_contact_sales_get","parameters":[{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/":{"get":{"summary":"Dashboard","operationId":"dashboard__get","parameters":[{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/partners/dashboard":{"get":{"summary":"Partners Dashboard Page","operationId":"partners_dashboard_page_partners_dashboard_get","parameters":[{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/marketplace":{"get":{"summary":"Marketplace Store Page","description":"Pragma Marketplace Template Store (authenticated).","operationId":"marketplace_store_page_marketplace_get","parameters":[{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/marketplace/success":{"get":{"summary":"Marketplace Store Success Page","description":"Dedicated success screen after PayPal capture for Marktplatz assets.","operationId":"marketplace_store_success_page_marketplace_success_get","parameters":[{"name":"asset_key","in":"query","required":true,"schema":{"type":"string","title":"Asset Key"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/marketplace/my":{"get":{"summary":"Marketplace My Dashboard Page","description":"Logged-in workspace dashboard for installed assets and updates (UI-8).","operationId":"marketplace_my_dashboard_page_marketplace_my_get","parameters":[{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/marketplace/vendor/{creator_slug}":{"get":{"summary":"Marketplace Vendor Page","description":"Vendor profile landing (UI-7) with portfolio grid.","operationId":"marketplace_vendor_page_marketplace_vendor__creator_slug__get","parameters":[{"name":"creator_slug","in":"path","required":true,"schema":{"type":"string","title":"Creator Slug"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/marketplace/creator/{creator_slug}":{"get":{"summary":"Marketplace Creator Page","description":"Creator profile alias — same UI as vendor page.","operationId":"marketplace_creator_page_marketplace_creator__creator_slug__get","parameters":[{"name":"creator_slug","in":"path","required":true,"schema":{"type":"string","title":"Creator Slug"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/marketplace/asset/{asset_key}":{"get":{"summary":"Marketplace Asset Detail Page","description":"Dedicated product detail page for a single Marktplatz asset.","operationId":"marketplace_asset_detail_page_marketplace_asset__asset_key__get","parameters":[{"name":"asset_key","in":"path","required":true,"schema":{"type":"string","title":"Asset Key"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/marketplace/track/{slug}":{"get":{"summary":"Marketplace Track Page","description":"Per-track landing page (Batch 7 Welle 3): ai-templates, ai-agents, prompts, etc.","operationId":"marketplace_track_page_marketplace_track__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/marketplace/creator-payouts":{"get":{"summary":"Marketplace Creator Payouts Page","description":"Creator payout dashboard (Batch 7 Welle 4): Prompt 80/20 + Services 70/30.","operationId":"marketplace_creator_payouts_page_marketplace_creator_payouts_get","parameters":[{"name":"track","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Track"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/marketplace/install/{asset_key}":{"get":{"summary":"Marketplace Install Wizard Page","description":"Guided install wizard (UI-6): Permissions → Configure → Test → Done.","operationId":"marketplace_install_wizard_page_marketplace_install__asset_key__get","parameters":[{"name":"asset_key","in":"path","required":true,"schema":{"type":"string","title":"Asset Key"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/marketplace/collection/{slug}":{"get":{"summary":"Marketplace Collection Page","description":"Use-case collection landing (UI-5): sales, marketing, china-gtm, crm.","operationId":"marketplace_collection_page_marketplace_collection__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/marketplace/signals":{"get":{"summary":"Marketplace Signals Page","description":"Signal Exchange category inside the Marketplace (authenticated view).","operationId":"marketplace_signals_page_marketplace_signals_get","parameters":[{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/exchange":{"get":{"summary":"Public Exchange Index","description":"Public SEO-friendly Signal Exchange directory — no login required.","operationId":"public_exchange_index_exchange_get","parameters":[{"name":"signal_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Signal Type"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/exchange/{signal_id}":{"get":{"summary":"Public Exchange Detail","description":"Public SEO detail page for a single Exchange listing.","operationId":"public_exchange_detail_exchange__signal_id__get","parameters":[{"name":"signal_id","in":"path","required":true,"schema":{"type":"string","title":"Signal Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/marketplace/signals":{"get":{"summary":"Api Marketplace Signals","description":"Live Signal Exchange listings for the marketplace storefront.","operationId":"api_marketplace_signals_api_marketplace_signals_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"signal_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Signal Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/marketplace/services":{"get":{"summary":"Marketplace Services Page","description":"Sprint 252 — Service Provider Marketplace.","operationId":"marketplace_services_page_marketplace_services_get","parameters":[{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"}},{"name":"region","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/service-marketplace/listings":{"get":{"summary":"Api Service Listings","description":"Sprint 252 — browse active service listings.","operationId":"api_service_listings_api_service_marketplace_listings_get","parameters":[{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"}},{"name":"region","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/service-marketplace/listings/{listing_id}":{"get":{"summary":"Api Service Listing Detail","description":"Sprint 252 — single listing detail with reviews.","operationId":"api_service_listing_detail_api_service_marketplace_listings__listing_id__get","parameters":[{"name":"listing_id","in":"path","required":true,"schema":{"type":"integer","title":"Listing Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/service-marketplace/listings/{listing_id}/inquire":{"post":{"summary":"Api Service Inquiry","description":"Sprint 252 — submit an inquiry for a service listing.","operationId":"api_service_inquiry_api_service_marketplace_listings__listing_id__inquire_post","parameters":[{"name":"listing_id","in":"path","required":true,"schema":{"type":"integer","title":"Listing Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceInquiryPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/service-marketplace/listings/{listing_id}/review":{"post":{"summary":"Api Service Review","description":"Sprint 252 — submit a rating + review for a service listing.","operationId":"api_service_review_api_service_marketplace_listings__listing_id__review_post","parameters":[{"name":"listing_id","in":"path","required":true,"schema":{"type":"integer","title":"Listing Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceReviewPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/service-marketplace/providers":{"get":{"summary":"Api Admin Service Providers","description":"Sprint 252 — list all service providers (master only).","operationId":"api_admin_service_providers_api_admin_service_marketplace_providers_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Api Admin Upsert Provider","description":"Sprint 252 — create/update a service provider (master only).","operationId":"api_admin_upsert_provider_api_admin_service_marketplace_providers_post","requestBody":{"content":{"application/json":{"schema":{"type":"object","title":"Data"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/service-marketplace/listings":{"post":{"summary":"Api Admin Upsert Listing","description":"Sprint 252 — create/update a service listing (master only).","operationId":"api_admin_upsert_listing_api_admin_service_marketplace_listings_post","requestBody":{"content":{"application/json":{"schema":{"type":"object","title":"Data"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/service-marketplace/inquiries":{"get":{"summary":"Api Admin Service Inquiries","description":"Sprint 252 — list all inquiries (master only).","operationId":"api_admin_service_inquiries_api_admin_service_marketplace_inquiries_get","parameters":[{"name":"listing_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Listing Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/marketplace/packs":{"get":{"summary":"Marketplace Packs Page","description":"Sprint 253 — Vertical Intelligence Pack-Builder.","operationId":"marketplace_packs_page_marketplace_packs_get","parameters":[{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/marketplace/packs":{"get":{"summary":"Api Marketplace Packs","description":"Sprint 253 — list available vertical packs.","operationId":"api_marketplace_packs_api_marketplace_packs_get","parameters":[{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/marketplace/packs/{pack_id}/activate":{"post":{"summary":"Api Activate Pack","description":"Sprint 253 — activate a vertical pack for the current workspace.","operationId":"api_activate_pack_api_marketplace_packs__pack_id__activate_post","parameters":[{"name":"pack_id","in":"path","required":true,"schema":{"type":"integer","title":"Pack Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/marketplace/packs/{pack_id}/deactivate":{"post":{"summary":"Api Deactivate Pack","description":"Sprint 253 — deactivate a vertical pack.","operationId":"api_deactivate_pack_api_marketplace_packs__pack_id__deactivate_post","parameters":[{"name":"pack_id","in":"path","required":true,"schema":{"type":"integer","title":"Pack Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/packs":{"get":{"summary":"Api Admin List Packs","description":"Sprint 253 — list all packs with activation stats (master only).","operationId":"api_admin_list_packs_api_admin_packs_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Api Admin Upsert Pack","description":"Sprint 253 — create/update a vertical pack (master only).","operationId":"api_admin_upsert_pack_api_admin_packs_post","requestBody":{"content":{"application/json":{"schema":{"type":"object","title":"Data"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/packs/activations":{"get":{"summary":"Api Admin Pack Activations","description":"Sprint 253 — all workspace pack activations (master only).","operationId":"api_admin_pack_activations_api_admin_packs_activations_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/marketplace/bundles":{"get":{"summary":"Marketplace Bundle Store Page","description":"Sprint 122 — curated bundle storefront with hero, savings badge and track mix.","operationId":"marketplace_bundle_store_page_marketplace_bundles_get","parameters":[{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/marketplace/workflows":{"get":{"summary":"Marketplace Workflow Store Page","operationId":"marketplace_workflow_store_page_marketplace_workflows_get","parameters":[{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/store/success":{"get":{"summary":"Store Success","operationId":"store_success_store_success_get","parameters":[{"name":"order_id","in":"query","required":true,"schema":{"type":"integer","title":"Order Id"}},{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/demo/start":{"get":{"summary":"Demo Start","operationId":"demo_start_demo_start_get","parameters":[{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}},{"name":"campaign_label","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campaign Label"}},{"name":"story","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Story"}},{"name":"investor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Investor"}},{"name":"skip","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Skip"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Demo Start Post","operationId":"demo_start_post_demo_start_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_demo_start_post_demo_start_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/demo/end":{"post":{"summary":"Demo End","operationId":"demo_end_demo_end_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/demo/feedback":{"post":{"summary":"Api Demo Feedback","description":"Store in-app feedback from a demo workspace user.","operationId":"api_demo_feedback_api_demo_feedback_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DemoFeedbackIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/demo/capture-email":{"post":{"summary":"Api Demo Capture Email","description":"Optional mid-demo e-mail capture so a visitor who drops off isn't unreachable.","operationId":"api_demo_capture_email_api_demo_capture_email_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DemoCaptureEmailIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/forgot-password":{"get":{"summary":"Forgot Password Page","operationId":"forgot_password_page_admin_forgot_password_get","parameters":[{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Forgot Password Submit","operationId":"forgot_password_submit_admin_forgot_password_post","requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_forgot_password_submit_admin_forgot_password_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/reset-password":{"get":{"summary":"Reset Password Page","operationId":"reset_password_page_admin_reset_password_get","parameters":[{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Reset Password Submit","operationId":"reset_password_submit_admin_reset_password_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_reset_password_submit_admin_reset_password_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/login":{"get":{"summary":"Admin Login Page","operationId":"admin_login_page_admin_login_get","parameters":[{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}},{"name":"next","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next"}},{"name":"sso_error","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sso Error"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Admin Login Submit","operationId":"admin_login_submit_admin_login_post","requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_admin_login_submit_admin_login_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sat/auth":{"post":{"summary":"Api Sat Auth","description":"SAT-only: login without Turnstile. Only works when SAT_BYPASS_SECRET is set\nand the X-SAT-Secret header matches. Never active in production without the env var.","operationId":"api_sat_auth_api_sat_auth_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_api_sat_auth_api_sat_auth_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/signup":{"get":{"summary":"Admin Signup Page","operationId":"admin_signup_page_admin_signup_get","parameters":[{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}},{"name":"invite","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invite"}},{"name":"next","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next"}},{"name":"ref","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ref"}},{"name":"partner","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Partner"}},{"name":"utm_source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Utm Source"}},{"name":"utm_medium","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Utm Medium"}},{"name":"utm_campaign","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Utm Campaign"}},{"name":"email","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"}},{"name":"name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},{"name":"company","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Admin Signup Submit","operationId":"admin_signup_submit_admin_signup_post","requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_admin_signup_submit_admin_signup_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/invite/{token}":{"get":{"summary":"Admin Invite Landing","description":"Public invite-acceptance entry point. Logged-in users join immediately;\neveryone else is bounced to signup with the token prefilled.","operationId":"admin_invite_landing_admin_invite__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"}}}}}}},"/admin/logout":{"get":{"summary":"Admin Logout","operationId":"admin_logout_admin_logout_get","parameters":[{"name":"next","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/me/email-prefs":{"get":{"summary":"Api Get Email Prefs","operationId":"api_get_email_prefs_api_me_email_prefs_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Api Set Email Prefs","operationId":"api_set_email_prefs_api_me_email_prefs_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailPrefsIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/account/self":{"delete":{"summary":"Api Delete Self","description":"Permanently delete the caller's own account.","operationId":"api_delete_self_api_account_self_delete","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/integrations":{"get":{"summary":"Admin Integrations Redirect","description":"Permanent redirect for bookmarks and old links.","operationId":"admin_integrations_redirect_admin_integrations_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/platform":{"get":{"summary":"Admin Platform Page","operationId":"admin_platform_page_admin_platform_get","parameters":[{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/integrations/status":{"get":{"summary":"Integrations Status","operationId":"integrations_status_api_integrations_status_get","parameters":[{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/oauth/slack/start":{"get":{"summary":"Api Oauth Slack Start","operationId":"api_oauth_slack_start_api_oauth_slack_start_get","parameters":[{"name":"return_to","in":"query","required":false,"schema":{"type":"string","default":"integrations","title":"Return To"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/oauth/slack/callback":{"get":{"summary":"Api Oauth Slack Callback","operationId":"api_oauth_slack_callback_api_oauth_slack_callback_get","parameters":[{"name":"code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},{"name":"error","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/oauth/hubspot/start":{"get":{"summary":"Api Oauth Hubspot Start","operationId":"api_oauth_hubspot_start_api_oauth_hubspot_start_get","parameters":[{"name":"return_to","in":"query","required":false,"schema":{"type":"string","default":"integrations","title":"Return To"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/oauth/hubspot/callback":{"get":{"summary":"Api Oauth Hubspot Callback","operationId":"api_oauth_hubspot_callback_api_oauth_hubspot_callback_get","parameters":[{"name":"code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},{"name":"error","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/oauth/pipedrive/start":{"get":{"summary":"Api Oauth Pipedrive Start","operationId":"api_oauth_pipedrive_start_api_oauth_pipedrive_start_get","parameters":[{"name":"return_to","in":"query","required":false,"schema":{"type":"string","default":"integrations","title":"Return To"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/oauth/pipedrive/callback":{"get":{"summary":"Api Oauth Pipedrive Callback","operationId":"api_oauth_pipedrive_callback_api_oauth_pipedrive_callback_get","parameters":[{"name":"code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},{"name":"error","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/oauth/salesforce/start":{"get":{"summary":"Api Oauth Salesforce Start","operationId":"api_oauth_salesforce_start_api_oauth_salesforce_start_get","parameters":[{"name":"return_to","in":"query","required":false,"schema":{"type":"string","default":"integrations","title":"Return To"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/oauth/salesforce/callback":{"get":{"summary":"Api Oauth Salesforce Callback","operationId":"api_oauth_salesforce_callback_api_oauth_salesforce_callback_get","parameters":[{"name":"code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},{"name":"error","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/integrations/smtp/test":{"post":{"summary":"Integrations Smtp Test","description":"Send a test message to the current admin using saved SMTP settings.","operationId":"integrations_smtp_test_api_integrations_smtp_test_post","parameters":[{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/integrations/wechat-oa/test":{"post":{"summary":"Integrations Wechat Oa Test","description":"Validate saved WeChat OA webhook secrets (AppID, Token, AES key).","operationId":"integrations_wechat_oa_test_api_integrations_wechat_oa_test_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/workspace/secrets":{"get":{"summary":"Api Workspace Secrets Get","operationId":"api_workspace_secrets_get_api_workspace_secrets_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Api Workspace Secrets Post","operationId":"api_workspace_secrets_post_api_workspace_secrets_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceSecretsUpdateIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspace/ai-provider/test":{"post":{"summary":"Api Workspace Ai Provider Test","operationId":"api_workspace_ai_provider_test_api_workspace_ai_provider_test_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/workspace/ai-zone":{"get":{"summary":"Api Get Ai Zone","description":"Return current AI zone config + catalog for this workspace.","operationId":"api_get_ai_zone_api_workspace_ai_zone_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"put":{"summary":"Api Put Ai Zone","description":"Update AI zone, provider and tier for this workspace.","operationId":"api_put_ai_zone_api_workspace_ai_zone_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_AiZoneIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspace/ai-zone/usage":{"get":{"summary":"Api Ai Zone Usage","description":"Return monthly AI usage counter for this workspace.","operationId":"api_ai_zone_usage_api_workspace_ai_zone_usage_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/ai-zones/catalog":{"get":{"summary":"Api Ai Zones Catalog","description":"Return full zone + model catalog (unauthenticated read for onboarding).","operationId":"api_ai_zones_catalog_api_ai_zones_catalog_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/crm/referral/code":{"get":{"summary":"Api Crm Referral Code","description":"Return (or create) the authenticated user's personal referral code + link.","operationId":"api_crm_referral_code_api_crm_referral_code_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/crm/referral/stats":{"get":{"summary":"Api Crm Referral Stats","description":"Full commission dashboard stats for the authenticated user.","operationId":"api_crm_referral_stats_api_crm_referral_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/settings/referral":{"get":{"summary":"Settings Referral Page","description":"Commission Dashboard — referral program overview for all authenticated users.","operationId":"settings_referral_page_settings_referral_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/earn/partners":{"get":{"summary":"Earn Partner Channel Page","description":"Application form + pipeline dashboard for organizational partners.","operationId":"earn_partner_channel_page_earn_partners_get","parameters":[{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/earn/partners/apply":{"post":{"summary":"Api Earn Partners Apply","operationId":"api_earn_partners_apply_api_earn_partners_apply_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerApplyIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/earn/partners/dashboard":{"get":{"summary":"Api Earn Partners Dashboard","operationId":"api_earn_partners_dashboard_api_earn_partners_dashboard_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/earn/partners/leads":{"post":{"summary":"Api Earn Partners Lead Create","operationId":"api_earn_partners_lead_create_api_earn_partners_leads_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerLeadIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/earn/partners/leads/{lead_id}":{"patch":{"summary":"Api Earn Partners Lead Stage","operationId":"api_earn_partners_lead_stage_api_earn_partners_leads__lead_id__patch","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerLeadStageIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspace/ai-automation":{"get":{"summary":"Api Workspace Ai Automation Get","operationId":"api_workspace_ai_automation_get_api_workspace_ai_automation_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Api Workspace Ai Automation Post","operationId":"api_workspace_ai_automation_post_api_workspace_ai_automation_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceAiAutomationIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/settings":{"get":{"summary":"Admin Settings Page","operationId":"admin_settings_page_admin_settings_get","parameters":[{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Admin Settings Submit","operationId":"admin_settings_submit_admin_settings_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/settings":{"get":{"summary":"Api Settings Get","operationId":"api_settings_get_api_settings_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Api Settings Post","operationId":"api_settings_post_api_settings_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/pipeline":{"get":{"summary":"Api Pipeline","operationId":"api_pipeline_api_pipeline_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/contacts":{"get":{"summary":"Api Contacts","operationId":"api_contacts_api_contacts_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/contacts/{contact_id}":{"get":{"summary":"Api Contact Detail","operationId":"api_contact_detail_api_contacts__contact_id__get","parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"integer","title":"Contact Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/contacts/{contact_id}/owner":{"post":{"summary":"Api Contact Owner","operationId":"api_contact_owner_api_contacts__contact_id__owner_post","parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"integer","title":"Contact Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnerAssignIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies":{"get":{"summary":"Api Companies","operationId":"api_companies_api_companies_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_id}":{"get":{"summary":"Api Company Detail","operationId":"api_company_detail_api_companies__company_id__get","parameters":[{"name":"company_id","in":"path","required":true,"schema":{"type":"integer","title":"Company Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_id}/ai-briefing":{"post":{"summary":"Api Company Ai Briefing","description":"Generate a one-page AI account briefing for a company.","operationId":"api_company_ai_briefing_api_companies__company_id__ai_briefing_post","parameters":[{"name":"company_id","in":"path","required":true,"schema":{"type":"integer","title":"Company Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_id}/owner":{"post":{"summary":"Api Company Owner","operationId":"api_company_owner_api_companies__company_id__owner_post","parameters":[{"name":"company_id","in":"path","required":true,"schema":{"type":"integer","title":"Company Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnerAssignIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/contacts/{contact_id}/notes":{"post":{"summary":"Api Contact Add Note","operationId":"api_contact_add_note_api_contacts__contact_id__notes_post","parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"integer","title":"Contact Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmNoteIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_id}/notes":{"post":{"summary":"Api Company Add Note","operationId":"api_company_add_note_api_companies__company_id__notes_post","parameters":[{"name":"company_id","in":"path","required":true,"schema":{"type":"integer","title":"Company Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmNoteIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/deals":{"get":{"summary":"Api Deals","operationId":"api_deals_api_deals_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Api Deal Create","operationId":"api_deal_create_api_deals_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealCreateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/deals/board":{"get":{"summary":"Api Deals Board","operationId":"api_deals_board_api_deals_board_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/crm/overview":{"get":{"summary":"Api Crm Overview","description":"Sprint 85: CRM Übersicht — customers (won deals), open opportunities, new customers (30d).","operationId":"api_crm_overview_api_crm_overview_get","parameters":[{"name":"account_segment","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Segment"}},{"name":"active_window_days","in":"query","required":false,"schema":{"type":"integer","default":180,"title":"Active Window Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/search":{"get":{"summary":"Api Global Search","operationId":"api_global_search_api_search_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":6,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/reporting/summary":{"get":{"summary":"Api Reporting Summary","operationId":"api_reporting_summary_api_reporting_summary_get","parameters":[{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date To"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/reporting/revenue-forecast":{"get":{"summary":"Api Reporting Revenue Forecast","operationId":"api_reporting_revenue_forecast_api_reporting_revenue_forecast_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/reporting/leads_pivot":{"get":{"summary":"Api Reporting Leads Pivot","operationId":"api_reporting_leads_pivot_api_reporting_leads_pivot_get","parameters":[{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date To"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/reporting/superset/config":{"get":{"summary":"Api Reporting Superset Config","operationId":"api_reporting_superset_config_api_reporting_superset_config_get","parameters":[{"name":"workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/reporting/superset/guest-token":{"post":{"summary":"Api Reporting Superset Guest Token","operationId":"api_reporting_superset_guest_token_api_reporting_superset_guest_token_post","requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SupersetGuestTokenIn"},{"type":"null"}],"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/reporting/sales-targets":{"get":{"summary":"Api Reporting Sales Targets List","operationId":"api_reporting_sales_targets_list_api_reporting_sales_targets_get","parameters":[{"name":"period_month","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Period Month"}},{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Api Reporting Sales Targets Upsert","operationId":"api_reporting_sales_targets_upsert_api_reporting_sales_targets_put","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SalesTargetUpsertIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/reporting/team":{"get":{"summary":"Api Reporting Team","operationId":"api_reporting_team_api_reporting_team_get","parameters":[{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date To"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/reporting/rep-coaching":{"get":{"summary":"Api Reporting Rep Coaching","description":"Sprint 360 — Rep Coaching Dashboard data: deal health, win rate, objections, coaching tips per rep.","operationId":"api_reporting_rep_coaching_api_reporting_rep_coaching_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/settings/coaching":{"get":{"summary":"Settings Coaching Page","description":"Sprint 360 — Rep Coaching Dashboard UI.","operationId":"settings_coaching_page_settings_coaching_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/api/reporting/gtm-attribution":{"get":{"summary":"Api Reporting Gtm Attribution","operationId":"api_reporting_gtm_attribution_api_reporting_gtm_attribution_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/playbooks":{"get":{"summary":"Api Playbooks List","operationId":"api_playbooks_list_api_playbooks_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/playbooks/current":{"get":{"summary":"Api Playbooks Current","operationId":"api_playbooks_current_api_playbooks_current_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/playbooks/select":{"post":{"summary":"Api Playbooks Select","operationId":"api_playbooks_select_api_playbooks_select_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaybookSelectIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/playbooks/store":{"get":{"summary":"Api Playbooks Store","operationId":"api_playbooks_store_api_playbooks_store_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/playbooks/store/{playbook_key}/templates":{"get":{"summary":"Api Playbooks Store Templates","operationId":"api_playbooks_store_templates_api_playbooks_store__playbook_key__templates_get","parameters":[{"name":"playbook_key","in":"path","required":true,"schema":{"type":"string","title":"Playbook Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/playbooks/store/checkout":{"post":{"summary":"Api Playbooks Store Checkout","operationId":"api_playbooks_store_checkout_api_playbooks_store_checkout_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaybookCheckoutIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/playbooks/automation-templates":{"get":{"summary":"Api Playbooks Automation Templates","operationId":"api_playbooks_automation_templates_api_playbooks_automation_templates_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/playbooks/followup-templates":{"get":{"summary":"Api Playbooks Followup Templates","operationId":"api_playbooks_followup_templates_api_playbooks_followup_templates_get","parameters":[{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/playbooks/pipeline-defaults":{"get":{"summary":"Api Playbooks Pipeline Defaults","operationId":"api_playbooks_pipeline_defaults_api_playbooks_pipeline_defaults_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/playbooks/pipeline-defaults/apply":{"post":{"summary":"Api Playbooks Apply Pipeline Defaults","operationId":"api_playbooks_apply_pipeline_defaults_api_playbooks_pipeline_defaults_apply_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/playbooks/kpi-dashboard":{"get":{"summary":"Api Playbooks Kpi Dashboard","operationId":"api_playbooks_kpi_dashboard_api_playbooks_kpi_dashboard_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/kits":{"get":{"summary":"Api Kits Catalog","operationId":"api_kits_catalog_api_kits_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/kits/{kit_key}/roi-preview":{"get":{"summary":"Api Kit Roi Preview","operationId":"api_kit_roi_preview_api_kits__kit_key__roi_preview_get","parameters":[{"name":"kit_key","in":"path","required":true,"schema":{"type":"string","title":"Kit Key"}},{"name":"locale","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Locale"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/kits/checkout":{"post":{"summary":"Api Kits Checkout","operationId":"api_kits_checkout_api_kits_checkout_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KitCheckoutIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/kits/purchased":{"get":{"summary":"Api Kits Purchased","operationId":"api_kits_purchased_api_kits_purchased_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/kits/grant":{"post":{"summary":"Api Admin Kits Grant","description":"Admin: manually grant a kit (e.g. during demos or manual purchases).","operationId":"api_admin_kits_grant_api_admin_kits_grant_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminKitGrantIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/partner/portfolio":{"get":{"summary":"Api Partner Portfolio","operationId":"api_partner_portfolio_api_partner_portfolio_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/partner/portfolio/clients":{"post":{"summary":"Api Partner Provision Client","operationId":"api_partner_provision_client_api_partner_portfolio_clients_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerProvisionClientIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/partner/portfolio/clients/link":{"post":{"summary":"Api Partner Link Client","operationId":"api_partner_link_client_api_partner_portfolio_clients_link_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerLinkClientIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/partner/portfolio/report":{"get":{"summary":"Api Partner Portfolio Report","operationId":"api_partner_portfolio_report_api_partner_portfolio_report_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/partner/portfolio/revenue-share":{"get":{"summary":"Api Partner Revenue Share","operationId":"api_partner_revenue_share_api_partner_portfolio_revenue_share_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/partner/enable":{"post":{"summary":"Api Admin Partner Enable","description":"Admin: enable partner portfolio mode for a workspace.","operationId":"api_admin_partner_enable_api_admin_partner_enable_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerEnableIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks/recipes":{"get":{"summary":"Api Webhook Recipes","description":"NSP-66 — static catalog of outbound event recipes.","operationId":"api_webhook_recipes_api_webhooks_recipes_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/integrations/notifications":{"get":{"summary":"Api Notifications Config","description":"NSP-65 — return which notification channels are configured.","operationId":"api_notifications_config_api_integrations_notifications_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/integrations/notifications/configure":{"post":{"summary":"Api Notifications Configure","description":"NSP-65 — save Slack and/or Teams webhook URLs as workspace secrets.","operationId":"api_notifications_configure_api_integrations_notifications_configure_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationConfigIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/integrations/notifications/test":{"post":{"summary":"Api Notifications Test","description":"NSP-65 — fire a test notification to Slack or Teams.","operationId":"api_notifications_test_api_integrations_notifications_test_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationTestIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/integrations/crm-status":{"get":{"summary":"Api Crm Connector Status","description":"NSP-67 — per-CRM sync job stats.","operationId":"api_crm_connector_status_api_integrations_crm_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/integrations/health":{"get":{"summary":"Api Integration Health","description":"NSP-68 — aggregate integration health dashboard.","operationId":"api_integration_health_api_integrations_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/integrations/monitor":{"get":{"summary":"Api Integration Monitor Status","description":"Return the most recent integration health snapshot (no new checks run).","operationId":"api_integration_monitor_status_api_integrations_monitor_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/integrations/monitor/run":{"post":{"summary":"Api Integration Monitor Run","description":"Run all integration health checks now and alert mike@meetmike.de on failures.","operationId":"api_integration_monitor_run_api_integrations_monitor_run_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/integrations/monitor/run-cron":{"get":{"summary":"Api Integration Monitor Cron","description":"Cron endpoint — GET or POST, secured by X-Cron-Secret header or ?secret= query param.","operationId":"api_integration_monitor_cron_api_integrations_monitor_run_cron_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Api Integration Monitor Cron","description":"Cron endpoint — GET or POST, secured by X-Cron-Secret header or ?secret= query param.","operationId":"api_integration_monitor_cron_api_integrations_monitor_run_cron_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/trial/status":{"get":{"summary":"Api Trial Status","description":"NSP-69 — detailed trial urgency status for the upgrade flow.","operationId":"api_trial_status_api_trial_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/trial/request-upgrade":{"post":{"summary":"Api Trial Request Upgrade","description":"NSP-70 — workspace requests an upgrade; notifies owner via Slack/Teams.","operationId":"api_trial_request_upgrade_api_trial_request_upgrade_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpgradeRequestIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/trial/checkout/nowpayments":{"post":{"summary":"Api Trial Checkout Nowpayments","description":"Sprint 190 — Create a NOWPayments crypto invoice for a plan upgrade.","operationId":"api_trial_checkout_nowpayments_api_trial_checkout_nowpayments_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanCryptoCheckoutIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/trial/checkout/ipn":{"post":{"summary":"Api Trial Checkout Ipn","description":"Sprint 190 — NOWPayments IPN callback: activates plan on confirmed payment.","operationId":"api_trial_checkout_ipn_api_trial_checkout_ipn_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/setup-wizard/status":{"get":{"summary":"Api Setup Wizard Status","description":"NSP-71 — design partner onboarding wizard step completion.","operationId":"api_setup_wizard_status_api_setup_wizard_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/workspace/usage":{"get":{"summary":"Api Workspace Usage","description":"NSP-72 — monthly + total usage stats for the workspace.","operationId":"api_workspace_usage_api_workspace_usage_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/reporting/narrative":{"get":{"summary":"Api Reporting Narrative Get","operationId":"api_reporting_narrative_get_api_reporting_narrative_get","parameters":[{"name":"target_lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Api Reporting Narrative Post","operationId":"api_reporting_narrative_post_api_reporting_narrative_post","requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ReportingNarrativeIn"},{"type":"null"}],"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/reporting/funnel":{"get":{"summary":"Api Reporting Funnel","operationId":"api_reporting_funnel_api_reporting_funnel_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/reporting/gtm-funnel":{"get":{"summary":"Api Reporting Gtm Funnel","operationId":"api_reporting_gtm_funnel_api_reporting_gtm_funnel_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/workspace/brand":{"get":{"summary":"Api Get Brand","operationId":"api_get_brand_api_workspace_brand_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"put":{"summary":"Api Put Brand","operationId":"api_put_brand_api_workspace_brand_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspace/brand/enable":{"post":{"summary":"Api Enable Whitelabel","description":"Master-only: grant or revoke white-label access for a workspace.","operationId":"api_enable_whitelabel_api_workspace_brand_enable_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandEnableIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspace/brand/domain":{"put":{"summary":"Api Put Brand Domain","description":"Sprint 348 — set or clear the custom domain for white-label routing.","operationId":"api_put_brand_domain_api_workspace_brand_domain_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_BrandDomainIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/brand-config":{"get":{"summary":"Api Public Brand Config","description":"Sprint 348 — unauthenticated: return brand config for a custom domain.","operationId":"api_public_brand_config_api_public_brand_config_get","parameters":[{"name":"domain","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domain"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/reporting/schedules":{"get":{"summary":"Api List Schedules","operationId":"api_list_schedules_api_reporting_schedules_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Api Create Schedule","operationId":"api_create_schedule_api_reporting_schedules_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportScheduleIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/reporting/schedules/{schedule_id}":{"delete":{"summary":"Api Delete Schedule","operationId":"api_delete_schedule_api_reporting_schedules__schedule_id__delete","parameters":[{"name":"schedule_id","in":"path","required":true,"schema":{"type":"integer","title":"Schedule Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/reporting/schedules/{schedule_id}/send":{"post":{"summary":"Api Send Schedule Now","operationId":"api_send_schedule_now_api_reporting_schedules__schedule_id__send_post","parameters":[{"name":"schedule_id","in":"path","required":true,"schema":{"type":"integer","title":"Schedule Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/reporting/kpi-alerts":{"get":{"summary":"Api List Kpi Alerts","operationId":"api_list_kpi_alerts_api_reporting_kpi_alerts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Api Create Kpi Alert","operationId":"api_create_kpi_alert_api_reporting_kpi_alerts_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KpiAlertIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/reporting/kpi-alerts/{alert_id}":{"delete":{"summary":"Api Delete Kpi Alert","operationId":"api_delete_kpi_alert_api_reporting_kpi_alerts__alert_id__delete","parameters":[{"name":"alert_id","in":"path","required":true,"schema":{"type":"integer","title":"Alert Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/reporting/kpi-alerts/check":{"get":{"summary":"Api Check Kpi Alerts","operationId":"api_check_kpi_alerts_api_reporting_kpi_alerts_check_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/reporting/drill":{"get":{"summary":"Api Reporting Drill","operationId":"api_reporting_drill_api_reporting_drill_get","parameters":[{"name":"kpi","in":"query","required":false,"schema":{"type":"string","default":"total","title":"Kpi"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/reporting/roi-summary":{"get":{"summary":"Api Reporting Roi Summary","operationId":"api_reporting_roi_summary_api_reporting_roi_summary_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Days"}},{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date To"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/reporting/roi-summary/export":{"get":{"summary":"Api Reporting Roi Export","operationId":"api_reporting_roi_export_api_reporting_roi_summary_export_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/reporting/pilot-scorecard":{"get":{"summary":"Api Reporting Pilot Scorecard","operationId":"api_reporting_pilot_scorecard_api_reporting_pilot_scorecard_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/reporting/kpi-donuts":{"get":{"summary":"Api Reporting Kpi Donuts","operationId":"api_reporting_kpi_donuts_api_reporting_kpi_donuts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/reporting/export/automation-runs":{"get":{"summary":"Api Export Automation Runs","operationId":"api_export_automation_runs_api_reporting_export_automation_runs_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/reporting/export/timeline":{"get":{"summary":"Api Export Timeline","operationId":"api_export_timeline_api_reporting_export_timeline_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/reporting/export/audit":{"get":{"summary":"Api Export Audit","operationId":"api_export_audit_api_reporting_export_audit_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/export/leads":{"get":{"summary":"Api Export Leads","description":"Export all leads for the workspace as CSV or JSON.\nQuery params: fmt=csv|json, from_date=YYYY-MM-DD, to_date=YYYY-MM-DD","operationId":"api_export_leads_api_export_leads_get","parameters":[{"name":"fmt","in":"query","required":false,"schema":{"type":"string","default":"csv","title":"Fmt"}},{"name":"from_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Date"}},{"name":"to_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To Date"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/export/deals":{"get":{"summary":"Api Export Deals","description":"Export all deals for the workspace as CSV or JSON.","operationId":"api_export_deals_api_export_deals_get","parameters":[{"name":"fmt","in":"query","required":false,"schema":{"type":"string","default":"csv","title":"Fmt"}},{"name":"from_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Date"}},{"name":"to_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To Date"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/export/messages":{"get":{"summary":"Api Export Messages","description":"Export all lead messages for the workspace as CSV or JSON.","operationId":"api_export_messages_api_export_messages_get","parameters":[{"name":"fmt","in":"query","required":false,"schema":{"type":"string","default":"csv","title":"Fmt"}},{"name":"from_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Date"}},{"name":"to_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To Date"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/export/contacts":{"get":{"summary":"Api Export Contacts","description":"Export all CRM contacts for the workspace as CSV or JSON.","operationId":"api_export_contacts_api_export_contacts_get","parameters":[{"name":"fmt","in":"query","required":false,"schema":{"type":"string","default":"csv","title":"Fmt"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/switch-workspace/{workspace_id}":{"get":{"summary":"Switch Workspace Get","description":"Master-admin shortcut: switch active workspace via GET link (monitoring tool).\n\nGET is categorically CSRF-exempt (an <img src=\"...\"> tag can trigger it),\nso unlike the POST sibling this can't require a CSRF token — but it must\nstill confirm workspace_id refers to a real workspace before switching a\nlogged-in master's active context to it.","operationId":"switch_workspace_get_admin_switch_workspace__workspace_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","title":"Workspace Id"}},{"name":"next","in":"query","required":false,"schema":{"type":"string","default":"/","title":"Next"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/workspace/switch":{"post":{"summary":"Switch Workspace","description":"Master-admin only: pick which workspace to view. Other users can also\nswitch between their own memberships.","operationId":"switch_workspace_admin_workspace_switch_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_switch_workspace_admin_workspace_switch_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/tenants":{"get":{"summary":"Admin Tenants Page","description":"Master-only dashboard: every tenant with member/lead counts.","operationId":"admin_tenants_page_admin_tenants_get","parameters":[{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/demo-feedback":{"get":{"summary":"Admin Demo Feedback Page","description":"Master-only: all demo user feedback with full text.","operationId":"admin_demo_feedback_page_admin_demo_feedback_get","parameters":[{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/tenants":{"get":{"summary":"Api Admin Tenants","operationId":"api_admin_tenants_api_admin_tenants_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/tenants/refresh-cache":{"post":{"summary":"Api Admin Tenants Refresh","description":"Force-invalidate the tenants list cache and rebuild it synchronously.","operationId":"api_admin_tenants_refresh_api_admin_tenants_refresh_cache_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/workspaces/{workspace_id}/lock":{"post":{"summary":"Api Admin Lock Workspace","description":"Master-only: deactivate (lock) a workspace without deleting its data.","operationId":"api_admin_lock_workspace_api_admin_workspaces__workspace_id__lock_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/workspaces/{workspace_id}/unlock":{"post":{"summary":"Api Admin Unlock Workspace","description":"Master-only: re-activate a locked workspace.","operationId":"api_admin_unlock_workspace_api_admin_workspaces__workspace_id__unlock_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/workspaces/{workspace_id}":{"delete":{"summary":"Api Admin Delete Workspace","description":"Master-only: permanently delete a workspace and all its data.","operationId":"api_admin_delete_workspace_api_admin_workspaces__workspace_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/investor/kpis":{"get":{"summary":"Api Investor Kpis","description":"Sprint 91A: Investor-ready KPI snapshot — master-only.","operationId":"api_investor_kpis_api_investor_kpis_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/internal/platform-scorecards":{"get":{"summary":"Api Internal Platform Scorecards","description":"Internal competitor scorecards — master-only, not public marketing.","operationId":"api_internal_platform_scorecards_api_internal_platform_scorecards_get","parameters":[{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/internal/revenue-readiness":{"get":{"summary":"Api Internal Revenue Readiness","description":"Internal revenue-readiness rollup — master-only.","operationId":"api_internal_revenue_readiness_api_internal_revenue_readiness_get","parameters":[{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/investor":{"get":{"summary":"Admin Investor Page","description":"Sprint 91A: Investor-ready KPI dashboard — master-only.","operationId":"admin_investor_page_admin_investor_get","parameters":[{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/founding/unmark":{"post":{"summary":"Api Admin Founding Unmark","description":"Master-only: remove founding customer status from a workspace.","operationId":"api_admin_founding_unmark_api_admin_founding_unmark_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_api_admin_founding_unmark_api_admin_founding_unmark_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/founding":{"get":{"summary":"Admin Founding Page","description":"Master-only: Founding Customer cohort overview.","operationId":"admin_founding_page_admin_founding_get","parameters":[{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/monitoring":{"get":{"summary":"Admin Monitoring Page","operationId":"admin_monitoring_page_admin_monitoring_get","parameters":[{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/monitoring/overview":{"get":{"summary":"Api Monitoring Overview","operationId":"api_monitoring_overview_api_monitoring_overview_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/monitoring/tenants":{"get":{"summary":"Api Monitoring Tenants","operationId":"api_monitoring_tenants_api_monitoring_tenants_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/monitoring/block-ip":{"post":{"summary":"Api Block Ip","operationId":"api_block_ip_api_admin_monitoring_block_ip_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_BlockIpBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/monitoring/unblock-ip":{"post":{"summary":"Api Unblock Ip","operationId":"api_unblock_ip_api_admin_monitoring_unblock_ip_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_BlockIpBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/monitoring/blocklist":{"get":{"summary":"Api Blocklist","operationId":"api_blocklist_api_admin_monitoring_blocklist_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/monitoring/debug":{"get":{"summary":"Api Monitoring Debug","description":"Raw DB counts + cache state — master only, for diagnosing zero-data issues.\n\nAlways triggers a cache background refresh so the next call (a few seconds later)\nshould show populated cache_keys if _fetch_overview_uncached() completes cleanly.","operationId":"api_monitoring_debug_api_monitoring_debug_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/troubleshoot":{"get":{"summary":"Admin Troubleshoot Page","description":"Standalone troubleshooting tool. Master-admin only.","operationId":"admin_troubleshoot_page_admin_troubleshoot_get","parameters":[{"name":"ws","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ws"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/analytics":{"get":{"summary":"Admin Analytics Page","operationId":"admin_analytics_page_admin_analytics_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/api/admin/analytics/query":{"post":{"summary":"Api Analytics Query","description":"Run a read-only SQL query against the app SQLite DB via DuckDB.\nMaster-admin only. Write statements are blocked.","operationId":"api_analytics_query_api_admin_analytics_query_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DuckQueryIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/monitoring/timeseries":{"get":{"summary":"Api Monitoring Timeseries","operationId":"api_monitoring_timeseries_api_monitoring_timeseries_get","parameters":[{"name":"metric","in":"query","required":true,"schema":{"type":"string","title":"Metric"}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":14,"title":"Days"}},{"name":"hours","in":"query","required":false,"schema":{"type":"integer","default":24,"title":"Hours"}},{"name":"bucket","in":"query","required":false,"schema":{"type":"string","default":"day","title":"Bucket"}},{"name":"workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/monitoring/activity":{"get":{"summary":"Api Monitoring Activity","operationId":"api_monitoring_activity_api_monitoring_activity_get","parameters":[{"name":"hours","in":"query","required":false,"schema":{"type":"integer","default":8,"title":"Hours"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":400,"title":"Limit"}},{"name":"workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/monitoring/incidents":{"get":{"summary":"Api Monitoring Incidents","operationId":"api_monitoring_incidents_api_monitoring_incidents_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/monitoring/cron":{"get":{"summary":"Api Monitoring Cron","description":"Cron runner status + webhook delivery stats. Master-admin only.","operationId":"api_monitoring_cron_api_monitoring_cron_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/troubleshoot":{"get":{"summary":"Api Admin Troubleshoot","description":"Master-only: aggregate health snapshot + credential mask for one workspace.","operationId":"api_admin_troubleshoot_api_admin_troubleshoot_get","parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"integer","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/tenants/{workspace_id}":{"get":{"summary":"Admin Tenant Detail","operationId":"admin_tenant_detail_admin_tenants__workspace_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","title":"Workspace Id"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/tenants/{workspace_id}/superset":{"get":{"summary":"Admin Tenant Superset Preview","operationId":"admin_tenant_superset_preview_admin_tenants__workspace_id__superset_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","title":"Workspace Id"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/tenants/{workspace_id}/members":{"post":{"summary":"Api Member Add","operationId":"api_member_add_api_admin_tenants__workspace_id__members_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemberAddIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/tenants/{workspace_id}/members/{user_id}/role":{"post":{"summary":"Api Member Role","operationId":"api_member_role_api_admin_tenants__workspace_id__members__user_id__role_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","title":"Workspace Id"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleChangeIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/tenants/{workspace_id}/members/{user_id}/remove":{"post":{"summary":"Api Member Remove","operationId":"api_member_remove_api_admin_tenants__workspace_id__members__user_id__remove_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","title":"Workspace Id"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MemberRemoveIn"},{"type":"null"}],"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/tenants/{workspace_id}/users/{user_id}/reset-password":{"post":{"summary":"Api Admin Reset User Password","description":"Master only — generate a temporary password for a tenant user.","operationId":"api_admin_reset_user_password_api_admin_tenants__workspace_id__users__user_id__reset_password_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","title":"Workspace Id"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/impersonate/workspace/{workspace_id}":{"post":{"summary":"Api Impersonate Start","description":"Master only — start impersonating the owner of a workspace.","operationId":"api_impersonate_start_api_admin_impersonate_workspace__workspace_id__post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/impersonate/end":{"post":{"summary":"Api Impersonate End","description":"End impersonation and restore the master session.","operationId":"api_impersonate_end_api_admin_impersonate_end_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/users/{user_id}/onboarding":{"patch":{"summary":"Api Set User Onboarding Visibility","operationId":"api_set_user_onboarding_visibility_api_admin_users__user_id__onboarding_patch","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingHiddenIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/users/{user_id}/master":{"post":{"summary":"Api User Set Master","operationId":"api_user_set_master_api_admin_users__user_id__master_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MasterToggleIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/tenants/{workspace_id}/reporting-access":{"post":{"summary":"Api Admin Tenant Reporting Access","operationId":"api_admin_tenant_reporting_access_api_admin_tenants__workspace_id__reporting_access_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MasterTenantReportingAccessIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/tenants/{workspace_id}/marketplace-access":{"post":{"summary":"Api Admin Tenant Marketplace Access","operationId":"api_admin_tenant_marketplace_access_api_admin_tenants__workspace_id__marketplace_access_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MasterTenantMarketplaceAccessIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/tenants/{workspace_id}/signal-inbox-access":{"post":{"summary":"Api Admin Tenant Signal Inbox Access","operationId":"api_admin_tenant_signal_inbox_access_api_admin_tenants__workspace_id__signal_inbox_access_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MasterTenantSignalInboxAccessIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/tenants/{workspace_id}/earn-rewards-access":{"post":{"summary":"Api Admin Tenant Earn Rewards Access","operationId":"api_admin_tenant_earn_rewards_access_api_admin_tenants__workspace_id__earn_rewards_access_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MasterTenantEarnRewardsAccessIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/tenants/{workspace_id}/earn-marketing-emails-access":{"post":{"summary":"Api Admin Tenant Earn Marketing Emails Access","description":"Master-only per-tenant kill switch for Earn credit-reminder /\ninactivity-nudge marketing emails.","operationId":"api_admin_tenant_earn_marketing_emails_access_api_admin_tenants__workspace_id__earn_marketing_emails_access_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MasterTenantEarnMarketingEmailsAccessIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/users/{target_user_id}/marketplace-access":{"post":{"summary":"Api Admin User Marketplace Access","operationId":"api_admin_user_marketplace_access_api_admin_users__target_user_id__marketplace_access_post","parameters":[{"name":"target_user_id","in":"path","required":true,"schema":{"type":"integer","title":"Target User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MasterTenantMarketplaceAccessIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/tenants/{workspace_id}/superset/guest-token":{"post":{"summary":"Api Admin Tenant Superset Guest Token","operationId":"api_admin_tenant_superset_guest_token_api_admin_tenants__workspace_id__superset_guest_token_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/tenants/{workspace_id}/plan":{"post":{"summary":"Api Admin Tenant Plan","operationId":"api_admin_tenant_plan_api_admin_tenants__workspace_id__plan_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MasterTenantPlanIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/marketplace/catalog":{"get":{"summary":"Api Marketplace Catalog","operationId":"api_marketplace_catalog_api_marketplace_catalog_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/marketplace/assets":{"get":{"summary":"Api Marketplace Assets","operationId":"api_marketplace_assets_api_marketplace_assets_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"asset_type","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Asset Type"}},{"name":"install_state","in":"query","required":false,"schema":{"type":"string","default":"all","title":"Install State"}},{"name":"price_filter","in":"query","required":false,"schema":{"type":"string","default":"all","title":"Price Filter"}},{"name":"availability_filter","in":"query","required":false,"schema":{"type":"string","default":"all","title":"Availability Filter"}},{"name":"readiness_filter","in":"query","required":false,"schema":{"type":"string","default":"all","title":"Readiness Filter"}},{"name":"collection","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Collection"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","default":"trending_desc","title":"Sort"}},{"name":"storefront","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Storefront"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/marketplace/storefront":{"get":{"summary":"Api Marketplace Storefront","operationId":"api_marketplace_storefront_api_marketplace_storefront_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/marketplace/collection/{slug}":{"get":{"summary":"Api Marketplace Collection","operationId":"api_marketplace_collection_api_marketplace_collection__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","default":"trending_desc","title":"Sort"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/marketplace/workspace-crosslinks":{"get":{"summary":"Api Marketplace Workspace Crosslinks","description":"Workspace → Marktplatz cross-links (Batch 7 rest-backlog).","operationId":"api_marketplace_workspace_crosslinks_api_marketplace_workspace_crosslinks_get","parameters":[{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/marketplace/track/{slug}":{"get":{"summary":"Api Marketplace Track","operationId":"api_marketplace_track_api_marketplace_track__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","default":"trending_desc","title":"Sort"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/marketplace/region-policy":{"get":{"summary":"Api Marketplace Region Policy","operationId":"api_marketplace_region_policy_api_marketplace_region_policy_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/marketplace/creators":{"get":{"summary":"Api Marketplace Creators","operationId":"api_marketplace_creators_api_marketplace_creators_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/marketplace/creators/{creator_slug}":{"get":{"summary":"Api Marketplace Creator Profile","operationId":"api_marketplace_creator_profile_api_marketplace_creators__creator_slug__get","parameters":[{"name":"creator_slug","in":"path","required":true,"schema":{"type":"string","title":"Creator Slug"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","default":"trending_desc","title":"Sort"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/marketplace/vendor/{vendor_slug}":{"get":{"summary":"Api Marketplace Vendor Profile","description":"Vendor profile JSON (UI-7) — creator portfolio aggregated by slug.","operationId":"api_marketplace_vendor_profile_api_marketplace_vendor__vendor_slug__get","parameters":[{"name":"vendor_slug","in":"path","required":true,"schema":{"type":"string","title":"Vendor Slug"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","default":"trending_desc","title":"Sort"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/marketplace/my":{"get":{"summary":"Api Marketplace My Dashboard","description":"Workspace marketplace dashboard JSON (UI-8).","operationId":"api_marketplace_my_dashboard_api_marketplace_my_get","parameters":[{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/marketplace/events":{"post":{"summary":"Api Marketplace Event Track","operationId":"api_marketplace_event_track_api_marketplace_events_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplaceEventIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/marketplace/revenue-ops":{"get":{"summary":"Api Marketplace Revenue Ops","operationId":"api_marketplace_revenue_ops_api_marketplace_revenue_ops_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/marketplace/creator-payouts":{"get":{"summary":"Api Marketplace Creator Payouts","operationId":"api_marketplace_creator_payouts_api_marketplace_creator_payouts_get","parameters":[{"name":"track","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Track"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/marketplace/creator-payouts/settlements/{settlement_id}":{"get":{"summary":"Api Marketplace Creator Payout Settlement","operationId":"api_marketplace_creator_payout_settlement_api_marketplace_creator_payouts_settlements__settlement_id__get","parameters":[{"name":"settlement_id","in":"path","required":true,"schema":{"type":"string","title":"Settlement Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/marketplace/creator-payouts.csv":{"get":{"summary":"Api Marketplace Creator Payouts Csv","operationId":"api_marketplace_creator_payouts_csv_api_marketplace_creator_payouts_csv_get","parameters":[{"name":"track","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Track"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/marketplace/revenue-ops.csv":{"get":{"summary":"Api Marketplace Revenue Ops Csv","operationId":"api_marketplace_revenue_ops_csv_api_marketplace_revenue_ops_csv_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/marketplace/audit-export":{"get":{"summary":"Api Marketplace Audit Export Summary","operationId":"api_marketplace_audit_export_summary_api_marketplace_audit_export_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/marketplace/audit-export.csv":{"get":{"summary":"Api Marketplace Audit Export Csv","operationId":"api_marketplace_audit_export_csv_api_marketplace_audit_export_csv_get","parameters":[{"name":"start","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start"}},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End"}},{"name":"category","in":"query","required":false,"schema":{"type":"string","default":"all","title":"Category"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/marketplace/audit-export.json":{"get":{"summary":"Api Marketplace Audit Export Json","operationId":"api_marketplace_audit_export_json_api_marketplace_audit_export_json_get","parameters":[{"name":"start","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start"}},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End"}},{"name":"category","in":"query","required":false,"schema":{"type":"string","default":"all","title":"Category"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/marketplace/audit-export.zip":{"get":{"summary":"Api Marketplace Audit Export Zip","operationId":"api_marketplace_audit_export_zip_api_marketplace_audit_export_zip_get","parameters":[{"name":"start","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start"}},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End"}},{"name":"category","in":"query","required":false,"schema":{"type":"string","default":"all","title":"Category"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/marketplace/revenue-attribution":{"get":{"summary":"Api Marketplace Revenue Attribution","operationId":"api_marketplace_revenue_attribution_api_marketplace_revenue_attribution_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/marketplace/revenue-attribution.csv":{"get":{"summary":"Api Marketplace Revenue Attribution Csv","operationId":"api_marketplace_revenue_attribution_csv_api_marketplace_revenue_attribution_csv_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/marketplace/referral/validate":{"post":{"summary":"Api Marketplace Referral Validate","operationId":"api_marketplace_referral_validate_api_marketplace_referral_validate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplaceReferralValidateIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/marketplace/assets/{asset_key}/quality":{"post":{"summary":"Api Marketplace Asset Quality","operationId":"api_marketplace_asset_quality_api_marketplace_assets__asset_key__quality_post","parameters":[{"name":"asset_key","in":"path","required":true,"schema":{"type":"string","title":"Asset Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplaceAssetQualityIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/marketplace/assets/purchase":{"post":{"summary":"Api Marketplace Asset Purchase","operationId":"api_marketplace_asset_purchase_api_marketplace_assets_purchase_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplaceAssetPurchaseIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/marketplace/assets/checkout/paypal":{"post":{"summary":"Api Marketplace Asset Checkout Paypal","operationId":"api_marketplace_asset_checkout_paypal_api_marketplace_assets_checkout_paypal_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplacePaypalCheckoutIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/marketplace/paypal/capture":{"post":{"summary":"Api Marketplace Paypal Capture","operationId":"api_marketplace_paypal_capture_api_marketplace_paypal_capture_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplacePaypalCaptureIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/marketplace/assets/install":{"post":{"summary":"Api Marketplace Asset Install","operationId":"api_marketplace_asset_install_api_marketplace_assets_install_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplaceAssetInstallIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/marketplace/assets/{asset_key}/clone":{"post":{"summary":"Api Marketplace Asset Clone","operationId":"api_marketplace_asset_clone_api_marketplace_assets__asset_key__clone_post","parameters":[{"name":"asset_key","in":"path","required":true,"schema":{"type":"string","title":"Asset Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/marketplace/forks/{fork_id}":{"get":{"summary":"Api Marketplace Fork Detail","operationId":"api_marketplace_fork_detail_api_marketplace_forks__fork_id__get","parameters":[{"name":"fork_id","in":"path","required":true,"schema":{"type":"string","title":"Fork Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/marketplace/forks/{fork_id}/remix-publish":{"post":{"summary":"Api Marketplace Fork Remix Publish","operationId":"api_marketplace_fork_remix_publish_api_marketplace_forks__fork_id__remix_publish_post","parameters":[{"name":"fork_id","in":"path","required":true,"schema":{"type":"string","title":"Fork Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplaceRemixPublishIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/marketplace/assets/download":{"post":{"summary":"Api Marketplace Asset Download","operationId":"api_marketplace_asset_download_api_marketplace_assets_download_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplaceAssetInstallIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/marketplace/assets/{asset_key}/lead-capture":{"post":{"summary":"Api Marketplace Asset Lead Capture","operationId":"api_marketplace_asset_lead_capture_api_marketplace_assets__asset_key__lead_capture_post","parameters":[{"name":"asset_key","in":"path","required":true,"schema":{"type":"string","title":"Asset Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplaceLeadCaptureIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/marketplace/assets/{asset_key}/delivery":{"get":{"summary":"Api Marketplace Asset Delivery","operationId":"api_marketplace_asset_delivery_api_marketplace_assets__asset_key__delivery_get","parameters":[{"name":"asset_key","in":"path","required":true,"schema":{"type":"string","title":"Asset Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/marketplace/assets/{asset_key}/reviews":{"get":{"summary":"Api Marketplace Asset Reviews","operationId":"api_marketplace_asset_reviews_api_marketplace_assets__asset_key__reviews_get","parameters":[{"name":"asset_key","in":"path","required":true,"schema":{"type":"string","title":"Asset Key"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Limit"}},{"name":"include_moderated","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Moderated"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Api Marketplace Asset Review Submit","operationId":"api_marketplace_asset_review_submit_api_marketplace_assets__asset_key__reviews_post","parameters":[{"name":"asset_key","in":"path","required":true,"schema":{"type":"string","title":"Asset Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplaceAssetReviewIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/marketplace/assets/{asset_key}/reviews/{review_id}/moderation":{"post":{"summary":"Api Marketplace Review Moderation","operationId":"api_marketplace_review_moderation_api_marketplace_assets__asset_key__reviews__review_id__moderation_post","parameters":[{"name":"asset_key","in":"path","required":true,"schema":{"type":"string","title":"Asset Key"}},{"name":"review_id","in":"path","required":true,"schema":{"type":"integer","title":"Review Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplaceReviewModerationIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/marketplace/assets/{asset_key}/recommendations":{"get":{"summary":"Api Marketplace Asset Recommendations","operationId":"api_marketplace_asset_recommendations_api_marketplace_assets__asset_key__recommendations_get","parameters":[{"name":"asset_key","in":"path","required":true,"schema":{"type":"string","title":"Asset Key"}},{"name":"action","in":"query","required":false,"schema":{"type":"string","default":"view","title":"Action"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":3,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/marketplace/assets/{asset_key}":{"get":{"summary":"Api Marketplace Asset Detail","operationId":"api_marketplace_asset_detail_api_marketplace_assets__asset_key__get","parameters":[{"name":"asset_key","in":"path","required":true,"schema":{"type":"string","title":"Asset Key"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/marketplace/assets/{asset_key}/changelog":{"get":{"summary":"Api Marketplace Asset Changelog","operationId":"api_marketplace_asset_changelog_api_marketplace_assets__asset_key__changelog_get","parameters":[{"name":"asset_key","in":"path","required":true,"schema":{"type":"string","title":"Asset Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/marketplace/assets/{asset_key}/compatibility":{"get":{"summary":"Api Marketplace Asset Compatibility","operationId":"api_marketplace_asset_compatibility_api_marketplace_assets__asset_key__compatibility_get","parameters":[{"name":"asset_key","in":"path","required":true,"schema":{"type":"string","title":"Asset Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/marketplace/assets/{asset_key}/bundle-offer":{"get":{"summary":"Api Marketplace Asset Bundle Offer","operationId":"api_marketplace_asset_bundle_offer_api_marketplace_assets__asset_key__bundle_offer_get","parameters":[{"name":"asset_key","in":"path","required":true,"schema":{"type":"string","title":"Asset Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/marketplace/bundles":{"get":{"summary":"Api Marketplace Bundle Store","operationId":"api_marketplace_bundle_store_api_marketplace_bundles_get","parameters":[{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/marketplace/workflows":{"get":{"summary":"Api Marketplace Workflow Store","operationId":"api_marketplace_workflow_store_api_marketplace_workflows_get","parameters":[{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}},{"name":"use_case","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Use Case"}},{"name":"track","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Track"}},{"name":"price","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Price"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/marketplace/assets/{asset_key}/workflow-manifest":{"get":{"summary":"Api Marketplace Asset Workflow Manifest","operationId":"api_marketplace_asset_workflow_manifest_api_marketplace_assets__asset_key__workflow_manifest_get","parameters":[{"name":"asset_key","in":"path","required":true,"schema":{"type":"string","title":"Asset Key"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/marketplace/workflows/install":{"post":{"summary":"Api Marketplace Workflow Install","operationId":"api_marketplace_workflow_install_api_marketplace_workflows_install_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplaceWorkflowInstallIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/marketplace/consultant/status":{"get":{"summary":"Api Marketplace Consultant Status","operationId":"api_marketplace_consultant_status_api_marketplace_consultant_status_get","parameters":[{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/marketplace/consultant/chat":{"post":{"summary":"Api Marketplace Consultant Chat","operationId":"api_marketplace_consultant_chat_api_marketplace_consultant_chat_post","parameters":[{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplaceConsultantChatIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/marketplace/roi/estimate":{"post":{"summary":"Api Marketplace Roi Estimate","operationId":"api_marketplace_roi_estimate_api_marketplace_roi_estimate_post","parameters":[{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplaceRoiEstimateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/marketplace/etsy/status":{"get":{"summary":"Api Marketplace Etsy Status","operationId":"api_marketplace_etsy_status_api_marketplace_etsy_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/marketplace/etsy/settings":{"post":{"summary":"Api Marketplace Etsy Settings","operationId":"api_marketplace_etsy_settings_api_marketplace_etsy_settings_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplaceEtsySettingsIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/marketplace/etsy/oauth/start":{"get":{"summary":"Api Marketplace Etsy Oauth Start","operationId":"api_marketplace_etsy_oauth_start_api_marketplace_etsy_oauth_start_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/marketplace/etsy/oauth/callback":{"get":{"summary":"Api Marketplace Etsy Oauth Callback","operationId":"api_marketplace_etsy_oauth_callback_api_marketplace_etsy_oauth_callback_get","parameters":[{"name":"code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},{"name":"error","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/marketplace/etsy/disconnect":{"post":{"summary":"Api Marketplace Etsy Disconnect","operationId":"api_marketplace_etsy_disconnect_api_marketplace_etsy_disconnect_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/marketplace/etsy/sync/assets":{"post":{"summary":"Api Marketplace Etsy Sync Assets","operationId":"api_marketplace_etsy_sync_assets_api_marketplace_etsy_sync_assets_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplaceEtsyAssetSyncIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/marketplace/etsy/sync/import":{"post":{"summary":"Api Marketplace Etsy Sync Import","operationId":"api_marketplace_etsy_sync_import_api_marketplace_etsy_sync_import_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/marketplace/etsy/orders/poll":{"post":{"summary":"Api Marketplace Etsy Orders Poll","operationId":"api_marketplace_etsy_orders_poll_api_marketplace_etsy_orders_poll_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/marketplace/etsy/orders/webhook":{"post":{"summary":"Api Marketplace Etsy Orders Webhook","operationId":"api_marketplace_etsy_orders_webhook_api_marketplace_etsy_orders_webhook_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplaceEtsyOrderWebhookIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/marketplace/subscription/activate":{"post":{"summary":"Api Marketplace Subscription Activate","operationId":"api_marketplace_subscription_activate_api_marketplace_subscription_activate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplaceSubscriptionActivateIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/marketplace/subscription/checkout":{"post":{"summary":"Api Marketplace Subscription Checkout","operationId":"api_marketplace_subscription_checkout_api_marketplace_subscription_checkout_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplaceSubscriptionCheckoutIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/marketplace/governance/roles":{"get":{"summary":"Api Marketplace Governance Roles List","operationId":"api_marketplace_governance_roles_list_api_marketplace_governance_roles_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Api Marketplace Governance Roles Assign","operationId":"api_marketplace_governance_roles_assign_api_marketplace_governance_roles_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplaceGovernanceRoleIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/marketplace/governance/roles/{user_id}":{"delete":{"summary":"Api Marketplace Governance Roles Remove","operationId":"api_marketplace_governance_roles_remove_api_marketplace_governance_roles__user_id__delete","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/marketplace/governance/assets":{"get":{"summary":"Api Marketplace Governance Assets List","operationId":"api_marketplace_governance_assets_list_api_marketplace_governance_assets_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Api Marketplace Governance Assets Draft","operationId":"api_marketplace_governance_assets_draft_api_marketplace_governance_assets_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplaceGovernanceDraftIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/marketplace/governance/assets/{asset_key}/submit":{"post":{"summary":"Api Marketplace Governance Asset Submit","operationId":"api_marketplace_governance_asset_submit_api_marketplace_governance_assets__asset_key__submit_post","parameters":[{"name":"asset_key","in":"path","required":true,"schema":{"type":"string","title":"Asset Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/marketplace/governance/assets/{asset_key}/publish":{"post":{"summary":"Api Marketplace Governance Asset Publish","operationId":"api_marketplace_governance_asset_publish_api_marketplace_governance_assets__asset_key__publish_post","parameters":[{"name":"asset_key","in":"path","required":true,"schema":{"type":"string","title":"Asset Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/marketplace/governance/assets/{asset_key}/reject":{"post":{"summary":"Api Marketplace Governance Asset Reject","operationId":"api_marketplace_governance_asset_reject_api_marketplace_governance_assets__asset_key__reject_post","parameters":[{"name":"asset_key","in":"path","required":true,"schema":{"type":"string","title":"Asset Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplaceGovernanceRejectIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/marketplace/publisher/keys":{"get":{"summary":"Api Marketplace Publisher Keys List","operationId":"api_marketplace_publisher_keys_list_api_marketplace_publisher_keys_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Api Marketplace Publisher Keys Create","operationId":"api_marketplace_publisher_keys_create_api_marketplace_publisher_keys_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplacePublisherKeyCreateIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/marketplace/publisher/keys/{key_id}":{"delete":{"summary":"Api Marketplace Publisher Keys Revoke","operationId":"api_marketplace_publisher_keys_revoke_api_marketplace_publisher_keys__key_id__delete","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"integer","title":"Key Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/marketplace/publisher/webhook":{"get":{"summary":"Api Marketplace Publisher Webhook Get","operationId":"api_marketplace_publisher_webhook_get_api_marketplace_publisher_webhook_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"put":{"summary":"Api Marketplace Publisher Webhook Put","operationId":"api_marketplace_publisher_webhook_put_api_marketplace_publisher_webhook_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplacePublisherWebhookIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/marketplace/publisher/openapi.json":{"get":{"summary":"Api Marketplace Publisher Openapi Json","operationId":"api_marketplace_publisher_openapi_json_api_marketplace_publisher_openapi_json_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/marketplace/publisher/webhook/deliveries":{"get":{"summary":"Api Marketplace Publisher Webhook Deliveries List","operationId":"api_marketplace_publisher_webhook_deliveries_list_api_marketplace_publisher_webhook_deliveries_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"}}}}}}},"/api/internal/marketplace/webhooks/drain":{"post":{"summary":"Api Internal Marketplace Webhooks Drain","operationId":"api_internal_marketplace_webhooks_drain_api_internal_marketplace_webhooks_drain_post","parameters":[{"name":"max_deliveries","in":"query","required":false,"schema":{"type":"integer","default":25,"title":"Max Deliveries"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/marketplace/publisher/v1/drafts":{"get":{"summary":"Api Marketplace Publisher V1 Drafts List","operationId":"api_marketplace_publisher_v1_drafts_list_api_marketplace_publisher_v1_drafts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Api Marketplace Publisher V1 Drafts Upsert","operationId":"api_marketplace_publisher_v1_drafts_upsert_api_marketplace_publisher_v1_drafts_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplacePublisherDraftIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/marketplace/publisher/v1/drafts/{asset_key}/submit":{"post":{"summary":"Api Marketplace Publisher V1 Drafts Submit","operationId":"api_marketplace_publisher_v1_drafts_submit_api_marketplace_publisher_v1_drafts__asset_key__submit_post","parameters":[{"name":"asset_key","in":"path","required":true,"schema":{"type":"string","title":"Asset Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/marketplace/partners/apply":{"post":{"summary":"Api Marketplace Partner Apply","operationId":"api_marketplace_partner_apply_api_marketplace_partners_apply_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplacePartnerApplyIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/marketplace/partners/applications":{"get":{"summary":"Api Marketplace Partner Applications List","operationId":"api_marketplace_partner_applications_list_api_marketplace_partners_applications_get","parameters":[{"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"}}}}}}},"/api/marketplace/partners/applications/{application_id}/approve":{"post":{"summary":"Api Marketplace Partner Application Approve","operationId":"api_marketplace_partner_application_approve_api_marketplace_partners_applications__application_id__approve_post","parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"integer","title":"Application Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplacePartnerApproveIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/marketplace/partners/applications/{application_id}/reject":{"post":{"summary":"Api Marketplace Partner Application Reject","operationId":"api_marketplace_partner_application_reject_api_marketplace_partners_applications__application_id__reject_post","parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"integer","title":"Application Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplacePartnerRejectIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/marketplace/partners/dashboard":{"get":{"summary":"Api Marketplace Partner Dashboard","operationId":"api_marketplace_partner_dashboard_api_marketplace_partners_dashboard_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/marketplace/partners/profile":{"get":{"summary":"Api Marketplace Partner Profile","operationId":"api_marketplace_partner_profile_api_marketplace_partners_profile_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/tenants/{workspace_id}/budgets":{"post":{"summary":"Api Admin Tenant Budgets","operationId":"api_admin_tenant_budgets_api_admin_tenants__workspace_id__budgets_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MasterTenantBudgetIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/billing/select-plan":{"post":{"summary":"Api Billing Select Plan","operationId":"api_billing_select_plan_api_billing_select_plan_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingSelectIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/paypal/setup-plans":{"get":{"summary":"Api Admin Paypal Plan Status","description":"Master-only: show current PayPal billing plan configuration.\n\nReturns which plans are already configured (env var or DB) so you know\nwhether to call POST /api/admin/paypal/setup-plans.","operationId":"api_admin_paypal_plan_status_api_admin_paypal_setup_plans_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Api Admin Paypal Setup Plans","description":"Master-only: create PayPal billing products + plans for Starter and Pro,\nthen store the plan IDs in app_settings so /pay works immediately.\n\nSafe to call multiple times — skips any plan already configured.\nRequires PAYPAL_CLIENT_ID + PAYPAL_CLIENT_SECRET env vars.","operationId":"api_admin_paypal_setup_plans_api_admin_paypal_setup_plans_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/me":{"get":{"summary":"Api Me","operationId":"api_me_api_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/feedback/trello/status":{"get":{"summary":"Api Feedback Trello Status","description":"Whether Trello inbound is configured for the current workspace (env or secrets).","operationId":"api_feedback_trello_status_api_feedback_trello_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/cron/trello-verify":{"get":{"summary":"Cron Trello Verify","description":"Ops check: validate effective Trello credentials (Railway env + workspace overrides).","operationId":"cron_trello_verify_api_cron_trello_verify_get","parameters":[{"name":"workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Workspace Id"}},{"name":"x-cron-secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Cron-Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Cron Trello Verify Api Cron Trello Verify Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/feedback/trello":{"post":{"summary":"Api Feedback Trello Create","description":"Create a Trello card in the configured list (stakeholder feedback / requirements).","operationId":"api_feedback_trello_create_api_feedback_trello_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrelloFeedbackIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/nps/submit":{"post":{"summary":"Api Nps Submit","operationId":"api_nps_submit_api_nps_submit_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NpsSubmitIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/nps/overview":{"get":{"summary":"Api Nps Overview","description":"Master-only: NPS scores overview for monitoring.","operationId":"api_nps_overview_api_nps_overview_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Nps Overview Api Nps Overview Get"}}}}}}},"/api/contact/send-mail":{"post":{"summary":"Api Contact Send Mail","description":"Send the dashboard contact message via Microsoft Graph (when configured).","operationId":"api_contact_send_mail_api_contact_send_mail_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactMailIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/contact/sales-mail":{"post":{"summary":"Api Contact Sales Mail","description":"Public Enterprise contact form — same Graph path as the dashboard modal.","operationId":"api_contact_sales_mail_api_contact_sales_mail_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicSalesMailIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/nurture/dach-pilot":{"post":{"summary":"Api Nurture Dach Pilot","description":"Pre-signup DACH pilot nurture: Brevo list + Mail 1 welcome (no-op if unconfigured).","operationId":"api_nurture_dach_pilot_api_nurture_dach_pilot_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NurtureDachPilotIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspace/users":{"get":{"summary":"Api Workspace Users","description":"Lightweight user list for bulk-assign dropdowns — no admin permission needed.","operationId":"api_workspace_users_api_workspace_users_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/workspace/members":{"get":{"summary":"Api Workspace Members","operationId":"api_workspace_members_api_workspace_members_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/workspace/team":{"get":{"summary":"Api Workspace Team","operationId":"api_workspace_team_api_workspace_team_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/me/password":{"post":{"summary":"Api Me Password","description":"Change the password of the currently-authenticated user.\n\nRequires the *current* password to be supplied (defense against session\nhijack / left-open browser). Min length is enforced at 10 chars.","operationId":"api_me_password_api_me_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordChangeIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspace/invites":{"post":{"summary":"Api Workspace Invite Create","operationId":"api_workspace_invite_create_api_workspace_invites_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspace/invites/{token}/revoke":{"post":{"summary":"Api Workspace Invite Revoke","operationId":"api_workspace_invite_revoke_api_workspace_invites__token__revoke_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/leads/{lead_id}/stage":{"post":{"summary":"Api Lead Set Stage","operationId":"api_lead_set_stage_api_leads__lead_id__stage_post","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StageIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/leads/{lead_id}/activities":{"get":{"summary":"Api Get Activities","operationId":"api_get_activities_api_leads__lead_id__activities_get","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Api Post Activity","operationId":"api_post_activity_api_leads__lead_id__activities_post","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadActivityIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/leads/{lead_id}/activities/{activity_id}/complete":{"post":{"summary":"Api Complete Task","operationId":"api_complete_task_api_leads__lead_id__activities__activity_id__complete_post","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}},{"name":"activity_id","in":"path","required":true,"schema":{"type":"integer","title":"Activity Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspace/tasks/due":{"get":{"summary":"Api Workspace Tasks Due","operationId":"api_workspace_tasks_due_api_workspace_tasks_due_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/deals/{deal_id}":{"patch":{"summary":"Api Deal Update","operationId":"api_deal_update_api_deals__deal_id__patch","parameters":[{"name":"deal_id","in":"path","required":true,"schema":{"type":"integer","title":"Deal Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealUpdateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/deals/{deal_id}/stage":{"post":{"summary":"Api Deal Set Stage","operationId":"api_deal_set_stage_api_deals__deal_id__stage_post","parameters":[{"name":"deal_id","in":"path","required":true,"schema":{"type":"integer","title":"Deal Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealStageIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/deals/{deal_id}/financials":{"get":{"summary":"Api Deal Financials Get","operationId":"api_deal_financials_get_api_deals__deal_id__financials_get","parameters":[{"name":"deal_id","in":"path","required":true,"schema":{"type":"integer","title":"Deal Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"summary":"Api Deal Financials Patch","operationId":"api_deal_financials_patch_api_deals__deal_id__financials_patch","parameters":[{"name":"deal_id","in":"path","required":true,"schema":{"type":"integer","title":"Deal Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealFinancialsIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/deals/{deal_id}/payments":{"post":{"summary":"Api Deal Payment Create","operationId":"api_deal_payment_create_api_deals__deal_id__payments_post","parameters":[{"name":"deal_id","in":"path","required":true,"schema":{"type":"integer","title":"Deal Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealPaymentIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/deals/{deal_id}/payment-link":{"post":{"summary":"Api Deal Payment Link","operationId":"api_deal_payment_link_api_deals__deal_id__payment_link_post","parameters":[{"name":"deal_id","in":"path","required":true,"schema":{"type":"integer","title":"Deal Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/deals/{deal_id}/invoice":{"get":{"summary":"Api Deal Invoice Html","operationId":"api_deal_invoice_html_api_deals__deal_id__invoice_get","parameters":[{"name":"deal_id","in":"path","required":true,"schema":{"type":"integer","title":"Deal Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/deals/{deal_id}/invoice/sent":{"post":{"summary":"Api Deal Invoice Mark Sent","operationId":"api_deal_invoice_mark_sent_api_deals__deal_id__invoice_sent_post","parameters":[{"name":"deal_id","in":"path","required":true,"schema":{"type":"integer","title":"Deal Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/deals/{deal_id}/finance/reminder":{"post":{"summary":"Api Deal Send Reminder","description":"Sprint 86: Record that a payment reminder was sent for this deal.","operationId":"api_deal_send_reminder_api_deals__deal_id__finance_reminder_post","parameters":[{"name":"deal_id","in":"path","required":true,"schema":{"type":"integer","title":"Deal Id"}},{"name":"channel","in":"query","required":false,"schema":{"type":"string","default":"manual","title":"Channel"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/deals/{deal_id}/payment-link/view":{"get":{"summary":"Api Deal Payment Link View","description":"Sprint 86: Redirect to Stripe payment link and record a payment_viewed activity.","operationId":"api_deal_payment_link_view_api_deals__deal_id__payment_link_view_get","parameters":[{"name":"deal_id","in":"path","required":true,"schema":{"type":"integer","title":"Deal Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/deals/{deal_id}/trade-ops":{"get":{"summary":"Api Deal Trade Ops Get","operationId":"api_deal_trade_ops_get_api_deals__deal_id__trade_ops_get","parameters":[{"name":"deal_id","in":"path","required":true,"schema":{"type":"integer","title":"Deal Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Api Deal Trade Ops Put","operationId":"api_deal_trade_ops_put_api_deals__deal_id__trade_ops_put","parameters":[{"name":"deal_id","in":"path","required":true,"schema":{"type":"integer","title":"Deal Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TradeOpsIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/deals/{deal_id}/trade-ops/milestones":{"post":{"summary":"Api Deal Trade Milestone Post","operationId":"api_deal_trade_milestone_post_api_deals__deal_id__trade_ops_milestones_post","parameters":[{"name":"deal_id","in":"path","required":true,"schema":{"type":"integer","title":"Deal Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TradeMilestoneIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/trade-ops/milestones/{milestone_id}":{"patch":{"summary":"Api Deal Trade Milestone Patch","operationId":"api_deal_trade_milestone_patch_api_trade_ops_milestones__milestone_id__patch","parameters":[{"name":"milestone_id","in":"path","required":true,"schema":{"type":"integer","title":"Milestone Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TradeMilestonePatchIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/deals/{deal_id}/trade-ops/documents":{"put":{"summary":"Api Deal Trade Document Put","operationId":"api_deal_trade_document_put_api_deals__deal_id__trade_ops_documents_put","parameters":[{"name":"deal_id","in":"path","required":true,"schema":{"type":"integer","title":"Deal Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TradeDocumentIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/fx/rates":{"get":{"summary":"Api Fx Rates","description":"Return current FX rates (EUR/USD/CNY) with source and timestamp.","operationId":"api_fx_rates_api_fx_rates_get","parameters":[{"name":"base","in":"query","required":false,"schema":{"type":"string","default":"EUR","title":"Base"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/deals/{deal_id}/quote":{"get":{"summary":"Api Deal Quote","description":"Sprint 87: Return a full FX quote snapshot for a deal (EUR/USD/CNY + rates + timestamp).","operationId":"api_deal_quote_api_deals__deal_id__quote_get","parameters":[{"name":"deal_id","in":"path","required":true,"schema":{"type":"integer","title":"Deal Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/deals/{deal_id}/quote/save":{"post":{"summary":"Api Deal Quote Save","description":"Sprint 87: Persist FX snapshot onto the deal record for reporting/audit.","operationId":"api_deal_quote_save_api_deals__deal_id__quote_save_post","parameters":[{"name":"deal_id","in":"path","required":true,"schema":{"type":"integer","title":"Deal Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/commissions/rules":{"get":{"summary":"Api Commission Rules Get","description":"Sprint 88: List commission rules for the current workspace.","operationId":"api_commission_rules_get_api_commissions_rules_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Api Commission Rules Post","description":"Sprint 88: Create a new commission rule.","operationId":"api_commission_rules_post_api_commissions_rules_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommissionRuleIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/commissions/rules/{rule_id}":{"put":{"summary":"Api Commission Rules Put","description":"Sprint 88: Update an existing commission rule.","operationId":"api_commission_rules_put_api_commissions_rules__rule_id__put","parameters":[{"name":"rule_id","in":"path","required":true,"schema":{"type":"integer","title":"Rule Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommissionRuleIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Api Commission Rules Delete","description":"Sprint 88: Delete a commission rule.","operationId":"api_commission_rules_delete_api_commissions_rules__rule_id__delete","parameters":[{"name":"rule_id","in":"path","required":true,"schema":{"type":"integer","title":"Rule Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/deals/{deal_id}/commission":{"get":{"summary":"Api Deal Commission Get","description":"Sprint 88: Get commission record for a deal.","operationId":"api_deal_commission_get_api_deals__deal_id__commission_get","parameters":[{"name":"deal_id","in":"path","required":true,"schema":{"type":"integer","title":"Deal Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/deals/{deal_id}/commission/calculate":{"post":{"summary":"Api Deal Commission Calculate","description":"Sprint 88: (Re-)calculate commission for a deal.","operationId":"api_deal_commission_calculate_api_deals__deal_id__commission_calculate_post","parameters":[{"name":"deal_id","in":"path","required":true,"schema":{"type":"integer","title":"Deal Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/deals/{deal_id}/commission/paid":{"post":{"summary":"Api Deal Commission Mark Paid","description":"Sprint 88: Mark commission as paid.","operationId":"api_deal_commission_mark_paid_api_deals__deal_id__commission_paid_post","parameters":[{"name":"deal_id","in":"path","required":true,"schema":{"type":"integer","title":"Deal Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/commissions/top-closers":{"get":{"summary":"Api Top Closers","description":"Sprint 88: Top closers leaderboard by commission earned.","operationId":"api_top_closers_api_commissions_top_closers_get","parameters":[{"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"}}}}}}},"/api/commissions/summary":{"get":{"summary":"Api Commission Summary","description":"Sprint 88: Workspace commission summary — revenue, owed, paid, pending.","operationId":"api_commission_summary_api_commissions_summary_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/revenue-summary":{"get":{"summary":"Api Admin Revenue Summary","description":"Sprint 251: Master-only unified Pragma revenue across all streams.","operationId":"api_admin_revenue_summary_api_admin_revenue_summary_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/commissions/export.csv":{"get":{"summary":"Api Commission Export Csv","description":"Sprint 88: Export all commissions as CSV.","operationId":"api_commission_export_csv_api_commissions_export_csv_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/addons/catalog":{"get":{"summary":"Api Addons Catalog","description":"Sprint 90: Return full add-on catalog with enabled status for current workspace.","operationId":"api_addons_catalog_api_addons_catalog_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/addons":{"get":{"summary":"Api Addons List","description":"Sprint 90: Return active add-ons for the current workspace.","operationId":"api_addons_list_api_addons_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/addons/{addon_key}/request":{"post":{"summary":"Api Addon Request Access","description":"Sprint 90: Tenant requests access to an add-on (self-serve).","operationId":"api_addon_request_access_api_addons__addon_key__request_post","parameters":[{"name":"addon_key","in":"path","required":true,"schema":{"type":"string","title":"Addon Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/addons/{workspace_id}/{addon_key}/enable":{"post":{"summary":"Api Addon Enable","description":"Sprint 90: Master enables an add-on for a workspace.","operationId":"api_addon_enable_api_admin_addons__workspace_id___addon_key__enable_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","title":"Workspace Id"}},{"name":"addon_key","in":"path","required":true,"schema":{"type":"string","title":"Addon Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/addons/{workspace_id}/{addon_key}/disable":{"post":{"summary":"Api Addon Disable","description":"Sprint 90: Master disables an add-on for a workspace.","operationId":"api_addon_disable_api_admin_addons__workspace_id___addon_key__disable_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","title":"Workspace Id"}},{"name":"addon_key","in":"path","required":true,"schema":{"type":"string","title":"Addon Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/timeline":{"get":{"summary":"Api Timeline","operationId":"api_timeline_api_timeline_get","parameters":[{"name":"contact_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Contact Id"}},{"name":"company_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Company Id"}},{"name":"deal_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Deal Id"}},{"name":"lead_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Lead Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"}},{"name":"channel","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/relationships/timeline":{"get":{"summary":"Api Relationship Timeline","operationId":"api_relationship_timeline_api_relationships_timeline_get","parameters":[{"name":"company_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Company Id"}},{"name":"contact_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Contact Id"}},{"name":"deal_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Deal Id"}},{"name":"lead_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Lead Id"}},{"name":"channel","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/activities":{"post":{"summary":"Api Activity Create","operationId":"api_activity_create_api_activities_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivityIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/translation-memory":{"get":{"summary":"Api Translation Memory List","operationId":"api_translation_memory_list_api_translation_memory_get","parameters":[{"name":"contact_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Contact Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Api Translation Memory Upsert","operationId":"api_translation_memory_upsert_api_translation_memory_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TranslationMemoryIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/translation-memory/lookup":{"get":{"summary":"Api Translation Memory Lookup","operationId":"api_translation_memory_lookup_api_translation_memory_lookup_get","parameters":[{"name":"source_lang","in":"query","required":true,"schema":{"type":"string","title":"Source Lang"}},{"name":"target_lang","in":"query","required":true,"schema":{"type":"string","title":"Target Lang"}},{"name":"source_text","in":"query","required":true,"schema":{"type":"string","title":"Source Text"}},{"name":"contact_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Contact Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/lead-routing/rules":{"get":{"summary":"Api Lead Routing Rules","operationId":"api_lead_routing_rules_api_lead_routing_rules_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Api Lead Routing Create Rule","operationId":"api_lead_routing_create_rule_api_lead_routing_rules_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadRoutingRuleIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/leads/{lead_id}/route":{"post":{"summary":"Api Route Lead","operationId":"api_route_lead_api_leads__lead_id__route_post","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inbox/unified":{"get":{"summary":"Api Unified Inbox","operationId":"api_unified_inbox_api_inbox_unified_get","parameters":[{"name":"channel","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"direction","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Direction"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"assigned_to","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Assigned To"}},{"name":"tag","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tag"}},{"name":"unread_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Unread Only"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inbox/messages/{message_id}":{"patch":{"summary":"Api Inbox Message Read","operationId":"api_inbox_message_read_api_inbox_messages__message_id__patch","parameters":[{"name":"message_id","in":"path","required":true,"schema":{"type":"integer","title":"Message Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxReadIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inbox/stats":{"get":{"summary":"Api Inbox Stats","operationId":"api_inbox_stats_api_inbox_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/inbox/read-all":{"post":{"summary":"Api Inbox Read All","operationId":"api_inbox_read_all_api_inbox_read_all_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxReadAllIn","default":{}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inbox/conversations":{"get":{"summary":"Api Inbox Conversations","operationId":"api_inbox_conversations_api_inbox_conversations_get","parameters":[{"name":"channel","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel"}},{"name":"unread_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Unread Only"}},{"name":"my_deals_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"My Deals Only"}},{"name":"mine_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Mine Only"}},{"name":"unanswered_24h","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Unanswered 24H"}},{"name":"resolved_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Resolved Only"}},{"name":"starred_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Starred Only"}},{"name":"snoozed_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Snoozed Only"}},{"name":"label_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Label Id"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inbox/thread/{lead_id}":{"get":{"summary":"Api Inbox Thread","operationId":"api_inbox_thread_api_inbox_thread__lead_id__get","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":200,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inbox/thread/{lead_id}/read":{"post":{"summary":"Api Inbox Thread Mark Read","operationId":"api_inbox_thread_mark_read_api_inbox_thread__lead_id__read_post","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inbox/thread/{lead_id}/resolve":{"post":{"summary":"Api Inbox Thread Resolve","operationId":"api_inbox_thread_resolve_api_inbox_thread__lead_id__resolve_post","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxResolveIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inbox/thread/{lead_id}/star":{"post":{"summary":"Api Inbox Thread Star","operationId":"api_inbox_thread_star_api_inbox_thread__lead_id__star_post","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inbox/thread/{lead_id}/snooze":{"post":{"summary":"Api Inbox Thread Snooze","operationId":"api_inbox_thread_snooze_api_inbox_thread__lead_id__snooze_post","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxSnoozeIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Api Inbox Thread Unsnooze","operationId":"api_inbox_thread_unsnooze_api_inbox_thread__lead_id__snooze_delete","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inbox/bulk-action":{"post":{"summary":"Api Inbox Bulk Action","operationId":"api_inbox_bulk_action_api_inbox_bulk_action_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxBulkActionIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inbox/saved-replies":{"get":{"summary":"Api Saved Replies List","operationId":"api_saved_replies_list_api_inbox_saved_replies_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Api Saved Replies Create","operationId":"api_saved_replies_create_api_inbox_saved_replies_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedReplyIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inbox/saved-replies/{reply_id}":{"put":{"summary":"Api Saved Replies Update","operationId":"api_saved_replies_update_api_inbox_saved_replies__reply_id__put","parameters":[{"name":"reply_id","in":"path","required":true,"schema":{"type":"integer","title":"Reply Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedReplyIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Api Saved Replies Delete","operationId":"api_saved_replies_delete_api_inbox_saved_replies__reply_id__delete","parameters":[{"name":"reply_id","in":"path","required":true,"schema":{"type":"integer","title":"Reply Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inbox/thread/{lead_id}/note":{"post":{"summary":"Api Inbox Thread Note","operationId":"api_inbox_thread_note_api_inbox_thread__lead_id__note_post","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalNoteIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inbox/thread/{lead_id}/assign":{"post":{"summary":"Api Inbox Thread Assign","operationId":"api_inbox_thread_assign_api_inbox_thread__lead_id__assign_post","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxAssignIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inbox/thread/{lead_id}/ai-draft":{"post":{"summary":"Api Inbox Thread Ai Draft","operationId":"api_inbox_thread_ai_draft_api_inbox_thread__lead_id__ai_draft_post","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxAiDraftIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inbox/message/{msg_id}/translate":{"post":{"summary":"Api Inbox Message Translate","operationId":"api_inbox_message_translate_api_inbox_message__msg_id__translate_post","parameters":[{"name":"msg_id","in":"path","required":true,"schema":{"type":"integer","title":"Msg Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxTranslateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inbox/labels":{"get":{"summary":"Api Inbox Labels List","operationId":"api_inbox_labels_list_api_inbox_labels_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Api Inbox Labels Create","operationId":"api_inbox_labels_create_api_inbox_labels_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxLabelCreateIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inbox/labels/{label_id}":{"delete":{"summary":"Api Inbox Labels Delete","operationId":"api_inbox_labels_delete_api_inbox_labels__label_id__delete","parameters":[{"name":"label_id","in":"path","required":true,"schema":{"type":"integer","title":"Label Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inbox/thread/{lead_id}/labels":{"get":{"summary":"Api Inbox Thread Labels Get","operationId":"api_inbox_thread_labels_get_api_inbox_thread__lead_id__labels_get","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Api Inbox Thread Labels","operationId":"api_inbox_thread_labels_api_inbox_thread__lead_id__labels_put","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxThreadLabelsIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inbox/members":{"get":{"summary":"Api Inbox Members","description":"Return workspace members for inbox @mention and assignment dropdowns.","operationId":"api_inbox_members_api_inbox_members_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/inbox/reply":{"post":{"summary":"Api Inbox Quick Reply","operationId":"api_inbox_quick_reply_api_inbox_reply_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuickReplyIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/stripe/checkout":{"post":{"summary":"Api Stripe Checkout","operationId":"api_stripe_checkout_api_stripe_checkout_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StripeCheckoutIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/stripe/checkout/annual":{"post":{"summary":"Api Stripe Checkout Annual","description":"Sprint 350 — Annual Pro plan checkout (€290/year).","operationId":"api_stripe_checkout_annual_api_stripe_checkout_annual_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StripeCheckoutIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/stripe/lead-pack/checkout":{"post":{"summary":"Api Stripe Lead Pack Checkout","operationId":"api_stripe_lead_pack_checkout_api_stripe_lead_pack_checkout_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StripeCheckoutIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/stripe/portal":{"post":{"summary":"Api Stripe Portal","operationId":"api_stripe_portal_api_stripe_portal_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StripePortalIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/stripe/plan":{"get":{"summary":"Api Stripe Plan","operationId":"api_stripe_plan_api_stripe_plan_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/stripe/webhook":{"post":{"summary":"Api Stripe Webhook","operationId":"api_stripe_webhook_api_stripe_webhook_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/credits/usage":{"get":{"summary":"Api Credits Usage","description":"Return AI credit and lead quota usage for the current workspace/month.","operationId":"api_credits_usage_api_credits_usage_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/billing/usage-gates":{"get":{"summary":"Api Billing Usage Gates","description":"Sprint 81: proactive upgrade triggers before hard limits frustrate users.","operationId":"api_billing_usage_gates_api_billing_usage_gates_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/billing/credits/consume":{"post":{"summary":"Api Billing Credits Consume","description":"Atomically consume AI credits for one billable product action.","operationId":"api_billing_credits_consume_api_billing_credits_consume_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditConsumeIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/notifications":{"get":{"summary":"Api Notifications","operationId":"api_notifications_api_notifications_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/notifications/mark-read":{"post":{"summary":"Api Notifications Mark Read","operationId":"api_notifications_mark_read_api_notifications_mark_read_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationReadIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/whatsapp/send":{"post":{"summary":"Api Whatsapp Send","description":"Send a WhatsApp message via Meta Cloud API and record it as outbound.","operationId":"api_whatsapp_send_api_whatsapp_send_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppSendIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/whatsapp/templates":{"get":{"summary":"Api Wa Templates List","description":"Sprint 91B: List WhatsApp message templates for this workspace.","operationId":"api_wa_templates_list_api_whatsapp_templates_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Api Wa Templates Create","description":"Sprint 91B: Create a WhatsApp message template.","operationId":"api_wa_templates_create_api_whatsapp_templates_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WaTemplateIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/whatsapp/templates/{template_id}":{"delete":{"summary":"Api Wa Templates Delete","description":"Sprint 91B: Delete a WhatsApp message template.","operationId":"api_wa_templates_delete_api_whatsapp_templates__template_id__delete","parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"integer","title":"Template Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/whatsapp/templates/send":{"post":{"summary":"Api Wa Template Send","description":"Sprint 91B: Send a WhatsApp template message to a lead.","operationId":"api_wa_template_send_api_whatsapp_templates_send_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WaTemplateSendIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/communication/whatsapp/open":{"post":{"summary":"Api Whatsapp Open","operationId":"api_whatsapp_open_api_communication_whatsapp_open_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsappOpenIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/communication/templates":{"get":{"summary":"Api Communication Templates","operationId":"api_communication_templates_api_communication_templates_get","parameters":[{"name":"channel","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel"}},{"name":"include_inactive","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Inactive"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Api Communication Template Create","operationId":"api_communication_template_create_api_communication_templates_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommunicationTemplateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/communication/templates/{template_id}":{"put":{"summary":"Api Communication Template Update","operationId":"api_communication_template_update_api_communication_templates__template_id__put","parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"integer","title":"Template Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommunicationTemplateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Api Communication Template Delete","operationId":"api_communication_template_delete_api_communication_templates__template_id__delete","parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"integer","title":"Template Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/collaboration/comments":{"post":{"summary":"Api Team Comment Create","operationId":"api_team_comment_create_api_collaboration_comments_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamCommentIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/platform/api-keys":{"get":{"summary":"Api Platform Api Keys","operationId":"api_platform_api_keys_api_platform_api_keys_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Api Platform Api Key Create","operationId":"api_platform_api_key_create_api_platform_api_keys_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyCreateIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/platform/api-keys/{key_id}":{"delete":{"summary":"Api Platform Api Key Revoke","operationId":"api_platform_api_key_revoke_api_platform_api_keys__key_id__delete","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"integer","title":"Key Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/platform/webhooks":{"get":{"summary":"Api Platform Webhooks","operationId":"api_platform_webhooks_api_platform_webhooks_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Api Platform Webhook Create","operationId":"api_platform_webhook_create_api_platform_webhooks_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookCreateIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/platform/webhooks/{webhook_id}/test":{"post":{"summary":"Api Platform Webhook Test","operationId":"api_platform_webhook_test_api_platform_webhooks__webhook_id__test_post","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"integer","title":"Webhook Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/platform/webhooks/deliveries":{"get":{"summary":"Api Platform Webhook Deliveries","operationId":"api_platform_webhook_deliveries_api_platform_webhooks_deliveries_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/platform/marketplace":{"get":{"summary":"Api Platform Marketplace","operationId":"api_platform_marketplace_api_platform_marketplace_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/store/products":{"get":{"summary":"Api Store Products","operationId":"api_store_products_api_store_products_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/store/checkout":{"post":{"summary":"Api Store Checkout","operationId":"api_store_checkout_api_store_checkout_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreCheckoutIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/store/claim-free":{"post":{"summary":"Api Store Claim Free","operationId":"api_store_claim_free_api_store_claim_free_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreProductIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/store/complete":{"post":{"summary":"Api Store Complete","operationId":"api_store_complete_api_store_complete_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreOrderCompleteIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/store/products/{product_key}/delivery":{"get":{"summary":"Api Store Delivery","operationId":"api_store_delivery_api_store_products__product_key__delivery_get","parameters":[{"name":"product_key","in":"path","required":true,"schema":{"type":"string","title":"Product Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/store/products/{product_key}/install":{"post":{"summary":"Api Store Install","operationId":"api_store_install_api_store_products__product_key__install_post","parameters":[{"name":"product_key","in":"path","required":true,"schema":{"type":"string","title":"Product Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/platform/marketplace/install":{"post":{"summary":"Api Platform Marketplace Install","operationId":"api_platform_marketplace_install_api_platform_marketplace_install_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplaceInstallIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/platform/marketplace/uninstall":{"post":{"summary":"Api Platform Marketplace Uninstall","operationId":"api_platform_marketplace_uninstall_api_platform_marketplace_uninstall_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplaceUninstallIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/microsoft/oauth/start":{"get":{"summary":"Ms Oauth Start","description":"Redirect the browser to Microsoft's OAuth consent page.","operationId":"ms_oauth_start_api_microsoft_oauth_start_get","parameters":[{"name":"return_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Return To"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/microsoft/oauth/callback":{"get":{"summary":"Ms Oauth Callback","description":"Handle Microsoft OAuth redirect, exchange code for tokens.","operationId":"ms_oauth_callback_api_microsoft_oauth_callback_get","parameters":[{"name":"code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},{"name":"error","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/microsoft/debug-sync":{"get":{"summary":"Ms Debug Sync","description":"Diagnose Teams channel sync — returns raw Graph API response for admins.","operationId":"ms_debug_sync_api_microsoft_debug_sync_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/microsoft/status":{"get":{"summary":"Ms Oauth Status","operationId":"ms_oauth_status_api_microsoft_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/microsoft/teams":{"get":{"summary":"Ms List Teams","description":"List Teams the connected account has joined.","operationId":"ms_list_teams_api_microsoft_teams_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/microsoft/teams/{team_id}/channels":{"get":{"summary":"Ms List Channels","description":"List channels in a Teams team.","operationId":"ms_list_channels_api_microsoft_teams__team_id__channels_get","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","title":"Team Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/microsoft/teams/configure":{"post":{"summary":"Ms Configure Channel","description":"Save chosen team + channel and create/renew Graph subscription for inbound messages.","operationId":"ms_configure_channel_api_microsoft_teams_configure_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MsTeamsConfigureIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/microsoft/disconnect":{"post":{"summary":"Admin Ms Disconnect","description":"Form-based disconnect (used from admin/settings page — no JSON CSRF needed).","operationId":"admin_ms_disconnect_admin_microsoft_disconnect_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/microsoft/disconnect-user":{"post":{"summary":"Ms Disconnect User","description":"Remove the current user's personal Microsoft OAuth token.","operationId":"ms_disconnect_user_api_microsoft_disconnect_user_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/microsoft/user/status":{"get":{"summary":"Ms User Status","description":"Return the current user's personal Microsoft connection + channel status.","operationId":"ms_user_status_api_microsoft_user_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/microsoft/user/configure-channel":{"post":{"summary":"Ms User Configure Channel","description":"Save the current user's personal Teams channel selection.","operationId":"ms_user_configure_channel_api_microsoft_user_configure_channel_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MsUserConfigureChannelIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/microsoft/disconnect":{"post":{"summary":"Ms Disconnect","description":"Remove Microsoft OAuth tokens and cancel Graph subscription.","operationId":"ms_disconnect_api_microsoft_disconnect_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/webhooks/ms-graph":{"post":{"summary":"Ms Graph Webhook","description":"Receive Microsoft Graph change notifications for Teams channel messages.","operationId":"ms_graph_webhook_webhooks_ms_graph_post","parameters":[{"name":"validationToken","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Validationtoken"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspace/automation-templates":{"get":{"summary":"Api Automation Templates","operationId":"api_automation_templates_api_workspace_automation_templates_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/workspace/automation-rules":{"get":{"summary":"Api Automation Rules List","operationId":"api_automation_rules_list_api_workspace_automation_rules_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Api Automation Rules Create","operationId":"api_automation_rules_create_api_workspace_automation_rules_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutomationRuleIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspace/automation-rules/{rule_id}":{"put":{"summary":"Api Automation Rules Update","operationId":"api_automation_rules_update_api_workspace_automation_rules__rule_id__put","parameters":[{"name":"rule_id","in":"path","required":true,"schema":{"type":"integer","title":"Rule Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutomationRuleUpdateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Api Automation Rules Delete","operationId":"api_automation_rules_delete_api_workspace_automation_rules__rule_id__delete","parameters":[{"name":"rule_id","in":"path","required":true,"schema":{"type":"integer","title":"Rule Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspace/automation-rules/{rule_id}/toggle":{"post":{"summary":"Api Automation Rules Toggle","operationId":"api_automation_rules_toggle_api_workspace_automation_rules__rule_id__toggle_post","parameters":[{"name":"rule_id","in":"path","required":true,"schema":{"type":"integer","title":"Rule Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspace/automation-rules/{rule_id}/dry-run":{"post":{"summary":"Api Automation Rules Dry Run","operationId":"api_automation_rules_dry_run_api_workspace_automation_rules__rule_id__dry_run_post","parameters":[{"name":"rule_id","in":"path","required":true,"schema":{"type":"integer","title":"Rule Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspace/automation-runs":{"get":{"summary":"Api Automation Runs List","operationId":"api_automation_runs_list_api_workspace_automation_runs_get","parameters":[{"name":"rule_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Rule Id"}},{"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"}}}}}}},"/api/workspace/automation-runs/{run_id}/retry":{"post":{"summary":"Api Automation Run Retry","operationId":"api_automation_run_retry_api_workspace_automation_runs__run_id__retry_post","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"integer","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/platform/audit-logs":{"get":{"summary":"Api Platform Audit Logs","operationId":"api_platform_audit_logs_api_platform_audit_logs_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/platform/trust-pack":{"get":{"summary":"Api Platform Trust Pack","operationId":"api_platform_trust_pack_api_platform_trust_pack_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/signal-exchange/catalog":{"get":{"summary":"Api Signal Exchange Catalog","operationId":"api_signal_exchange_catalog_api_signal_exchange_catalog_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/signal-exchange/signals":{"get":{"summary":"Api Signal Exchange Signals","operationId":"api_signal_exchange_signals_api_signal_exchange_signals_get","parameters":[{"name":"signal_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Signal Type"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Api Signal Exchange Publish","operationId":"api_signal_exchange_publish_api_signal_exchange_signals_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignalExchangePublishIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-exchange/ingest":{"post":{"summary":"Api Signal Exchange Ingest","description":"External partner network ingest — Bearer API key (``signals:ingest``) or webhook secret.","operationId":"api_signal_exchange_ingest_api_signal_exchange_ingest_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Signal-Ingest-Secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Signal-Ingest-Secret"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignalExchangeIngestIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-exchange/signals/{signal_id}/purchase":{"post":{"summary":"Api Signal Exchange Purchase","operationId":"api_signal_exchange_purchase_api_signal_exchange_signals__signal_id__purchase_post","parameters":[{"name":"signal_id","in":"path","required":true,"schema":{"type":"string","title":"Signal Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-exchange/opportunity-scores/subscription":{"get":{"summary":"Api Opportunity Subscription Status","description":"Sprint 177: Return AI Opportunity Exchange subscription status.","operationId":"api_opportunity_subscription_status_api_signal_exchange_opportunity_scores_subscription_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"delete":{"summary":"Api Opportunity Cancel","description":"Sprint 177: Cancel AI Opportunity Exchange subscription.","operationId":"api_opportunity_cancel_api_signal_exchange_opportunity_scores_subscription_delete","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/signal-exchange/opportunity-scores/subscribe":{"post":{"summary":"Api Opportunity Subscribe","description":"Sprint 177: Activate or start Stripe checkout for AI Opportunity Exchange.","operationId":"api_opportunity_subscribe_api_signal_exchange_opportunity_scores_subscribe_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_OppSubscribeIn","default":{}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-exchange/opportunity-scores/subscribe/fulfill":{"post":{"summary":"Api Opportunity Subscribe Fulfill","description":"Sprint 177: Fulfill opportunity subscription after Stripe checkout.","operationId":"api_opportunity_subscribe_fulfill_api_signal_exchange_opportunity_scores_subscribe_fulfill_post","parameters":[{"name":"session_id","in":"query","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"}}}}}}},"/api/signal-exchange/opportunity-scores":{"get":{"summary":"Api Signal Exchange Opportunity Scores","operationId":"api_signal_exchange_opportunity_scores_api_signal_exchange_opportunity_scores_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"}}}}}}},"/api/signal-exchange/opportunity-scores/{lead_id}":{"get":{"summary":"Api Signal Exchange Opportunity Score Lead","operationId":"api_signal_exchange_opportunity_score_lead_api_signal_exchange_opportunity_scores__lead_id__get","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ai/relationship-intelligence":{"get":{"summary":"Api Relationship Intelligence","operationId":"api_relationship_intelligence_api_ai_relationship_intelligence_get","parameters":[{"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"}}}}}}},"/api/ai/guanxi-intelligence":{"get":{"summary":"Api Guanxi Intelligence","operationId":"api_guanxi_intelligence_api_ai_guanxi_intelligence_get","parameters":[{"name":"days_ahead","in":"query","required":false,"schema":{"type":"integer","default":60,"title":"Days Ahead"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/guanxi/decay-alerts":{"get":{"summary":"Api Guanxi Decay Alerts","operationId":"api_guanxi_decay_alerts_api_guanxi_decay_alerts_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"}}}}}}},"/api/guanxi/decay-alerts/{alert_id}/dismiss":{"post":{"summary":"Api Guanxi Dismiss Alert","operationId":"api_guanxi_dismiss_alert_api_guanxi_decay_alerts__alert_id__dismiss_post","parameters":[{"name":"alert_id","in":"path","required":true,"schema":{"type":"integer","title":"Alert Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/guanxi/reactivation-draft":{"post":{"summary":"Api Guanxi Reactivation Draft","operationId":"api_guanxi_reactivation_draft_api_guanxi_reactivation_draft_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_GuanxiReactivateDraftIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/guanxi/reactivation-kpi":{"get":{"summary":"Api Guanxi Reactivation Kpi","operationId":"api_guanxi_reactivation_kpi_api_guanxi_reactivation_kpi_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/leads/{lead_id}/warmth":{"get":{"summary":"Api Lead Warmth","operationId":"api_lead_warmth_api_leads__lead_id__warmth_get","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/leads/{lead_id}/guidance":{"get":{"summary":"Api Lead Guidance","description":"Sprint-66A: Return follow-up guidance for a lead (language, channel, cultural context).","operationId":"api_lead_guidance_api_leads__lead_id__guidance_get","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/attention":{"get":{"summary":"Api Attention","description":"NSP-33: Return leads/contacts needing attention today.","operationId":"api_attention_api_attention_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"}}}}}}},"/api/ai/daily-briefing":{"get":{"summary":"Api Daily Briefing","operationId":"api_daily_briefing_api_ai_daily_briefing_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/ai/daily-briefing/narrative":{"get":{"summary":"Api Daily Briefing Narrative","description":"NSP-34: AI narrative summary for the daily briefing.","operationId":"api_daily_briefing_narrative_api_ai_daily_briefing_narrative_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/ai/copilot/actions":{"post":{"summary":"Api Copilot Action","operationId":"api_copilot_action_api_ai_copilot_actions_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CopilotActionIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/leads/import/preview":{"post":{"summary":"Api Csv Preview","operationId":"api_csv_preview_api_leads_import_preview_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CsvPreviewIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/leads/import/commit":{"post":{"summary":"Api Csv Commit","operationId":"api_csv_commit_api_leads_import_commit_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CsvCommitIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/demo/seed":{"post":{"summary":"Demo Seed","description":"Idempotent seeder used by the empty-state 'Load demo data' button.","operationId":"demo_seed_api_demo_seed_post","requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DemoSeedIn"},{"type":"null"}],"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/demo/clear":{"post":{"summary":"Demo Clear","description":"Delete demo-seeded leads from the current workspace.","operationId":"demo_clear_api_demo_clear_post","requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DemoClearIn"},{"type":"null"}],"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/onboarding":{"get":{"summary":"Onboarding Status Route","operationId":"onboarding_status_route_api_onboarding_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/onboarding/mark":{"post":{"summary":"Onboarding Mark","operationId":"onboarding_mark_api_onboarding_mark_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingMarkIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/onboarding/reset":{"post":{"summary":"Onboarding Reset","operationId":"onboarding_reset_api_onboarding_reset_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/onboarding/dismiss":{"post":{"summary":"Onboarding Dismiss","operationId":"onboarding_dismiss_api_onboarding_dismiss_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/sales-guided":{"get":{"summary":"Sales Guided Status Route","operationId":"sales_guided_status_route_api_sales_guided_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/sales-guided/dismiss":{"post":{"summary":"Sales Guided Dismiss Route","operationId":"sales_guided_dismiss_route_api_sales_guided_dismiss_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/sales-guided/reset":{"post":{"summary":"Sales Guided Reset Route","operationId":"sales_guided_reset_route_api_sales_guided_reset_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/user/sales-home":{"get":{"summary":"Api User Sales Home Get","operationId":"api_user_sales_home_get_api_user_sales_home_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"put":{"summary":"Api User Sales Home Put","operationId":"api_user_sales_home_put_api_user_sales_home_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SalesHomePrefIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/user/sales-layout":{"get":{"summary":"Api User Sales Layout Get","operationId":"api_user_sales_layout_get_api_user_sales_layout_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"put":{"summary":"Api User Sales Layout Put","operationId":"api_user_sales_layout_put_api_user_sales_layout_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SalesLayoutPrefIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/onboarding/ai/suggest":{"post":{"summary":"Onboarding Ai Suggest","operationId":"onboarding_ai_suggest_api_onboarding_ai_suggest_post","requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/OnboardingAiSuggestIn"},{"type":"null"}],"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/leads/wechat":{"post":{"summary":"Create Wechat Lead","description":"Create a WeChat lead.\n\nDashboard users land in their active workspace. Public external submissions\nwithout a session still land in the default workspace.","operationId":"create_wechat_lead_api_leads_wechat_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WeChatLeadIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/leads":{"post":{"summary":"Public Api Create Lead","description":"External API ingestion for Tier 4 customers and marketplace apps.","operationId":"public_api_create_lead_api_v1_leads_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WeChatLeadIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Public Api List Leads","operationId":"public_api_list_leads_api_v1_leads_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/leads":{"get":{"summary":"List Leads","operationId":"list_leads_api_leads_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/leads/segments":{"get":{"summary":"Api List Segments","operationId":"api_list_segments_api_leads_segments_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Api Create Segment","operationId":"api_create_segment_api_leads_segments_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SegmentIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/leads/segments/{segment_id}":{"delete":{"summary":"Api Delete Segment","operationId":"api_delete_segment_api_leads_segments__segment_id__delete","parameters":[{"name":"segment_id","in":"path","required":true,"schema":{"type":"integer","title":"Segment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/leads/bulk":{"post":{"summary":"Api Leads Bulk","operationId":"api_leads_bulk_api_leads_bulk_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkActionIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/leads/{lead_id}/detail":{"get":{"summary":"Api Lead Detail","operationId":"api_lead_detail_api_leads__lead_id__detail_get","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/leads/{lead_id}":{"put":{"summary":"Api Lead Update","description":"Update Akquise touchpoint fields on a lead.","operationId":"api_lead_update_api_leads__lead_id__put","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadAcquisitionUpdateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Api Lead Delete","description":"Delete a lead and all its messages permanently.","operationId":"api_lead_delete_api_leads__lead_id__delete","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/leads/{lead_id}/assign":{"patch":{"summary":"Api Lead Assign","operationId":"api_lead_assign_api_leads__lead_id__assign_patch","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadAssignIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inbox/sync-channel":{"post":{"summary":"Api Inbox Sync Channel","description":"Sync inbox: Teams/Email pull via Graph API; webhook-only channels return push_only.","operationId":"api_inbox_sync_channel_api_inbox_sync_channel_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxSyncIn","default":{}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/health/status":{"get":{"summary":"Api Health Status","operationId":"api_health_status_api_health_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/activity/recent":{"get":{"summary":"Api Activity Recent","operationId":"api_activity_recent_api_activity_recent_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Limit"}},{"name":"sales_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Sales Only"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/contacts/{contact_id}/whatsapp":{"get":{"summary":"Api Contact Whatsapp Url","operationId":"api_contact_whatsapp_url_api_contacts__contact_id__whatsapp_get","parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"integer","title":"Contact Id"}},{"name":"text","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/payment/success":{"get":{"summary":"Payment Success Page","operationId":"payment_success_page_payment_success_get","parameters":[{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/plans":{"get":{"summary":"Plans Page","operationId":"plans_page_plans_get","parameters":[{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/founding/welcome":{"get":{"summary":"Founding Welcome Page","operationId":"founding_welcome_page_founding_welcome_get","parameters":[{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}},{"name":"plan","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/locked":{"get":{"summary":"Billing Locked Page","operationId":"billing_locked_page_billing_locked_get","parameters":[{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/status":{"get":{"summary":"Status Page","operationId":"status_page_status_get","parameters":[{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ai/status":{"get":{"summary":"Ai Status","operationId":"ai_status_api_ai_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/ai/chat":{"post":{"summary":"Ai Chat Endpoint","operationId":"ai_chat_endpoint_api_ai_chat_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiChatIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/help/ai/status":{"get":{"summary":"Help Ai Status Endpoint","operationId":"help_ai_status_endpoint_api_help_ai_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/help/ai/chat":{"post":{"summary":"Help Ai Chat Endpoint","operationId":"help_ai_chat_endpoint_api_help_ai_chat_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiChatIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ai/rag/credits":{"get":{"summary":"Rag Credits","operationId":"rag_credits_api_ai_rag_credits_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/ai/rag/query":{"post":{"summary":"Rag Query Endpoint","operationId":"rag_query_endpoint_api_ai_rag_query_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RagQueryIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ai/rag/reindex":{"post":{"summary":"Rag Reindex","operationId":"rag_reindex_api_ai_rag_reindex_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/ai/rag/status":{"get":{"summary":"Rag Status","operationId":"rag_status_api_ai_rag_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/ai/priorities":{"get":{"summary":"Ai Priorities","description":"Today's sales priorities: stale contacts, hot leads, due follow-ups.","operationId":"ai_priorities_api_ai_priorities_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":12,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ai/command-center":{"get":{"summary":"Ai Command Center","description":"Unified priorities, risks, and next-best actions for the Command Center.","operationId":"ai_command_center_api_ai_command_center_get","parameters":[{"name":"priorities_limit","in":"query","required":false,"schema":{"type":"integer","default":8,"title":"Priorities Limit"}},{"name":"risks_limit","in":"query","required":false,"schema":{"type":"integer","default":10,"title":"Risks Limit"}},{"name":"actions_limit","in":"query","required":false,"schema":{"type":"integer","default":5,"title":"Actions Limit"}},{"name":"include_narrative","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Narrative"}},{"name":"target_lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ai/audit-log":{"get":{"summary":"Ai Audit Log List","operationId":"ai_audit_log_list_api_ai_audit_log_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ai/pii-config":{"get":{"summary":"Ai Pii Config Get","operationId":"ai_pii_config_get_api_ai_pii_config_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"put":{"summary":"Ai Pii Config Set","operationId":"ai_pii_config_set_api_ai_pii_config_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiPiiConfigIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ai/approval-queue":{"get":{"summary":"Ai Approval Queue List","operationId":"ai_approval_queue_list_api_ai_approval_queue_get","parameters":[{"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"}}}}}},"post":{"summary":"Ai Approval Create","operationId":"ai_approval_create_api_ai_approval_queue_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiApprovalCreateIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ai/approval-queue/{approval_id}/approve":{"post":{"summary":"Ai Approval Approve","operationId":"ai_approval_approve_api_ai_approval_queue__approval_id__approve_post","parameters":[{"name":"approval_id","in":"path","required":true,"schema":{"type":"integer","title":"Approval Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ai/approval-queue/{approval_id}/reject":{"post":{"summary":"Ai Approval Reject","operationId":"ai_approval_reject_api_ai_approval_queue__approval_id__reject_post","parameters":[{"name":"approval_id","in":"path","required":true,"schema":{"type":"integer","title":"Approval Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ai/usage-report":{"get":{"summary":"Ai Usage Report","operationId":"ai_usage_report_api_ai_usage_report_get","parameters":[{"name":"month","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Month"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ai/usage-report/export":{"get":{"summary":"Ai Usage Report Export","operationId":"ai_usage_report_export_api_ai_usage_report_export_get","parameters":[{"name":"month","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Month"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/security/encryption-status":{"get":{"summary":"Iso Encryption Status","operationId":"iso_encryption_status_api_security_encryption_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/security/mfa":{"get":{"summary":"Iso Mfa Status","operationId":"iso_mfa_status_api_security_mfa_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"delete":{"summary":"Iso Mfa Disable","operationId":"iso_mfa_disable_api_security_mfa_delete","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/security/mfa/setup":{"post":{"summary":"Iso Mfa Setup","operationId":"iso_mfa_setup_api_security_mfa_setup_post","responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/security/mfa/confirm":{"post":{"summary":"Iso Mfa Confirm","operationId":"iso_mfa_confirm_api_security_mfa_confirm_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IsoMfaConfirmIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/security/retention-policy":{"get":{"summary":"Iso Retention Get","operationId":"iso_retention_get_api_security_retention_policy_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"put":{"summary":"Iso Retention Set","operationId":"iso_retention_set_api_security_retention_policy_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IsoRetentionIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/security/purge-expired":{"post":{"summary":"Iso Purge Expired","operationId":"iso_purge_expired_api_security_purge_expired_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/security/headers-check":{"get":{"summary":"Iso Headers Check","operationId":"iso_headers_check_api_security_headers_check_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/security/platform-shield":{"get":{"summary":"Platform Shield Status","operationId":"platform_shield_status_api_security_platform_shield_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/security/incidents":{"get":{"summary":"Iso Incidents List","operationId":"iso_incidents_list_api_security_incidents_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Iso Incident Report","operationId":"iso_incident_report_api_security_incidents_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IsoIncidentIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/security/incidents/{incident_id}":{"put":{"summary":"Iso Incident Update","operationId":"iso_incident_update_api_security_incidents__incident_id__put","parameters":[{"name":"incident_id","in":"path","required":true,"schema":{"type":"integer","title":"Incident Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IsoIncidentUpdateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/security/audit/verify-integrity":{"get":{"summary":"Iso Audit Integrity","operationId":"iso_audit_integrity_api_security_audit_verify_integrity_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/security/cve-scan":{"get":{"summary":"Iso Cve Last","operationId":"iso_cve_last_api_security_cve_scan_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/security/cve-scan/run":{"post":{"summary":"Iso Cve Run","operationId":"iso_cve_run_api_security_cve_scan_run_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/security/backups":{"get":{"summary":"Iso Backups List","operationId":"iso_backups_list_api_security_backups_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Iso Backup Create","operationId":"iso_backup_create_api_security_backups_post","responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/security/session-policy":{"get":{"summary":"Iso Session Policy Get","operationId":"iso_session_policy_get_api_security_session_policy_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"put":{"summary":"Iso Session Policy Set","operationId":"iso_session_policy_set_api_security_session_policy_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IsoSessionPolicyIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/security/data-classification":{"get":{"summary":"Iso Data Classification","operationId":"iso_data_classification_api_security_data_classification_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/compliance/transfer-map":{"get":{"summary":"Cb Transfer Map List","operationId":"cb_transfer_map_list_api_compliance_transfer_map_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Cb Transfer Map Upsert","operationId":"cb_transfer_map_upsert_api_compliance_transfer_map_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CbTransferMappingIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/compliance/routing":{"get":{"summary":"Cb Routing Overview","operationId":"cb_routing_overview_api_compliance_routing_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/compliance/subprocessors":{"get":{"summary":"Cb Subprocessors List","operationId":"cb_subprocessors_list_api_compliance_subprocessors_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/compliance/subprocessors/export":{"get":{"summary":"Cb Subprocessors Export","operationId":"cb_subprocessors_export_api_compliance_subprocessors_export_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/compliance/recommendations":{"get":{"summary":"Cb Recommendations List","operationId":"cb_recommendations_list_api_compliance_recommendations_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/compliance/recommendations/{rec_id}/resolve":{"post":{"summary":"Cb Recommendation Resolve","operationId":"cb_recommendation_resolve_api_compliance_recommendations__rec_id__resolve_post","parameters":[{"name":"rec_id","in":"path","required":true,"schema":{"type":"integer","title":"Rec Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/compliance/report":{"get":{"summary":"Cb Compliance Report","operationId":"cb_compliance_report_api_compliance_report_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/compliance/console":{"get":{"summary":"Api Compliance Console","operationId":"api_compliance_console_api_compliance_console_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/compliance/console/transfer-flow":{"get":{"summary":"Api Compliance Transfer Flow","operationId":"api_compliance_transfer_flow_api_compliance_console_transfer_flow_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/compliance/console/export":{"get":{"summary":"Api Compliance Export","operationId":"api_compliance_export_api_compliance_console_export_get","parameters":[{"name":"fmt","in":"query","required":false,"schema":{"type":"string","default":"json","title":"Fmt"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/compliance/ai-governance":{"get":{"summary":"Api Compliance Ai Governance Get","operationId":"api_compliance_ai_governance_get_api_compliance_ai_governance_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"put":{"summary":"Api Compliance Ai Governance Put","operationId":"api_compliance_ai_governance_put_api_compliance_ai_governance_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiGovernanceIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/contacts/{contact_id}/consent/timeline":{"get":{"summary":"Api Contact Consent Timeline","operationId":"api_contact_consent_timeline_api_contacts__contact_id__consent_timeline_get","parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"integer","title":"Contact Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/compliance/whatsapp/templates":{"get":{"summary":"Wa Templates List","operationId":"wa_templates_list_api_compliance_whatsapp_templates_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Wa Templates Create","operationId":"wa_templates_create_api_compliance_whatsapp_templates_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WaTemplateComplianceIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/compliance/whatsapp/templates/{template_id}/status":{"put":{"summary":"Wa Template Update Status","operationId":"wa_template_update_status_api_compliance_whatsapp_templates__template_id__status_put","parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"integer","title":"Template Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WaTemplateStatusIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/compliance/whatsapp/check":{"post":{"summary":"Wa Check Message","operationId":"wa_check_message_api_compliance_whatsapp_check_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WaCheckIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/compliance/email-domain-check":{"get":{"summary":"Email Domain Check","operationId":"email_domain_check_api_compliance_email_domain_check_get","parameters":[{"name":"domain","in":"query","required":true,"schema":{"type":"string","title":"Domain"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/compliance/linkedin/policy":{"get":{"summary":"Linkedin Policy Get","operationId":"linkedin_policy_get_api_compliance_linkedin_policy_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"put":{"summary":"Linkedin Policy Set","operationId":"linkedin_policy_set_api_compliance_linkedin_policy_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkedInPolicyIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/compliance/linkedin/record-action":{"post":{"summary":"Linkedin Record Action","operationId":"linkedin_record_action_api_compliance_linkedin_record_action_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkedInActionIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/compliance/linkedin/usage":{"get":{"summary":"Linkedin Daily Usage","operationId":"linkedin_daily_usage_api_compliance_linkedin_usage_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/compliance/wecom/policy":{"get":{"summary":"Wecom Policy Get","operationId":"wecom_policy_get_api_compliance_wecom_policy_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"put":{"summary":"Wecom Policy Set","operationId":"wecom_policy_set_api_compliance_wecom_policy_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WeComPolicyIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/compliance/wecom/check":{"post":{"summary":"Wecom Check Message","operationId":"wecom_check_message_api_compliance_wecom_check_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WeComCheckIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/trust":{"get":{"summary":"Trust Page","operationId":"trust_page_trust_get","parameters":[{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/trust/portal":{"get":{"summary":"Trust Portal Api","operationId":"trust_portal_api_api_trust_portal_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/trust/documents/{doc_id}":{"get":{"summary":"Trust Document Download","operationId":"trust_document_download_api_trust_documents__doc_id__get","parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/status/uptime":{"get":{"summary":"Status Uptime","operationId":"status_uptime_api_status_uptime_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":90,"title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/status/incidents":{"get":{"summary":"Status Incidents","operationId":"status_incidents_api_status_incidents_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"}}}}}},"post":{"summary":"Status Incident Create","operationId":"status_incident_create_api_status_incidents_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicIncidentIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/status/incidents/{incident_id}":{"put":{"summary":"Status Incident Update","operationId":"status_incident_update_api_status_incidents__incident_id__put","parameters":[{"name":"incident_id","in":"path","required":true,"schema":{"type":"integer","title":"Incident Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicIncidentUpdateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/trust/iso-checklist":{"get":{"summary":"Iso Checklist Get","operationId":"iso_checklist_get_api_trust_iso_checklist_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"put":{"summary":"Iso Checklist Update","operationId":"iso_checklist_update_api_trust_iso_checklist_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IsoControlUpdateIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/trust/soc2-mapping":{"get":{"summary":"Soc2 Mapping","operationId":"soc2_mapping_api_trust_soc2_mapping_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/trust/policy-templates":{"get":{"summary":"Policy Templates List","operationId":"policy_templates_list_api_trust_policy_templates_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/trust/policy-templates/{name}":{"get":{"summary":"Policy Template Download","operationId":"policy_template_download_api_trust_policy_templates__name__get","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/security/devices":{"post":{"summary":"Register Device Endpoint","operationId":"register_device_endpoint_api_security_devices_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceRegisterIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"List Trusted Devices Endpoint","operationId":"list_trusted_devices_endpoint_api_security_devices_get","parameters":[{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/security/devices/check":{"get":{"summary":"Check Device Endpoint","operationId":"check_device_endpoint_api_security_devices_check_get","parameters":[{"name":"fingerprint","in":"query","required":true,"schema":{"type":"string","title":"Fingerprint"}},{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/security/devices/{device_id}":{"delete":{"summary":"Revoke Device Endpoint","operationId":"revoke_device_endpoint_api_security_devices__device_id__delete","parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"integer","title":"Device Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/security/session-policy-extended":{"get":{"summary":"Get Session Policy Ext Endpoint","operationId":"get_session_policy_ext_endpoint_api_security_session_policy_extended_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"put":{"summary":"Set Session Policy Ext Endpoint","operationId":"set_session_policy_ext_endpoint_api_security_session_policy_extended_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionPolicyExtendedIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/security/webhook-signature-docs":{"get":{"summary":"Webhook Sig Docs Endpoint","operationId":"webhook_sig_docs_endpoint_api_security_webhook_signature_docs_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/security/webhook-signature/verify":{"post":{"summary":"Webhook Verify Endpoint","operationId":"webhook_verify_endpoint_api_security_webhook_signature_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookVerifyIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/security/scopes":{"get":{"summary":"List Scopes Endpoint","operationId":"list_scopes_endpoint_api_security_scopes_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/security/scopes/validate":{"post":{"summary":"Validate Scopes Endpoint","operationId":"validate_scopes_endpoint_api_security_scopes_validate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidateScopesIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/security/vault":{"get":{"summary":"Vault List Endpoint","operationId":"vault_list_endpoint_api_security_vault_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Vault Store Endpoint","operationId":"vault_store_endpoint_api_security_vault_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VaultStoreIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/security/vault/{key}":{"delete":{"summary":"Vault Delete Endpoint","operationId":"vault_delete_endpoint_api_security_vault__key__delete","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/security/audit-chain/verify":{"get":{"summary":"Audit Chain Verify Endpoint","operationId":"audit_chain_verify_endpoint_api_security_audit_chain_verify_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":1000,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/security/audit-chain/export":{"get":{"summary":"Audit Chain Export Endpoint","operationId":"audit_chain_export_endpoint_api_security_audit_chain_export_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":500,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/security/field-encryption/status":{"get":{"summary":"Field Encryption Status Endpoint","operationId":"field_encryption_status_endpoint_api_security_field_encryption_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/security/field-encryption/rotate":{"post":{"summary":"Field Encryption Rotate Endpoint","operationId":"field_encryption_rotate_endpoint_api_security_field_encryption_rotate_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/leads/{lead_id}/ai/analyze":{"post":{"summary":"Analyze Lead Endpoint","operationId":"analyze_lead_endpoint_api_leads__lead_id__ai_analyze_post","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AnalyzeIn"},{"type":"null"}],"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cron/ai-automations":{"post":{"summary":"Cron Ai Automations","description":"Auto-analyze new leads + optional hot follow-up drafts per workspace flags.\n\nSchedule with the same ``X-Cron-Secret: $CRON_SECRET`` header as ``/api/cron/wecom-followups``.","operationId":"cron_ai_automations_api_cron_ai_automations_post","parameters":[{"name":"x-cron-secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Cron-Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Cron Ai Automations Api Cron Ai Automations Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cron/wecom-followups":{"post":{"summary":"Cron Wecom Followups","description":"Paste-ready follow-ups for due leads (Slack/Teams). Call from a scheduler with ``X-Cron-Secret: $CRON_SECRET``.","operationId":"cron_wecom_followups_api_cron_wecom_followups_post","parameters":[{"name":"x-cron-secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Cron-Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Cron Wecom Followups Api Cron Wecom Followups Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/leads/{lead_id}/ai/followup":{"post":{"summary":"Ai Followup Draft","operationId":"ai_followup_draft_api_leads__lead_id__ai_followup_post","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FollowupDraftIn"},{"type":"null"}],"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/leads/{lead_id}/ai/followup/feedback":{"post":{"summary":"Ai Followup Feedback","operationId":"ai_followup_feedback_api_leads__lead_id__ai_followup_feedback_post","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FollowupFeedbackIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/leads/{lead_id}/ai/email-draft":{"post":{"summary":"Ai Email Draft Endpoint","operationId":"ai_email_draft_endpoint_api_leads__lead_id__ai_email_draft_post","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/EmailDraftIn"},{"type":"null"}],"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/leads/{lead_id}/affiliate-suggestion":{"get":{"summary":"Api Lead Affiliate Suggestion","description":"Sprint 264 — Return affiliate link suggestion for a lead.","operationId":"api_lead_affiliate_suggestion_api_leads__lead_id__affiliate_suggestion_get","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/leads/{lead_id}/messages/draft":{"post":{"summary":"Api Lead Outbound Draft","description":"Create an outbound draft that requires explicit approval before send/use.","operationId":"api_lead_outbound_draft_api_leads__lead_id__messages_draft_post","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutboundDraftIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/leads/{lead_id}/messages/{message_id}/approve":{"post":{"summary":"Api Lead Outbound Approve","description":"Approve an outbound draft. Email sends via MS365; WeCom becomes paste-ready.","operationId":"api_lead_outbound_approve_api_leads__lead_id__messages__message_id__approve_post","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}},{"name":"message_id","in":"path","required":true,"schema":{"type":"integer","title":"Message Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/OutboundApproveIn"},{"type":"null"}],"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/leads/{lead_id}/ai/email-send":{"post":{"summary":"Ai Email Send Endpoint","description":"Optional: send drafted email via Microsoft 365 when configured.","operationId":"ai_email_send_endpoint_api_leads__lead_id__ai_email_send_post","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailSendIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/leads/{lead_id}/ai/proposal":{"post":{"summary":"Ai Proposal Endpoint","operationId":"ai_proposal_endpoint_api_leads__lead_id__ai_proposal_post","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProposalIn"},{"type":"null"}],"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/leads/{lead_id}/ai/meeting-summary":{"post":{"summary":"Ai Meeting Summary Endpoint","operationId":"ai_meeting_summary_endpoint_api_leads__lead_id__ai_meeting_summary_post","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingSummaryIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/leads/{lead_id}/ai/reply-suggestions":{"post":{"summary":"Ai Reply Suggestions","operationId":"ai_reply_suggestions_api_leads__lead_id__ai_reply_suggestions_post","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ReplySuggestionsIn"},{"type":"null"}],"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/leads/{lead_id}/score/explain":{"get":{"summary":"Api Lead Score Explain","description":"Sprint 334 — Score Explainer: returns structured score factors for a lead.","operationId":"api_lead_score_explain_api_leads__lead_id__score_explain_get","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Lead Score Explain Api Leads  Lead Id  Score Explain Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/leads/{lead_id}/score/recalculate":{"post":{"summary":"Api Lead Score Recalculate","operationId":"api_lead_score_recalculate_api_leads__lead_id__score_recalculate_post","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspace/scores/recalculate":{"post":{"summary":"Api Workspace Scores Recalculate","operationId":"api_workspace_scores_recalculate_api_workspace_scores_recalculate_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/sequences":{"get":{"summary":"Api Sequences List","operationId":"api_sequences_list_api_sequences_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Api Sequences Create","operationId":"api_sequences_create_api_sequences_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SequenceCreateIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sequences/{sequence_id}/enrollment":{"patch":{"summary":"Api Sequences Update Enrollment","operationId":"api_sequences_update_enrollment_api_sequences__sequence_id__enrollment_patch","parameters":[{"name":"sequence_id","in":"path","required":true,"schema":{"type":"integer","title":"Sequence Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SequenceEnrollmentIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/leads/{lead_id}/sequences/start":{"post":{"summary":"Api Lead Sequence Start","operationId":"api_lead_sequence_start_api_leads__lead_id__sequences_start_post","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SequenceStartIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/leads/{lead_id}/sequences/active":{"get":{"summary":"Api Lead Sequence Active","operationId":"api_lead_sequence_active_api_leads__lead_id__sequences_active_get","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Api Lead Sequence Cancel","operationId":"api_lead_sequence_cancel_api_leads__lead_id__sequences_active_delete","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sequences/{sequence_id}":{"delete":{"summary":"Api Sequence Delete","operationId":"api_sequence_delete_api_sequences__sequence_id__delete","parameters":[{"name":"sequence_id","in":"path","required":true,"schema":{"type":"integer","title":"Sequence Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/leads/{lead_id}/sequences/pause":{"post":{"summary":"Api Lead Sequence Pause","operationId":"api_lead_sequence_pause_api_leads__lead_id__sequences_pause_post","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/leads/{lead_id}/sequences/resume":{"post":{"summary":"Api Lead Sequence Resume","operationId":"api_lead_sequence_resume_api_leads__lead_id__sequences_resume_post","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sequences/{sequence_id}/enrollments":{"get":{"summary":"Api Sequence Enrollments","operationId":"api_sequence_enrollments_api_sequences__sequence_id__enrollments_get","parameters":[{"name":"sequence_id","in":"path","required":true,"schema":{"type":"integer","title":"Sequence Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sequences/{sequence_id}/analytics":{"get":{"summary":"Api Sequence Analytics","operationId":"api_sequence_analytics_api_sequences__sequence_id__analytics_get","parameters":[{"name":"sequence_id","in":"path","required":true,"schema":{"type":"integer","title":"Sequence Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cron/sequences":{"post":{"summary":"Cron Sequences","operationId":"cron_sequences_api_cron_sequences_post","parameters":[{"name":"x-cron-secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Cron-Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Cron Sequences Api Cron Sequences Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/leads/{lead_id}/ai/summarize":{"post":{"summary":"Ai Conversation Summarize","operationId":"ai_conversation_summarize_api_leads__lead_id__ai_summarize_post","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConversationSummarizeIn"},{"type":"null"}],"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/activation/checklist":{"get":{"summary":"Api Activation Checklist Get","operationId":"api_activation_checklist_get_api_activation_checklist_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/activation/summary":{"get":{"summary":"Api Activation Summary","operationId":"api_activation_summary_api_activation_summary_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/activation/dismiss":{"post":{"summary":"Api Activation Dismiss","operationId":"api_activation_dismiss_api_activation_dismiss_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChecklistDismissIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/activation/reset":{"post":{"summary":"Api Activation Reset","operationId":"api_activation_reset_api_activation_reset_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/tour":{"get":{"summary":"Api Tour Get","operationId":"api_tour_get_api_tour_get","parameters":[{"name":"lang","in":"query","required":false,"schema":{"type":"string","default":"de","title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tour/seen":{"post":{"summary":"Api Tour Seen","operationId":"api_tour_seen_api_tour_seen_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TourSeenIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tour/skip":{"post":{"summary":"Api Tour Skip","operationId":"api_tour_skip_api_tour_skip_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/tour/reset":{"post":{"summary":"Api Tour Reset","operationId":"api_tour_reset_api_tour_reset_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/sales-tour":{"get":{"summary":"Api Sales Tour Get","operationId":"api_sales_tour_get_api_sales_tour_get","parameters":[{"name":"lang","in":"query","required":false,"schema":{"type":"string","default":"de","title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sales-tour/seen":{"post":{"summary":"Api Sales Tour Seen","operationId":"api_sales_tour_seen_api_sales_tour_seen_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TourSeenIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sales-tour/skip":{"post":{"summary":"Api Sales Tour Skip","operationId":"api_sales_tour_skip_api_sales_tour_skip_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/workspace/onboarding/enroll":{"post":{"summary":"Api Onboarding Enroll","operationId":"api_onboarding_enroll_api_workspace_onboarding_enroll_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingEnrollIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspace/onboarding/sequence":{"get":{"summary":"Api Onboarding Sequence State","operationId":"api_onboarding_sequence_state_api_workspace_onboarding_sequence_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/cron/onboarding-emails":{"post":{"summary":"Cron Onboarding Emails","operationId":"cron_onboarding_emails_api_cron_onboarding_emails_post","parameters":[{"name":"x-cron-secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Cron-Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Cron Onboarding Emails Api Cron Onboarding Emails Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cron/trial-winback-emails":{"post":{"summary":"Cron Trial Winback Emails","operationId":"cron_trial_winback_emails_api_cron_trial_winback_emails_post","parameters":[{"name":"x-cron-secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Cron-Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Cron Trial Winback Emails Api Cron Trial Winback Emails Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cron/trial-autoextension":{"post":{"summary":"Cron Trial Autoextension","operationId":"cron_trial_autoextension_api_cron_trial_autoextension_post","parameters":[{"name":"x-cron-secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Cron-Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Cron Trial Autoextension Api Cron Trial Autoextension Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cron/retention-emails":{"post":{"summary":"Cron Retention Emails","operationId":"cron_retention_emails_api_cron_retention_emails_post","parameters":[{"name":"x-cron-secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Cron-Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Cron Retention Emails Api Cron Retention Emails Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cron/signal-crawler":{"post":{"summary":"Cron Signal Crawler","operationId":"cron_signal_crawler_api_cron_signal_crawler_post","parameters":[{"name":"x-cron-secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Cron-Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Cron Signal Crawler Api Cron Signal Crawler Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cron/reservoir-auctions":{"post":{"summary":"Cron Reservoir Auctions","description":"Cron: import Reservoir NFT asks as Signal Exchange crypto auctions.","operationId":"cron_reservoir_auctions_api_cron_reservoir_auctions_post","parameters":[{"name":"x-cron-secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Cron-Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Cron Reservoir Auctions Api Cron Reservoir Auctions Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/reservoir/status":{"get":{"summary":"Api Admin Reservoir Status","description":"Master: Reservoir import configuration status.","operationId":"api_admin_reservoir_status_api_admin_reservoir_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Admin Reservoir Status Api Admin Reservoir Status Get"}}}}}}},"/api/admin/reservoir/sync":{"post":{"summary":"Api Admin Reservoir Sync","description":"Master: manually sync Reservoir asks into Signal Exchange auctions.","operationId":"api_admin_reservoir_sync_api_admin_reservoir_sync_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Admin Reservoir Sync Api Admin Reservoir Sync Post"}}}}}}},"/api/admin/signal-crawler/run":{"post":{"summary":"Api Admin Signal Crawler Run","description":"Trigger the signal crawler. Any authenticated user may run it.","operationId":"api_admin_signal_crawler_run_api_admin_signal_crawler_run_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Admin Signal Crawler Run Api Admin Signal Crawler Run Post"}}}}}}},"/api/admin/signal-crawler/debug":{"get":{"summary":"Api Admin Signal Crawler Debug","description":"Debug: show crawler state — which workspaces are enabled, inbox counts.","operationId":"api_admin_signal_crawler_debug_api_admin_signal_crawler_debug_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Admin Signal Crawler Debug Api Admin Signal Crawler Debug Get"}}}}}}},"/api/admin/signal-api-keys":{"post":{"summary":"Api Admin Signal Api Keys Create","operationId":"api_admin_signal_api_keys_create_api_admin_signal_api_keys_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignalApiKeyCreateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Admin Signal Api Keys Create Api Admin Signal Api Keys Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Api Admin Signal Api Keys List","operationId":"api_admin_signal_api_keys_list_api_admin_signal_api_keys_get","parameters":[{"name":"workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Admin Signal Api Keys List Api Admin Signal Api Keys Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/signal-api-keys/{key_id}":{"delete":{"summary":"Api Admin Signal Api Keys Revoke","operationId":"api_admin_signal_api_keys_revoke_api_admin_signal_api_keys__key_id__delete","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"string","title":"Key Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Admin Signal Api Keys Revoke Api Admin Signal Api Keys  Key Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/signals":{"get":{"summary":"Api V1 Signals Public","operationId":"api_v1_signals_public_api_v1_signals_get","parameters":[{"name":"api_key","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Key"}},{"name":"signal_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Signal Type"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api V1 Signals Public Api V1 Signals Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/signals/{signal_id}":{"get":{"summary":"Api V1 Signal Detail","description":"Signal detail — full body only after purchase or auction win.","operationId":"api_v1_signal_detail_api_v1_signals__signal_id__get","parameters":[{"name":"signal_id","in":"path","required":true,"schema":{"type":"string","title":"Signal Id"}},{"name":"api_key","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api V1 Signal Detail Api V1 Signals  Signal Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/signals/{signal_id}/buy":{"post":{"summary":"Api V1 Signal Buy","description":"Option A — buy a fixed-price signal. Deducts Signal Credits from partner workspace.","operationId":"api_v1_signal_buy_api_v1_signals__signal_id__buy_post","parameters":[{"name":"signal_id","in":"path","required":true,"schema":{"type":"string","title":"Signal Id"}},{"name":"api_key","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api V1 Signal Buy Api V1 Signals  Signal Id  Buy Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/signals/{signal_id}/bid":{"post":{"summary":"Api V1 Signal Bid","description":"Option B — place an auction bid. Bid must beat current by ≥5 %.","operationId":"api_v1_signal_bid_api_v1_signals__signal_id__bid_post","parameters":[{"name":"signal_id","in":"path","required":true,"schema":{"type":"string","title":"Signal Id"}},{"name":"api_key","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BidIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api V1 Signal Bid Api V1 Signals  Signal Id  Bid Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/signal-exchange/{signal_id}/set-auction":{"post":{"summary":"Api Admin Signal Set Auction","description":"Master-only: switch a listed signal to/from auction mode.","operationId":"api_admin_signal_set_auction_api_admin_signal_exchange__signal_id__set_auction_post","parameters":[{"name":"signal_id","in":"path","required":true,"schema":{"type":"string","title":"Signal Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuctionModeIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Admin Signal Set Auction Api Admin Signal Exchange  Signal Id  Set Auction Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/signal-exchange/close-auctions":{"post":{"summary":"Api Admin Close Auctions","description":"Master-only: manually close all expired auctions.","operationId":"api_admin_close_auctions_api_admin_signal_exchange_close_auctions_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Admin Close Auctions Api Admin Signal Exchange Close Auctions Post"}}}}}}},"/webhooks/signal-partner/{source_key}":{"post":{"summary":"Webhook Signal Partner","description":"Public webhook receiver for registered provider connectors (HubSpot, Salesforce, Pipedrive, generic).","operationId":"webhook_signal_partner_webhooks_signal_partner__source_key__post","parameters":[{"name":"source_key","in":"path","required":true,"schema":{"type":"string","title":"Source Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Webhook Signal Partner Webhooks Signal Partner  Source Key  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/signal-webhook-sources":{"post":{"summary":"Api Admin Register Webhook Source","description":"Master-only: register a new provider webhook connector.","operationId":"api_admin_register_webhook_source_api_admin_signal_webhook_sources_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_WebhookSourceIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Admin Register Webhook Source Api Admin Signal Webhook Sources Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Api Admin List Webhook Sources","description":"Master-only: list registered provider webhook sources.","operationId":"api_admin_list_webhook_sources_api_admin_signal_webhook_sources_get","parameters":[{"name":"workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Admin List Webhook Sources Api Admin Signal Webhook Sources Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/signal-webhook-sources/{source_id}":{"delete":{"summary":"Api Admin Deactivate Webhook Source","description":"Master-only: deactivate a provider webhook source.","operationId":"api_admin_deactivate_webhook_source_api_admin_signal_webhook_sources__source_id__delete","parameters":[{"name":"source_id","in":"path","required":true,"schema":{"type":"string","title":"Source Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Admin Deactivate Webhook Source Api Admin Signal Webhook Sources  Source Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-exchange/ai-score-batch":{"post":{"summary":"Api Signal Ai Score Batch","description":"Score up to `limit` listed signals for current workspace using AI.","operationId":"api_signal_ai_score_batch_api_signal_exchange_ai_score_batch_post","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Limit"}},{"name":"force","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Force"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Signal Ai Score Batch Api Signal Exchange Ai Score Batch Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-exchange/ai-scores":{"get":{"summary":"Api Signal Ai Scores","description":"Return cached AI signal scores for current workspace.","operationId":"api_signal_ai_scores_api_signal_exchange_ai_scores_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Signal Ai Scores Api Signal Exchange Ai Scores Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-exchange/promoted-leads/refresh":{"post":{"summary":"Api Signal Promoted Leads Refresh","description":"Refresh lead promotions from high-score signals for current workspace.","operationId":"api_signal_promoted_leads_refresh_api_signal_exchange_promoted_leads_refresh_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Signal Promoted Leads Refresh Api Signal Exchange Promoted Leads Refresh Post"}}}}}}},"/api/signal-exchange/promoted-leads":{"get":{"summary":"Api Signal Promoted Leads","description":"Return leads promoted due to signal exchange AI matches.","operationId":"api_signal_promoted_leads_api_signal_exchange_promoted_leads_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Signal Promoted Leads Api Signal Exchange Promoted Leads Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/brand-publisher/briefs":{"post":{"summary":"Api Bp Create Brief","description":"Create a new brand campaign brief.","operationId":"api_bp_create_brief_api_brand_publisher_briefs_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_BrandBriefIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Bp Create Brief Api Brand Publisher Briefs Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Api Bp List Briefs","description":"List brand briefs — own workspace by default, all if all_workspaces=true (master only).","operationId":"api_bp_list_briefs_api_brand_publisher_briefs_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","default":"open","title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"all_workspaces","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"All Workspaces"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Bp List Briefs Api Brand Publisher Briefs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/brand-publisher/briefs/{brief_id}":{"delete":{"summary":"Api Bp Close Brief","description":"Close a brand brief.","operationId":"api_bp_close_brief_api_brand_publisher_briefs__brief_id__delete","parameters":[{"name":"brief_id","in":"path","required":true,"schema":{"type":"string","title":"Brief Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Bp Close Brief Api Brand Publisher Briefs  Brief Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/brand-publisher/briefs/{brief_id}/apply":{"post":{"summary":"Api Bp Apply To Brief","description":"A publisher (the current workspace) applies to a brand's open brief.","operationId":"api_bp_apply_to_brief_api_brand_publisher_briefs__brief_id__apply_post","parameters":[{"name":"brief_id","in":"path","required":true,"schema":{"type":"string","title":"Brief Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Bp Apply To Brief Api Brand Publisher Briefs  Brief Id  Apply Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/brand-publisher/publisher-profiles":{"post":{"summary":"Api Bp Upsert Publisher","description":"Create or update a publisher profile for the current workspace.","operationId":"api_bp_upsert_publisher_api_brand_publisher_publisher_profiles_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_PublisherProfileIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Bp Upsert Publisher Api Brand Publisher Publisher Profiles Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Api Bp List Publishers","description":"List publisher profiles — all by default (marketplace browse), own workspace optional.","operationId":"api_bp_list_publishers_api_brand_publisher_publisher_profiles_get","parameters":[{"name":"platform","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Platform"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"all_workspaces","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"All Workspaces"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Bp List Publishers Api Brand Publisher Publisher Profiles Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/brand-publisher/match":{"post":{"summary":"Api Bp Run Matching","description":"Run brand ↔ publisher matching for current workspace and inject high-score matches into Signal Inbox.","operationId":"api_bp_run_matching_api_brand_publisher_match_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Bp Run Matching Api Brand Publisher Match Post"}}}}}}},"/api/brand-publisher/matches":{"get":{"summary":"Api Bp List Matches","description":"List brand ↔ publisher matches for current workspace.","operationId":"api_bp_list_matches_api_brand_publisher_matches_get","parameters":[{"name":"brief_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brief Id"}},{"name":"min_score","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Min Score"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Bp List Matches Api Brand Publisher Matches Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/brand-publisher/contracts":{"post":{"summary":"Api Bp Create Contract","description":"Create a new contract in draft state from a marketplace match.","operationId":"api_bp_create_contract_api_brand_publisher_contracts_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__main___ContractIn__1"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Bp Create Contract Api Brand Publisher Contracts Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Api Bp List Contracts","description":"List contracts for current workspace.","operationId":"api_bp_list_contracts_api_brand_publisher_contracts_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Bp List Contracts Api Brand Publisher Contracts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/brand-publisher/contracts/{contract_id}":{"get":{"summary":"Api Bp Get Contract","description":"Get a single contract with full details.","operationId":"api_bp_get_contract_api_brand_publisher_contracts__contract_id__get","parameters":[{"name":"contract_id","in":"path","required":true,"schema":{"type":"string","title":"Contract Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Bp Get Contract Api Brand Publisher Contracts  Contract Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/brand-publisher/contracts/{contract_id}/transition":{"post":{"summary":"Api Bp Transition Contract","description":"Advance a contract to the next state in its lifecycle.","operationId":"api_bp_transition_contract_api_brand_publisher_contracts__contract_id__transition_post","parameters":[{"name":"contract_id","in":"path","required":true,"schema":{"type":"string","title":"Contract Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_ContractTransitionIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Bp Transition Contract Api Brand Publisher Contracts  Contract Id  Transition Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/brand-publisher/contracts/{contract_id}/sign":{"post":{"summary":"Api Bp Sign Contract","description":"Cryptographically sign the contract as brand or publisher.","operationId":"api_bp_sign_contract_api_brand_publisher_contracts__contract_id__sign_post","parameters":[{"name":"contract_id","in":"path","required":true,"schema":{"type":"string","title":"Contract Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__main___SignContractIn__1"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Bp Sign Contract Api Brand Publisher Contracts  Contract Id  Sign Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/brand-publisher/contracts/{contract_id}/html":{"get":{"summary":"Api Bp Contract Html","description":"Return the rendered contract as a standalone HTML document.","operationId":"api_bp_contract_html_api_brand_publisher_contracts__contract_id__html_get","parameters":[{"name":"contract_id","in":"path","required":true,"schema":{"type":"string","title":"Contract Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Api Bp Contract Html Api Brand Publisher Contracts  Contract Id  Html Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/brand-publisher/commissions":{"get":{"summary":"Api Bp List Commissions","description":"List commission records for current workspace.","operationId":"api_bp_list_commissions_api_brand_publisher_commissions_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":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Bp List Commissions Api Brand Publisher Commissions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/commissions":{"get":{"summary":"Api Admin List Commissions","description":"Master-only: commission dashboard across all workspaces.","operationId":"api_admin_list_commissions_api_admin_commissions_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":200,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Admin List Commissions Api Admin Commissions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/brand-publisher/commissions/{commission_id}/mark-paid":{"post":{"summary":"Api Bp Mark Commission Paid","description":"Master-only: mark a commission as paid (after NOWPayments or wire confirmed).","operationId":"api_bp_mark_commission_paid_api_brand_publisher_commissions__commission_id__mark_paid_post","parameters":[{"name":"commission_id","in":"path","required":true,"schema":{"type":"string","title":"Commission Id"}},{"name":"payment_ref","in":"query","required":false,"schema":{"type":"string","default":"","title":"Payment Ref"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Bp Mark Commission Paid Api Brand Publisher Commissions  Commission Id  Mark Paid Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/brand-publisher/invoices":{"post":{"summary":"Api Bp Create Invoice","description":"Create an invoice batch for all pending commissions in current workspace.","operationId":"api_bp_create_invoice_api_brand_publisher_invoices_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Bp Create Invoice Api Brand Publisher Invoices Post"}}}}}},"get":{"summary":"Api Bp List Invoices","description":"List commission invoices for current workspace.","operationId":"api_bp_list_invoices_api_brand_publisher_invoices_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Bp List Invoices Api Brand Publisher Invoices Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/brand-publisher/contract-templates":{"get":{"summary":"Api Bp List Templates","description":"List all custom contract templates.","operationId":"api_bp_list_templates_api_brand_publisher_contract_templates_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Bp List Templates Api Brand Publisher Contract Templates Get"}}}}}},"post":{"summary":"Api Bp Upsert Template","description":"Create or update a contract HTML template for a campaign type.","operationId":"api_bp_upsert_template_api_brand_publisher_contract_templates_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_TemplateIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Bp Upsert Template Api Brand Publisher Contract Templates Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/brand-publisher/contract-templates/{campaign_type}":{"get":{"summary":"Api Bp Get Template","description":"Get contract template for a specific campaign type (falls back to default).","operationId":"api_bp_get_template_api_brand_publisher_contract_templates__campaign_type__get","parameters":[{"name":"campaign_type","in":"path","required":true,"schema":{"type":"string","title":"Campaign Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Bp Get Template Api Brand Publisher Contract Templates  Campaign Type  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/brand-publisher/ai-match":{"post":{"summary":"Api Bp Ai Match","description":"Run AI-enhanced matching for all open briefs in current workspace.","operationId":"api_bp_ai_match_api_brand_publisher_ai_match_post","parameters":[{"name":"force","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Force"}},{"name":"use_ai","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Use Ai"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Bp Ai Match Api Brand Publisher Ai Match Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/brand-publisher/ai-scores":{"get":{"summary":"Api Bp Ai Scores","description":"Return cached AI match scores for current workspace.","operationId":"api_bp_ai_scores_api_brand_publisher_ai_scores_get","parameters":[{"name":"brief_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brief Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Bp Ai Scores Api Brand Publisher Ai Scores Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/brand-publisher/contracts/{contract_id}/suggest-deliverables":{"post":{"summary":"Api Bp Suggest Deliverables","description":"Generate AI-suggested deliverables for a contract.","operationId":"api_bp_suggest_deliverables_api_brand_publisher_contracts__contract_id__suggest_deliverables_post","parameters":[{"name":"contract_id","in":"path","required":true,"schema":{"type":"string","title":"Contract Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Bp Suggest Deliverables Api Brand Publisher Contracts  Contract Id  Suggest Deliverables Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/brand-publisher/contracts/{contract_id}/analyze-risks":{"post":{"summary":"Api Bp Analyze Risks","description":"Run AI risk analysis on a contract and return flagged issues.","operationId":"api_bp_analyze_risks_api_brand_publisher_contracts__contract_id__analyze_risks_post","parameters":[{"name":"contract_id","in":"path","required":true,"schema":{"type":"string","title":"Contract Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Bp Analyze Risks Api Brand Publisher Contracts  Contract Id  Analyze Risks Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/brand-publisher/contracts/{contract_id}/generate-summary":{"post":{"summary":"Api Bp Generate Summary","description":"Generate a plain-language AI summary of the contract (for email/notification).","operationId":"api_bp_generate_summary_api_brand_publisher_contracts__contract_id__generate_summary_post","parameters":[{"name":"contract_id","in":"path","required":true,"schema":{"type":"string","title":"Contract Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Bp Generate Summary Api Brand Publisher Contracts  Contract Id  Generate Summary Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/brand-publisher/contracts/{contract_id}/ai-suggestions":{"get":{"summary":"Api Bp Get Ai Suggestions","description":"Return all stored AI suggestions (deliverables, risks, summary) for a contract.","operationId":"api_bp_get_ai_suggestions_api_brand_publisher_contracts__contract_id__ai_suggestions_get","parameters":[{"name":"contract_id","in":"path","required":true,"schema":{"type":"string","title":"Contract Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Bp Get Ai Suggestions Api Brand Publisher Contracts  Contract Id  Ai Suggestions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/affiliate/influencer/profile":{"get":{"summary":"Api Aff Get My Profile","description":"Get current user's influencer profile.","operationId":"api_aff_get_my_profile_api_affiliate_influencer_profile_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Aff Get My Profile Api Affiliate Influencer Profile Get"}}}}}},"post":{"summary":"Api Aff Upsert Profile","description":"Create or update the current user's influencer profile.","operationId":"api_aff_upsert_profile_api_affiliate_influencer_profile_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_InfluencerProfileIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Aff Upsert Profile Api Affiliate Influencer Profile Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/affiliate/influencers":{"get":{"summary":"Api Aff List Influencers","description":"List all influencer profiles for current workspace.","operationId":"api_aff_list_influencers_api_affiliate_influencers_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Aff List Influencers Api Affiliate Influencers Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/affiliate/links":{"post":{"summary":"Api Aff Create Link","description":"Create a unique tracking link for the current influencer.","operationId":"api_aff_create_link_api_affiliate_links_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_AffiliateLinkIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Aff Create Link Api Affiliate Links Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Api Aff List Links","description":"List affiliate links for current workspace (or own links for influencer).","operationId":"api_aff_list_links_api_affiliate_links_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Aff List Links Api Affiliate Links Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/affiliate/links/{link_id}":{"delete":{"summary":"Api Aff Deactivate Link","description":"Deactivate an affiliate link.","operationId":"api_aff_deactivate_link_api_affiliate_links__link_id__delete","parameters":[{"name":"link_id","in":"path","required":true,"schema":{"type":"string","title":"Link Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Aff Deactivate Link Api Affiliate Links  Link Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/r/{token}":{"get":{"summary":"Affiliate Redirect","description":"Public affiliate link redirect. Records click and redirects to destination.","operationId":"affiliate_redirect_r__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"}}}}}}},"/api/affiliate/conversions":{"post":{"summary":"Api Aff Record Conversion","description":"Record a conversion (postback or manual). No auth required for server-to-server.","operationId":"api_aff_record_conversion_api_affiliate_conversions_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_ConversionIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Aff Record Conversion Api Affiliate Conversions Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Api Aff List Conversions","description":"List conversions for current workspace.","operationId":"api_aff_list_conversions_api_affiliate_conversions_get","parameters":[{"name":"link_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Link Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Aff List Conversions Api Affiliate Conversions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/affiliate/conversions/{conv_id}/approve":{"post":{"summary":"Api Aff Approve Conversion","description":"Approve a pending conversion and credit Earn wallet.","operationId":"api_aff_approve_conversion_api_affiliate_conversions__conv_id__approve_post","parameters":[{"name":"conv_id","in":"path","required":true,"schema":{"type":"string","title":"Conv Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Aff Approve Conversion Api Affiliate Conversions  Conv Id  Approve Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/affiliate/campaigns/{brief_id}/apply":{"post":{"summary":"Api Aff Apply","description":"Influencer applies to a brand campaign.","operationId":"api_aff_apply_api_affiliate_campaigns__brief_id__apply_post","parameters":[{"name":"brief_id","in":"path","required":true,"schema":{"type":"string","title":"Brief Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_ApplicationIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Aff Apply Api Affiliate Campaigns  Brief Id  Apply Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/affiliate/applications":{"get":{"summary":"Api Aff List Applications","description":"List campaign applications for current workspace.","operationId":"api_aff_list_applications_api_affiliate_applications_get","parameters":[{"name":"brief_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brief Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Aff List Applications Api Affiliate Applications Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/affiliate/applications/{app_id}/review":{"post":{"summary":"Api Aff Review Application","description":"Approve or reject an influencer application.","operationId":"api_aff_review_application_api_affiliate_applications__app_id__review_post","parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string","title":"App Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_ReviewApplicationIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Aff Review Application Api Affiliate Applications  App Id  Review Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/affiliate/stats":{"get":{"summary":"Api Aff Stats","description":"Affiliate dashboard stats for current workspace.","operationId":"api_aff_stats_api_affiliate_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Aff Stats Api Affiliate Stats Get"}}}}}}},"/api/affiliate/stats/me":{"get":{"summary":"Api Aff Stats Me","description":"Affiliate stats for the current influencer user.","operationId":"api_aff_stats_me_api_affiliate_stats_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Aff Stats Me Api Affiliate Stats Me Get"}}}}}}},"/api/admin/blog/publish":{"post":{"summary":"Api Admin Blog Publish","description":"Master-only: write a new Docusaurus blog post as a markdown file.","operationId":"api_admin_blog_publish_api_admin_blog_publish_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_BlogPostIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/nudges":{"get":{"summary":"Api Nudges","operationId":"api_nudges_api_nudges_get","parameters":[{"name":"lang","in":"query","required":false,"schema":{"type":"string","default":"de","title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Nudges Api Nudges Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/streak":{"get":{"summary":"Api Streak","operationId":"api_streak_api_streak_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Streak Api Streak Get"}}}}}}},"/api/workspace/start-fresh":{"post":{"summary":"Api Workspace Start Fresh","operationId":"api_workspace_start_fresh_api_workspace_start_fresh_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/workspace/permissions":{"get":{"summary":"Api Workspace Permissions","operationId":"api_workspace_permissions_api_workspace_permissions_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/audit/logs":{"get":{"summary":"Api Audit Logs Filtered","operationId":"api_audit_logs_filtered_api_audit_logs_get","parameters":[{"name":"action","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Action"}},{"name":"actor_user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Actor User Id"}},{"name":"from_dt","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Dt"}},{"name":"to_dt","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To Dt"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/audit/export":{"get":{"summary":"Api Audit Export","operationId":"api_audit_export_api_audit_export_get","parameters":[{"name":"fmt","in":"query","required":false,"schema":{"type":"string","default":"csv","title":"Fmt"}},{"name":"action","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Action"}},{"name":"actor_user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Actor User Id"}},{"name":"from_dt","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Dt"}},{"name":"to_dt","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To Dt"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mfa/status":{"get":{"summary":"Api Mfa Status","operationId":"api_mfa_status_api_mfa_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/mfa/enroll":{"post":{"summary":"Api Mfa Enroll","operationId":"api_mfa_enroll_api_mfa_enroll_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/mfa/confirm":{"post":{"summary":"Api Mfa Confirm","operationId":"api_mfa_confirm_api_mfa_confirm_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MfaConfirmIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mfa/verify":{"post":{"summary":"Api Mfa Verify","operationId":"api_mfa_verify_api_mfa_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MfaVerifyIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mfa/revoke":{"delete":{"summary":"Api Mfa Revoke","description":"Remove the current user's MFA enrollment (self-service).","operationId":"api_mfa_revoke_api_mfa_revoke_delete","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/workspace/mfa-policy":{"get":{"summary":"Api Workspace Mfa Policy Get","operationId":"api_workspace_mfa_policy_get_api_workspace_mfa_policy_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Api Workspace Mfa Policy Set","operationId":"api_workspace_mfa_policy_set_api_workspace_mfa_policy_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MfaPolicyIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspace/secrets/rotate-key":{"post":{"summary":"Api Workspace Rotate Key","operationId":"api_workspace_rotate_key_api_workspace_secrets_rotate_key_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/keys/{key_id}/rotate":{"post":{"summary":"Api Key Rotate","operationId":"api_key_rotate_api_keys__key_id__rotate_post","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"integer","title":"Key Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspace/workflow-automations":{"get":{"summary":"Api Workspace Workflow Automations Get","operationId":"api_workspace_workflow_automations_get_api_workspace_workflow_automations_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Api Workspace Workflow Automations Post","operationId":"api_workspace_workflow_automations_post_api_workspace_workflow_automations_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowAutomationsIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cron/workflow-automations":{"post":{"summary":"Cron Workflow Automations","description":"Stale-lead follow-up drafts per workspace workflow presets.","operationId":"cron_workflow_automations_api_cron_workflow_automations_post","parameters":[{"name":"x-cron-secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Cron-Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cron/crm-sync-retry":{"post":{"summary":"Cron Crm Sync Retry","description":"Retry failed CRM auto-sync jobs with exponential backoff.","operationId":"cron_crm_sync_retry_api_cron_crm_sync_retry_post","parameters":[{"name":"x-cron-secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Cron-Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cron/analytics-pg-sync":{"post":{"summary":"Cron Analytics Pg Sync","description":"Refresh ``pragma_analytics.*`` tables in Postgres for Superset (full snapshot).","operationId":"cron_analytics_pg_sync_api_cron_analytics_pg_sync_post","parameters":[{"name":"x-cron-secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Cron-Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cron/ai-cache-purge":{"post":{"summary":"Cron Ai Cache Purge","description":"Delete expired AI cache entries (rows where expires_at <= now).","operationId":"cron_ai_cache_purge_api_cron_ai_cache_purge_post","parameters":[{"name":"x-cron-secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Cron-Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cron/webhook-dispatch":{"post":{"summary":"Cron Webhook Dispatch","description":"Deliver queued platform webhooks with retry/backoff.","operationId":"cron_webhook_dispatch_api_cron_webhook_dispatch_post","parameters":[{"name":"max_deliveries","in":"query","required":false,"schema":{"type":"integer","default":25,"title":"Max Deliveries"}},{"name":"x-cron-secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Cron-Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cron/billing-expire":{"post":{"summary":"Cron Billing Expire","description":"NSP-73: Downgrade workspaces whose PayPal subscription expired > PLAN_GRACE_DAYS ago.\n\nSchedule daily via Railway cron with X-Cron-Secret: $CRON_SECRET.","operationId":"cron_billing_expire_api_cron_billing_expire_post","parameters":[{"name":"x-cron-secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Cron-Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/paypal-subscriptions":{"post":{"summary":"Webhook Paypal Subscriptions","description":"NSP-72: Receive PayPal subscription lifecycle events.\n\nRegister this URL in your PayPal dashboard as a webhook endpoint.\nSet PAYPAL_WEBHOOK_ID env var to the ID assigned by PayPal for signature verification.","operationId":"webhook_paypal_subscriptions_webhooks_paypal_subscriptions_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/billing/status":{"get":{"summary":"Api Billing Status","description":"Return current plan, activation, seats, credits, usage and subscription state.","operationId":"api_billing_status_api_billing_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/cron/demo-cleanup":{"post":{"summary":"Cron Demo Cleanup","description":"Delete expired demo workspaces and demos older than ``DEMO_MAX_AGE_DAYS`` (default 7).\n\nSchedule daily in Railway with ``X-Cron-Secret: $CRON_SECRET``.","operationId":"cron_demo_cleanup_api_cron_demo_cleanup_post","parameters":[{"name":"x-cron-secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Cron-Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cron/report-schedules":{"post":{"summary":"Cron Report Schedules","description":"Deliver due report schedules (daily / weekly / monthly) via notify_channels.\n\nSchedule hourly in Railway with ``X-Cron-Secret: $CRON_SECRET``.","operationId":"cron_report_schedules_api_cron_report_schedules_post","parameters":[{"name":"x-cron-secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Cron-Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cron/status":{"get":{"summary":"Cron Status","description":"Return last-run status for all internal cron jobs. Master-admin only.","operationId":"cron_status_api_cron_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/workspace/crm-sync-rules":{"get":{"summary":"Api Workspace Crm Sync Rules Get","operationId":"api_workspace_crm_sync_rules_get_api_workspace_crm_sync_rules_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Api Workspace Crm Sync Rules Post","operationId":"api_workspace_crm_sync_rules_post_api_workspace_crm_sync_rules_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmSyncRulesIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/leads/{lead_id}/sync/{crm}":{"post":{"summary":"Sync To Crm","operationId":"sync_to_crm_api_leads__lead_id__sync__crm__post","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}},{"name":"crm","in":"path","required":true,"schema":{"enum":["hubspot","pipedrive","salesforce"],"type":"string","title":"Crm"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/followups/generate":{"post":{"summary":"Generate Followup","operationId":"generate_followup_api_followups_generate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FollowupIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/followups":{"get":{"summary":"List Followups","operationId":"list_followups_api_followups_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/followups/{followup_id}":{"delete":{"summary":"Delete Followup","operationId":"delete_followup_api_followups__followup_id__delete","parameters":[{"name":"followup_id","in":"path","required":true,"schema":{"type":"integer","title":"Followup Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/followups/{followup_id}/snooze":{"post":{"summary":"Snooze Followup","operationId":"snooze_followup_api_followups__followup_id__snooze_post","parameters":[{"name":"followup_id","in":"path","required":true,"schema":{"type":"integer","title":"Followup Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SnoozeIn"},{"type":"null"}],"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/wecom/events":{"get":{"summary":"List Wecom Events","operationId":"list_wecom_events_api_wecom_events_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/wecom/events/stream":{"get":{"summary":"Wecom Events Stream","operationId":"wecom_events_stream_api_wecom_events_stream_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/wecom/events/{event_id}":{"get":{"summary":"Wecom Event Detail","operationId":"wecom_event_detail_api_wecom_events__event_id__get","parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"integer","title":"Event Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/wecom/sync/signals":{"get":{"summary":"Wecom Sync Signals","operationId":"wecom_sync_signals_api_wecom_sync_signals_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/wecom/outbound/status":{"get":{"summary":"Api Wecom Outbound Status","operationId":"api_wecom_outbound_status_api_wecom_outbound_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/leads/{lead_id}/wecom/draft":{"post":{"summary":"Api Wecom Create Draft","operationId":"api_wecom_create_draft_api_leads__lead_id__wecom_draft_post","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WeComDraftIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/leads/{lead_id}/wecom/pipeline":{"post":{"summary":"Api Wecom Pipeline","description":"Trigger full ZH→translate→draft pipeline for an inbound message.","operationId":"api_wecom_pipeline_api_leads__lead_id__wecom_pipeline_post","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WeComPipelineIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/leads/{lead_id}/wecom/send":{"post":{"summary":"Api Wecom Send","description":"Approve a WeCom draft and send it. Returns {sent, message_id} or raises.","operationId":"api_wecom_send_api_leads__lead_id__wecom_send_post","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WeComApproveIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/billing/self-serve-status":{"get":{"summary":"Api Self Serve Billing Status","description":"Return trial / billing / deletion state for the current workspace (Sprint 170).","operationId":"api_self_serve_billing_status_api_billing_self_serve_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/billing/cancel":{"post":{"summary":"Api Billing Cancel","description":"Cancel subscription and schedule workspace deletion in 30 days.","operationId":"api_billing_cancel_api_billing_cancel_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingCancelIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/billing/cancel/undo":{"post":{"summary":"Api Billing Cancel Undo","description":"Undo a pending cancellation within the 30-day grace window.","operationId":"api_billing_cancel_undo_api_billing_cancel_undo_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/workspace/self":{"delete":{"summary":"Api Workspace Self Delete","description":"Hard-delete all workspace data immediately (confirmed self-deletion).","operationId":"api_workspace_self_delete_api_workspace_self_delete","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingDeleteNowIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/billing/trial":{"get":{"summary":"Api Billing Trial","description":"Activate trial for current workspace (idempotent).","operationId":"api_billing_trial_api_billing_trial_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/rag/status":{"get":{"summary":"Api Rag Status","description":"RAG index stats + credit quota for the workspace.","operationId":"api_rag_status_api_rag_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/rag/query":{"post":{"summary":"Api Rag Query","description":"Ask a sales question — answered with playbook context + citations.","operationId":"api_rag_query_api_rag_query_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RagCopilotQueryIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/rag/history":{"get":{"summary":"Api Rag History","description":"Return recent RAG queries for the workspace.","operationId":"api_rag_history_api_rag_history_get","parameters":[{"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"}}}}}}},"/api/silence-risk/scores":{"get":{"summary":"Api Silence Risk Scores","description":"Score all leads in the workspace and return ranked results.","operationId":"api_silence_risk_scores_api_silence_risk_scores_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/silence-risk/briefing":{"get":{"summary":"Api Silence Risk Briefing","description":"Daily Briefing 2.0 — top at-risk and healthiest deals.","operationId":"api_silence_risk_briefing_api_silence_risk_briefing_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/silence-risk/scorecard":{"get":{"summary":"Api Silence Risk Scorecard","description":"Pilot scorecard — deals rescued metric.","operationId":"api_silence_risk_scorecard_api_silence_risk_scorecard_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/silence-risk/trigger-sequences":{"post":{"summary":"Api Silence Risk Trigger","description":"Auto-trigger follow-up sequences for leads above silence threshold.","operationId":"api_silence_risk_trigger_api_silence_risk_trigger_sequences_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/leads/{lead_id}/silence-risk":{"get":{"summary":"Api Lead Silence Risk","description":"Compute on-demand silence-risk score for a single lead.","operationId":"api_lead_silence_risk_api_leads__lead_id__silence_risk_get","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-analytics/publisher":{"get":{"summary":"Api Signal Analytics Publisher","description":"Publisher revenue summary — earnings, per-signal breakdown, 30d trend.","operationId":"api_signal_analytics_publisher_api_signal_analytics_publisher_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/signal-analytics/buyer":{"get":{"summary":"Api Signal Analytics Buyer","description":"Buyer spend summary — purchases, wallet, monthly trend.","operationId":"api_signal_analytics_buyer_api_signal_analytics_buyer_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/signal-analytics/top-signals":{"get":{"summary":"Api Signal Analytics Top","description":"Platform-wide top signals by purchase count and revenue.","operationId":"api_signal_analytics_top_api_signal_analytics_top_signals_get","parameters":[{"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"}}}}}}},"/api/signal-analytics/platform":{"get":{"summary":"Api Signal Analytics Platform","description":"Admin-only: total platform fee revenue, publisher breakdown, monthly trend.","operationId":"api_signal_analytics_platform_api_signal_analytics_platform_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/signal-analytics/funnel":{"get":{"summary":"Api Signal Analytics Funnel","description":"Signal conversion funnel — published → bid → purchased.","operationId":"api_signal_analytics_funnel_api_signal_analytics_funnel_get","parameters":[{"name":"scope","in":"query","required":false,"schema":{"type":"string","default":"workspace","title":"Scope"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/marketplace/consultant/signal-bridge":{"get":{"summary":"Api Consultant Signal Bridge","description":"Return live signals matching a consultant intent.","operationId":"api_consultant_signal_bridge_api_marketplace_consultant_signal_bridge_get","parameters":[{"name":"intent_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Intent Id"}},{"name":"locale","in":"query","required":false,"schema":{"type":"string","default":"en","title":"Locale"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/marketplace/consultant/with-signals":{"post":{"summary":"Api Consultant With Signals","description":"Full consultant recommendation enriched with matching live signals.","operationId":"api_consultant_with_signals_api_marketplace_consultant_with_signals_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsultantWithSignalsIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/dashboard/action-queue":{"get":{"summary":"Api Dashboard Action Queue","description":"Unified risk queue: deal alerts enriched with silence-risk scores.\n\nPowers the RISIKEN section — each lead gets a quantitative 0–100 score\nwith color (red/orange/yellow/green) and inactivity_days.","operationId":"api_dashboard_action_queue_api_dashboard_action_queue_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":15,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/dashboard/nba-queue":{"get":{"summary":"Api Dashboard Nba Queue","description":"Nächste Schritte: ranked action list with one clear NBA per lead.\n\nPowers the left-nav \"Nächste Schritte\" panel with silence-risk-aware\nprioritization and pre-written action text per lead.","operationId":"api_dashboard_nba_queue_api_dashboard_nba_queue_get","parameters":[{"name":"lang","in":"query","required":false,"schema":{"type":"string","default":"de","title":"Lang"}},{"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"}}}}}}},"/api/rag/lead-coach":{"post":{"summary":"Api Rag Lead Coach","description":"Context-aware RAG coaching for a single lead.\n\nAuto-builds a coaching question from lead context (company, stage,\nsilence-risk score, inactivity days) and returns a playbook-grounded\nanswer with source citations.\nPowers the per-lead 'Copilot' button on the RISIKEN dashboard section.","operationId":"api_rag_lead_coach_api_rag_lead_coach_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadRagCoachIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspace/sso/config":{"get":{"summary":"Sso Get Config","operationId":"sso_get_config_api_workspace_sso_config_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Sso Set Config","operationId":"sso_set_config_api_workspace_sso_config_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SSOConfigBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/sso/login":{"get":{"summary":"Sso Login","operationId":"sso_login_auth_sso_login_get","parameters":[{"name":"workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Workspace Id"}},{"name":"next","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/sso/callback":{"get":{"summary":"Sso Callback","operationId":"sso_callback_auth_sso_callback_get","parameters":[{"name":"code","in":"query","required":false,"schema":{"type":"string","default":"","title":"Code"}},{"name":"state","in":"query","required":false,"schema":{"type":"string","default":"","title":"State"}},{"name":"error","in":"query","required":false,"schema":{"type":"string","default":"","title":"Error"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspace/sso/saml/metadata":{"get":{"summary":"Saml Sp Metadata","operationId":"saml_sp_metadata_api_workspace_sso_saml_metadata_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/workspace/sso/saml/config":{"post":{"summary":"Saml Set Config","operationId":"saml_set_config_api_workspace_sso_saml_config_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SamlConfigBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/saml/{workspace_id}/callback":{"post":{"summary":"Saml Callback","operationId":"saml_callback_auth_saml__workspace_id__callback_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspace/identity/providers":{"get":{"summary":"Identity List Providers","operationId":"identity_list_providers_api_workspace_identity_providers_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Identity Add Provider","operationId":"identity_add_provider_api_workspace_identity_providers_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdentityProviderBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspace/identity/providers/{idp_id}":{"delete":{"summary":"Identity Remove Provider","operationId":"identity_remove_provider_api_workspace_identity_providers__idp_id__delete","parameters":[{"name":"idp_id","in":"path","required":true,"schema":{"type":"integer","title":"Idp Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/scim/v2/ServiceProviderConfig":{"get":{"summary":"Scim Service Provider Config","operationId":"scim_service_provider_config_scim_v2_ServiceProviderConfig_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/scim/v2/Users":{"get":{"summary":"Scim List Users","operationId":"scim_list_users_scim_v2_Users_get","parameters":[{"name":"filter","in":"query","required":false,"schema":{"type":"string","default":"","title":"Filter"}},{"name":"startIndex","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Startindex"}},{"name":"count","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Count"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Scim Create User","operationId":"scim_create_user_scim_v2_Users_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/scim/v2/Users/{user_id}":{"get":{"summary":"Scim Get User","operationId":"scim_get_user_scim_v2_Users__user_id__get","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Scim Update User","operationId":"scim_update_user_scim_v2_Users__user_id__put","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"summary":"Scim Patch User","operationId":"scim_patch_user_scim_v2_Users__user_id__patch","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Scim Delete User","operationId":"scim_delete_user_scim_v2_Users__user_id__delete","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspace/identity/status":{"get":{"summary":"Identity Status","operationId":"identity_status_api_workspace_identity_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/workspace/scim/token":{"post":{"summary":"Scim Generate Token","operationId":"scim_generate_token_api_workspace_scim_token_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScimTokenBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspace/scim/token/{token_id}":{"delete":{"summary":"Scim Revoke Token","operationId":"scim_revoke_token_api_workspace_scim_token__token_id__delete","parameters":[{"name":"token_id","in":"path","required":true,"schema":{"type":"integer","title":"Token Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sessions":{"get":{"summary":"List My Sessions","operationId":"list_my_sessions_api_sessions_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/sessions/{session_id}":{"delete":{"summary":"Revoke Session","operationId":"revoke_session_api_sessions__session_id__delete","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"}}}}}}},"/api/sessions/revoke-all":{"post":{"summary":"Revoke All Sessions","operationId":"revoke_all_sessions_api_sessions_revoke_all_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/workspace/session-policy":{"get":{"summary":"Get Session Policy","operationId":"get_session_policy_api_workspace_session_policy_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Set Session Policy","operationId":"set_session_policy_api_workspace_session_policy_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionPolicyBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/gdpr/consents":{"get":{"summary":"Gdpr Get Consents","operationId":"gdpr_get_consents_api_gdpr_consents_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/gdpr/consent":{"post":{"summary":"Gdpr Record Consent","operationId":"gdpr_record_consent_api_gdpr_consent_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/gdpr/export":{"post":{"summary":"Gdpr Export","operationId":"gdpr_export_api_gdpr_export_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/gdpr/delete":{"post":{"summary":"Gdpr Request Deletion","operationId":"gdpr_request_deletion_api_gdpr_delete_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/workspace/gdpr/deletions":{"get":{"summary":"Gdpr List Deletions","operationId":"gdpr_list_deletions_api_workspace_gdpr_deletions_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/workspace/gdpr/deletions/{request_id}/process":{"post":{"summary":"Gdpr Process Deletion","operationId":"gdpr_process_deletion_api_workspace_gdpr_deletions__request_id__process_post","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"integer","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/contacts/{contact_id}/consent":{"get":{"summary":"Gdpr Get Contact Consent","operationId":"gdpr_get_contact_consent_api_contacts__contact_id__consent_get","parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"integer","title":"Contact Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Gdpr Record Contact Consent","operationId":"gdpr_record_contact_consent_api_contacts__contact_id__consent_post","parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"integer","title":"Contact Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactConsentBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Gdpr Revoke Contact Consent","operationId":"gdpr_revoke_contact_consent_api_contacts__contact_id__consent_delete","parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"integer","title":"Contact Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/contacts/{contact_id}/legal-basis":{"get":{"summary":"Gdpr Get Contact Legal Basis","operationId":"gdpr_get_contact_legal_basis_api_contacts__contact_id__legal_basis_get","parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"integer","title":"Contact Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Gdpr Set Contact Legal Basis","operationId":"gdpr_set_contact_legal_basis_api_contacts__contact_id__legal_basis_put","parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"integer","title":"Contact Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactLegalBasisBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/compliance/processing-activities":{"get":{"summary":"Gdpr Get Processing Activities","operationId":"gdpr_get_processing_activities_api_compliance_processing_activities_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/workspace/gdpr/readiness":{"get":{"summary":"Gdpr Get Readiness","operationId":"gdpr_get_readiness_api_workspace_gdpr_readiness_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/contacts/{contact_id}/gdpr/anonymize":{"post":{"summary":"Gdpr Anonymize Contact","operationId":"gdpr_anonymize_contact_api_contacts__contact_id__gdpr_anonymize_post","parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"integer","title":"Contact Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/contacts/{contact_id}/gdpr/export":{"get":{"summary":"Gdpr Export Contact Data","operationId":"gdpr_export_contact_data_api_contacts__contact_id__gdpr_export_get","parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"integer","title":"Contact Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/contacts/{contact_id}/gdpr/rectification":{"post":{"summary":"Gdpr Request Rectification","operationId":"gdpr_request_rectification_api_contacts__contact_id__gdpr_rectification_post","parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"integer","title":"Contact Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RectificationRequestIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspace/gdpr/rectifications":{"get":{"summary":"Gdpr List Rectifications","operationId":"gdpr_list_rectifications_api_workspace_gdpr_rectifications_get","parameters":[{"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"}}}}}}},"/api/workspace/gdpr/rectifications/{request_id}/process":{"post":{"summary":"Gdpr Process Rectification","operationId":"gdpr_process_rectification_api_workspace_gdpr_rectifications__request_id__process_post","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"integer","title":"Request Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RectificationProcessIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/contacts/{contact_id}/gdpr/restrict":{"post":{"summary":"Gdpr Restrict Contact","operationId":"gdpr_restrict_contact_api_contacts__contact_id__gdpr_restrict_post","parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"integer","title":"Contact Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessingRestrictionIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Gdpr Lift Restriction","operationId":"gdpr_lift_restriction_api_contacts__contact_id__gdpr_restrict_delete","parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"integer","title":"Contact Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Gdpr Restriction Status","operationId":"gdpr_restriction_status_api_contacts__contact_id__gdpr_restrict_get","parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"integer","title":"Contact Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/contacts/{contact_id}/gdpr/objection":{"post":{"summary":"Gdpr Record Objection","operationId":"gdpr_record_objection_api_contacts__contact_id__gdpr_objection_post","parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"integer","title":"Contact Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObjectionIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspace/gdpr/objections":{"get":{"summary":"Gdpr List Objections","operationId":"gdpr_list_objections_api_workspace_gdpr_objections_get","parameters":[{"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"}}}}}}},"/api/workspace/gdpr/objections/{objection_id}/resolve":{"post":{"summary":"Gdpr Resolve Objection","operationId":"gdpr_resolve_objection_api_workspace_gdpr_objections__objection_id__resolve_post","parameters":[{"name":"objection_id","in":"path","required":true,"schema":{"type":"integer","title":"Objection Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObjectionResolveIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspace/gdpr/breaches":{"get":{"summary":"Gdpr List Breaches","operationId":"gdpr_list_breaches_api_workspace_gdpr_breaches_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Gdpr Report Breach","operationId":"gdpr_report_breach_api_workspace_gdpr_breaches_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BreachReportIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspace/gdpr/breaches/{breach_id}/notify-authority":{"post":{"summary":"Gdpr Breach Notify Authority","operationId":"gdpr_breach_notify_authority_api_workspace_gdpr_breaches__breach_id__notify_authority_post","parameters":[{"name":"breach_id","in":"path","required":true,"schema":{"type":"integer","title":"Breach Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspace/gdpr/breaches/{breach_id}/notify-subjects":{"post":{"summary":"Gdpr Breach Notify Subjects","operationId":"gdpr_breach_notify_subjects_api_workspace_gdpr_breaches__breach_id__notify_subjects_post","parameters":[{"name":"breach_id","in":"path","required":true,"schema":{"type":"integer","title":"Breach Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspace/gdpr/retention-status":{"get":{"summary":"Gdpr Retention Status","operationId":"gdpr_retention_status_api_workspace_gdpr_retention_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/workspace/gdpr/retention-purge":{"post":{"summary":"Gdpr Run Retention Purge","operationId":"gdpr_run_retention_purge_api_workspace_gdpr_retention_purge_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetentionPurgeIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/security/summary":{"get":{"summary":"Security Summary","operationId":"security_summary_api_security_summary_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/workspace/byok/status":{"get":{"summary":"Byok Status","operationId":"byok_status_api_workspace_byok_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/workspace/byok/upload-key":{"post":{"summary":"Byok Upload Key","operationId":"byok_upload_key_api_workspace_byok_upload_key_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/workspace/byok/revoke":{"post":{"summary":"Byok Revoke","operationId":"byok_revoke_api_workspace_byok_revoke_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/workspace/region":{"get":{"summary":"Get Region","operationId":"get_region_api_workspace_region_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Set Region","operationId":"set_region_api_workspace_region_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/workspace/pii-policy":{"get":{"summary":"Get Pii Policy","operationId":"get_pii_policy_api_workspace_pii_policy_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Set Pii Policy","operationId":"set_pii_policy_api_workspace_pii_policy_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/workspace/dlp/rules":{"get":{"summary":"List Dlp Rules","operationId":"list_dlp_rules_api_workspace_dlp_rules_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Create Dlp Rule","operationId":"create_dlp_rule_api_workspace_dlp_rules_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/workspace/dlp/rules/{rule_id}":{"put":{"summary":"Update Dlp Rule","operationId":"update_dlp_rule_api_workspace_dlp_rules__rule_id__put","parameters":[{"name":"rule_id","in":"path","required":true,"schema":{"type":"integer","title":"Rule Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Dlp Rule","operationId":"delete_dlp_rule_api_workspace_dlp_rules__rule_id__delete","parameters":[{"name":"rule_id","in":"path","required":true,"schema":{"type":"integer","title":"Rule Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspace/audit/export":{"get":{"summary":"Audit Export","operationId":"audit_export_api_workspace_audit_export_get","parameters":[{"name":"format","in":"query","required":false,"schema":{"type":"string","default":"json","title":"Format"}},{"name":"start","in":"query","required":false,"schema":{"type":"string","default":"","title":"Start"}},{"name":"end","in":"query","required":false,"schema":{"type":"string","default":"","title":"End"}},{"name":"actor_user_id","in":"query","required":false,"schema":{"type":"string","default":"","title":"Actor User Id"}},{"name":"action","in":"query","required":false,"schema":{"type":"string","default":"","title":"Action"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspace/audit/actions":{"get":{"summary":"Audit Actions","operationId":"audit_actions_api_workspace_audit_actions_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/workspace/ip-allowlist":{"get":{"summary":"List Ip Allowlist","operationId":"list_ip_allowlist_api_workspace_ip_allowlist_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Add Ip Allowlist","operationId":"add_ip_allowlist_api_workspace_ip_allowlist_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/workspace/ip-allowlist/{entry_id}":{"delete":{"summary":"Remove Ip Allowlist","operationId":"remove_ip_allowlist_api_workspace_ip_allowlist__entry_id__delete","parameters":[{"name":"entry_id","in":"path","required":true,"schema":{"type":"integer","title":"Entry Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspace/api-keys":{"get":{"summary":"List Api Keys","operationId":"list_api_keys_api_workspace_api_keys_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Create Api Key","operationId":"create_api_key_api_workspace_api_keys_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/workspace/api-keys/{key_id}":{"delete":{"summary":"Revoke Api Key","operationId":"revoke_api_key_api_workspace_api_keys__key_id__delete","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"integer","title":"Key Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspace/compliance/status":{"get":{"summary":"Compliance Status","operationId":"compliance_status_api_workspace_compliance_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/workspace/compliance/evidence-pack":{"post":{"summary":"Compliance Evidence Pack","operationId":"compliance_evidence_pack_api_workspace_compliance_evidence_pack_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/webhooks":{"get":{"summary":"List Webhooks","operationId":"list_webhooks_api_webhooks_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Create Webhook","operationId":"create_webhook_api_webhooks_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/webhooks/{webhook_id}":{"put":{"summary":"Update Webhook","operationId":"update_webhook_api_webhooks__webhook_id__put","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"integer","title":"Webhook Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Webhook","operationId":"delete_webhook_api_webhooks__webhook_id__delete","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"integer","title":"Webhook Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks/{webhook_id}/deliveries":{"get":{"summary":"Webhook Deliveries","operationId":"webhook_deliveries_api_webhooks__webhook_id__deliveries_get","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"integer","title":"Webhook Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks/deliveries/{delivery_id}/retry":{"post":{"summary":"Retry Webhook Delivery","operationId":"retry_webhook_delivery_api_webhooks_deliveries__delivery_id__retry_post","parameters":[{"name":"delivery_id","in":"path","required":true,"schema":{"type":"integer","title":"Delivery Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks/deliveries":{"get":{"summary":"All Webhook Deliveries","operationId":"all_webhook_deliveries_api_webhooks_deliveries_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks/events":{"get":{"summary":"Webhook Event Catalog","operationId":"webhook_event_catalog_api_webhooks_events_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/webhooks/{webhook_id}/test":{"post":{"summary":"Send Test Webhook","operationId":"send_test_webhook_api_webhooks__webhook_id__test_post","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"integer","title":"Webhook Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspace/api-usage":{"get":{"summary":"Api Usage Stats","operationId":"api_usage_stats_api_workspace_api_usage_get","parameters":[{"name":"key_id","in":"query","required":false,"schema":{"type":"string","default":"","title":"Key Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/security/ai-scan":{"post":{"summary":"Ai Security Scan","operationId":"ai_security_scan_api_security_ai_scan_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/security/ai-logs":{"get":{"summary":"Ai Security Logs","operationId":"ai_security_logs_api_security_ai_logs_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/security/channel-policies":{"get":{"summary":"List Channel Policies","operationId":"list_channel_policies_api_security_channel_policies_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Upsert Channel Policy","operationId":"upsert_channel_policy_api_security_channel_policies_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelPolicyIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/security/channel-check":{"post":{"summary":"Channel Outbound Check","operationId":"channel_outbound_check_api_security_channel_check_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelCheckIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/security/anomaly-alerts":{"get":{"summary":"Anomaly Alerts","operationId":"anomaly_alerts_api_security_anomaly_alerts_get","parameters":[{"name":"resolved","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Resolved"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/security/anomaly-alerts/{alert_id}/resolve":{"post":{"summary":"Resolve Anomaly Alert","operationId":"resolve_anomaly_alert_api_security_anomaly_alerts__alert_id__resolve_post","parameters":[{"name":"alert_id","in":"path","required":true,"schema":{"type":"integer","title":"Alert Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/security/anomaly-events":{"post":{"summary":"Record Anomaly Event","description":"Internal endpoint for recording security events (owner/admin only).","operationId":"record_anomaly_event_api_security_anomaly_events_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/changelog":{"get":{"summary":"Get Changelog","operationId":"get_changelog_api_changelog_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/docs/snippets":{"get":{"summary":"Get Snippets","operationId":"get_snippets_api_docs_snippets_get","parameters":[{"name":"tag","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tag"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks/{webhook_id}/simulate":{"post":{"summary":"Simulate Webhook","operationId":"simulate_webhook_api_webhooks__webhook_id__simulate_post","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"integer","title":"Webhook Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookSimulateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks/deliveries/{delivery_id}/inspect":{"get":{"summary":"Inspect Webhook Delivery","operationId":"inspect_webhook_delivery_api_webhooks_deliveries__delivery_id__inspect_get","parameters":[{"name":"delivery_id","in":"path","required":true,"schema":{"type":"integer","title":"Delivery Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks/simulations":{"get":{"summary":"List Webhook Simulations","operationId":"list_webhook_simulations_api_webhooks_simulations_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"}}}}}}},"/api/leads/{lead_id}/timeline":{"get":{"summary":"Api Lead Timeline Enriched","operationId":"api_lead_timeline_enriched_api_leads__lead_id__timeline_get","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/leads/{lead_id}/notes":{"post":{"summary":"Api Lead Add Note","operationId":"api_lead_add_note_api_leads__lead_id__notes_post","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadNoteIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/leads/{lead_id}/ai/summary":{"post":{"summary":"Api Lead Ai Summary","operationId":"api_lead_ai_summary_api_leads__lead_id__ai_summary_post","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/leads/{lead_id}/deal/next-action":{"post":{"summary":"Api Lead Deal Set Next Action","operationId":"api_lead_deal_set_next_action_api_leads__lead_id__deal_next_action_post","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealNextActionIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/leads/{lead_id}/scheduling-hint":{"get":{"summary":"Api Lead Scheduling Hint","operationId":"api_lead_scheduling_hint_api_leads__lead_id__scheduling_hint_get","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/rbac/field-permissions":{"get":{"summary":"Api Rbac Get Field Permissions","operationId":"api_rbac_get_field_permissions_api_rbac_field_permissions_get","parameters":[{"name":"role","in":"query","required":false,"schema":{"type":"string","default":"member","title":"Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Api Rbac Set Field Permission","operationId":"api_rbac_set_field_permission_api_rbac_field_permissions_put","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FieldPermissionBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/rbac/channel-permissions":{"get":{"summary":"Api Rbac Get Channel Permissions","operationId":"api_rbac_get_channel_permissions_api_rbac_channel_permissions_get","parameters":[{"name":"role","in":"query","required":false,"schema":{"type":"string","default":"member","title":"Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Api Rbac Set Channel Permission","operationId":"api_rbac_set_channel_permission_api_rbac_channel_permissions_put","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelPermissionBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/rbac/workflow-permissions":{"get":{"summary":"Api Rbac Get Workflow Permissions","operationId":"api_rbac_get_workflow_permissions_api_rbac_workflow_permissions_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"put":{"summary":"Api Rbac Set Workflow Permissions","operationId":"api_rbac_set_workflow_permissions_api_rbac_workflow_permissions_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowPermissionBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/rbac/object-permissions":{"get":{"summary":"Api Rbac Get Object Permissions","operationId":"api_rbac_get_object_permissions_api_rbac_object_permissions_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"put":{"summary":"Api Rbac Set Object Permissions","operationId":"api_rbac_set_object_permissions_api_rbac_object_permissions_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObjectPermissionBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/rbac/permission-matrix":{"get":{"summary":"Api Rbac Permission Matrix","operationId":"api_rbac_permission_matrix_api_rbac_permission_matrix_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/leads/{lead_id}/private":{"post":{"summary":"Api Lead Set Private","operationId":"api_lead_set_private_api_leads__lead_id__private_post","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrivateDealBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/leads/{lead_id}/stakeholders":{"get":{"summary":"Api Stakeholders List","operationId":"api_stakeholders_list_api_leads__lead_id__stakeholders_get","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Api Stakeholders Add","operationId":"api_stakeholders_add_api_leads__lead_id__stakeholders_post","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StakeholderBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/leads/{lead_id}/stakeholders/{stakeholder_id}":{"delete":{"summary":"Api Stakeholders Delete","operationId":"api_stakeholders_delete_api_leads__lead_id__stakeholders__stakeholder_id__delete","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}},{"name":"stakeholder_id","in":"path","required":true,"schema":{"type":"integer","title":"Stakeholder Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/leads/{lead_id}/suggest-nba":{"post":{"summary":"Api Suggest Nba","operationId":"api_suggest_nba_api_leads__lead_id__suggest_nba_post","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/deals/{deal_id}/suggest-next-action":{"post":{"summary":"Api Deal Suggest Next Action","description":"Sprint 91C: AI-powered next action suggestion for a CRM deal.","operationId":"api_deal_suggest_next_action_api_deals__deal_id__suggest_next_action_post","parameters":[{"name":"deal_id","in":"path","required":true,"schema":{"type":"integer","title":"Deal Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/pipeline/next-actions":{"get":{"summary":"Api Pipeline Next Actions","description":"Sprint 91C: Batch AI next-action suggestions for the most critical open deals.","operationId":"api_pipeline_next_actions_api_pipeline_next_actions_get","parameters":[{"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"}}}}}}},"/api/leads/{lead_id}/enrich-company":{"post":{"summary":"Api Lead Enrich Company","operationId":"api_lead_enrich_company_api_leads__lead_id__enrich_company_post","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_id}/intelligence":{"get":{"summary":"Api Company Intelligence","operationId":"api_company_intelligence_api_companies__company_id__intelligence_get","parameters":[{"name":"company_id","in":"path","required":true,"schema":{"type":"integer","title":"Company Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/pipeline/health-summary":{"get":{"summary":"Api Pipeline Health Summary","description":"NSP-128: Aggregate health counts for pipeline focus filter stat cards.","operationId":"api_pipeline_health_summary_api_pipeline_health_summary_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/deals/risk-scores":{"get":{"summary":"Api Deal Risk Scores","description":"S04: Open deals ranked by numeric risk score (0–100) for RevOps stalled-deals view.\n\nS17: risk score and reasons now also include closing_overdue (close date\npassed while still open) and date_slipped (close date pushed later than\nits original baseline) signals.","operationId":"api_deal_risk_scores_api_deals_risk_scores_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"}}}}}}},"/api/buyer-intelligence/scan":{"post":{"summary":"Api Buyer Intel Scan","description":"S07: Trigger a proactive buyer intelligence scan for the workspace.","operationId":"api_buyer_intel_scan_api_buyer_intelligence_scan_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Buyer Intel Scan Api Buyer Intelligence Scan Post"}}}}}}},"/api/buyer-intelligence/alerts":{"get":{"summary":"Api Buyer Intel Alerts","description":"S07: Return active (non-dismissed) buyer intelligence alerts.","operationId":"api_buyer_intel_alerts_api_buyer_intelligence_alerts_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":10,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Buyer Intel Alerts Api Buyer Intelligence Alerts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/buyer-intelligence/alerts/{alert_id}/dismiss":{"post":{"summary":"Api Buyer Intel Dismiss","description":"S07: Dismiss a single buyer intelligence alert.","operationId":"api_buyer_intel_dismiss_api_buyer_intelligence_alerts__alert_id__dismiss_post","parameters":[{"name":"alert_id","in":"path","required":true,"schema":{"type":"integer","title":"Alert Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Buyer Intel Dismiss Api Buyer Intelligence Alerts  Alert Id  Dismiss Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/pipeline/deal-alerts":{"get":{"summary":"Api Pipeline Deal Alerts","description":"Sprint 92: At-risk deals with health + next-best-action for dashboard and Help AI.","operationId":"api_pipeline_deal_alerts_api_pipeline_deal_alerts_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":12,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signals":{"get":{"summary":"Api Signals List","description":"List signals for the active workspace, with optional status/source/signal_type filter.","operationId":"api_signals_list_api_signals_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}},{"name":"signal_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Signal Type"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signals/distinct-sources":{"get":{"summary":"Api Signals Distinct Sources","description":"Return distinct sources present in the workspace's signal inbox.","operationId":"api_signals_distinct_sources_api_signals_distinct_sources_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/signals/counts":{"get":{"summary":"Api Signals Counts","description":"Return per-status counts for the badge in the nav.","operationId":"api_signals_counts_api_signals_counts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/signals/{signal_id}/status":{"patch":{"summary":"Api Signal Set Status","description":"Update a signal's status (new → reviewing → promoted / ignored / suppressed).","operationId":"api_signal_set_status_api_signals__signal_id__status_patch","parameters":[{"name":"signal_id","in":"path","required":true,"schema":{"type":"integer","title":"Signal Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_SignalStatusIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signals/{signal_id}/promote":{"post":{"summary":"Api Signal Promote","description":"Promote a signal to a Lead (GDPR check included).","operationId":"api_signal_promote_api_signals__signal_id__promote_post","parameters":[{"name":"signal_id","in":"path","required":true,"schema":{"type":"integer","title":"Signal Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/leads/{lead_id}/signal-origin":{"get":{"summary":"Api Lead Signal Origin","description":"Return the original crm_signal_inbox row that was promoted to this lead.\n\nUsed by the lead drawer Signal Origin panel. Returns 404 if the lead\ndid not originate from a signal or has no linked inbox row.","operationId":"api_lead_signal_origin_api_leads__lead_id__signal_origin_get","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-sources":{"get":{"summary":"Api Signal Sources List","operationId":"api_signal_sources_list_api_signal_sources_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Api Signal Source Upsert","operationId":"api_signal_source_upsert_api_signal_sources_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_SignalSourceIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-sources/{source_key}/rotate-secret":{"post":{"summary":"Api Signal Source Rotate","operationId":"api_signal_source_rotate_api_signal_sources__source_key__rotate_secret_post","parameters":[{"name":"source_key","in":"path","required":true,"schema":{"type":"string","title":"Source Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signals/intake":{"post":{"summary":"Api Signals Intake","description":"Public webhook intake endpoint for external signal providers.\n\nAuth:\n  - Header ``X-Pragma-Workspace-Id``: workspace numeric ID\n  - Header ``X-Pragma-Source``: source_key registered in crm_signal_sources\n  - Header ``X-Pragma-Signature``: sha256=<hmac-hex>  (optional if source has no secret)\n  - Header ``X-Pragma-Idempotency-Key``: optional dedup key\n\nBody: JSON object with provider-specific fields.","operationId":"api_signals_intake_api_signals_intake_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/signals/import-csv":{"post":{"summary":"Api Signals Import Csv","description":"Upload a CSV file (multipart/form-data, field name 'file') to bulk-import signals.","operationId":"api_signals_import_csv_api_signals_import_csv_post","parameters":[{"name":"source_key","in":"query","required":false,"schema":{"type":"string","default":"csv_import","title":"Source Key"}},{"name":"source_label","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Label"}},{"name":"signal_type","in":"query","required":false,"schema":{"type":"string","default":"custom","title":"Signal Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signals/suppressions":{"get":{"summary":"Api Signals Suppressions List","operationId":"api_signals_suppressions_list_api_signals_suppressions_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Api Signals Suppressions Add","operationId":"api_signals_suppressions_add_api_signals_suppressions_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_SuppressionIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signals/suppressions/{suppression_id}":{"delete":{"summary":"Api Signals Suppressions Remove","operationId":"api_signals_suppressions_remove_api_signals_suppressions__suppression_id__delete","parameters":[{"name":"suppression_id","in":"path","required":true,"schema":{"type":"integer","title":"Suppression Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signals/{signal_id}/score":{"post":{"summary":"Api Signal Score","description":"Compute and persist fit_score + dedup status for one inbox signal.","operationId":"api_signal_score_api_signals__signal_id__score_post","parameters":[{"name":"signal_id","in":"path","required":true,"schema":{"type":"integer","title":"Signal Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signals/top-today":{"get":{"summary":"Api Signals Top Today","description":"Top-scored new signals for the daily review list (auto-scores unscored signals).","operationId":"api_signals_top_today_api_signals_top_today_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"}}}}}}},"/api/signals/account-clusters":{"get":{"summary":"Api Signals Account Clusters","description":"Sprint 373: accounts with 2+ open signals bundled into one composite\n'account moment' score — see signals_lib.compute_account_clusters.","operationId":"api_signals_account_clusters_api_signals_account_clusters_get","parameters":[{"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"}}}}}}},"/api/signals/kpis":{"get":{"summary":"Api Signals Kpis","description":"Return signal inbox KPI stats for the current workspace.","operationId":"api_signals_kpis_api_signals_kpis_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/signals/performance":{"get":{"summary":"Api Signals Performance","description":"Sprint 249 — Per-source signal funnel + trend data.","operationId":"api_signals_performance_api_signals_performance_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signals/score-batch":{"post":{"summary":"Api Signals Score Batch","description":"Score all unscored inbox signals for the workspace.","operationId":"api_signals_score_batch_api_signals_score_batch_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/signals/auto-promote":{"post":{"summary":"Api Signals Auto Promote","description":"Run auto-lead-creation for scored signals that meet the workspace threshold.\n\nReads `signals_auto_promote_threshold` from workspace settings (0.0 = disabled).\nScores any unscored signals first, then promotes qualifying unique ones.\nFor each new lead, attempts to generate an AI followup draft (silent on failure).\nReturns {promoted: [...], scored: N, drafted: N}.","operationId":"api_signals_auto_promote_api_signals_auto_promote_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/signals/outreach-queue":{"get":{"summary":"Api Signals Outreach Queue","description":"Return signal-originated leads with a pending AI draft and no sent outbound message yet.","operationId":"api_signals_outreach_queue_api_signals_outreach_queue_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/signals/outreach-queue/{lead_id}/send":{"post":{"summary":"Api Signals Outreach Queue Send","description":"Send the AI draft for a signal lead and mark it as sent in lead_messages.","operationId":"api_signals_outreach_queue_send_api_signals_outreach_queue__lead_id__send_post","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutreachQueueSendIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signals/outreach-queue/{lead_id}/skip":{"post":{"summary":"Api Signals Outreach Queue Skip","description":"Remove a lead from the outreach queue by clearing its AI draft.","operationId":"api_signals_outreach_queue_skip_api_signals_outreach_queue__lead_id__skip_post","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-exchange/providers":{"get":{"summary":"Api Signal Exchange Providers","description":"Provider catalog: all available signal source types with pricing and metadata.","operationId":"api_signal_exchange_providers_api_signal_exchange_providers_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/signal-exchange/revenue-automations":{"get":{"summary":"Api Signal Exchange Revenue Automations","description":"Revenue automation catalog assets (Modell 5).","operationId":"api_signal_exchange_revenue_automations_api_signal_exchange_revenue_automations_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/signal-exchange/revenue-automations/subscription":{"get":{"summary":"Api Revenue Automation Subscription Status","description":"Sprint 178: Return active revenue automation tier for workspace.","operationId":"api_revenue_automation_subscription_status_api_signal_exchange_revenue_automations_subscription_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"delete":{"summary":"Api Revenue Automation Cancel","description":"Sprint 178: Cancel active revenue automation subscription.","operationId":"api_revenue_automation_cancel_api_signal_exchange_revenue_automations_subscription_delete","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/signal-exchange/revenue-automations/subscribe":{"post":{"summary":"Api Revenue Automation Subscribe","description":"Sprint 178: Start Stripe checkout or directly activate a revenue automation tier.","operationId":"api_revenue_automation_subscribe_api_signal_exchange_revenue_automations_subscribe_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_RevenueAutoSubscribeIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-exchange/revenue-automations/subscribe/fulfill":{"post":{"summary":"Api Revenue Automation Fulfill","description":"Sprint 178: Fulfill revenue automation subscription after Stripe checkout.","operationId":"api_revenue_automation_fulfill_api_signal_exchange_revenue_automations_subscribe_fulfill_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_RevenueAutoFulfillIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-exchange/for-you":{"get":{"summary":"Api Signal Exchange For You","description":"Personalized signal feed ranked by AI fit score (buyer's CRM profile + purchase history).","operationId":"api_signal_exchange_for_you_api_signal_exchange_for_you_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"signal_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Signal Type"}},{"name":"asset_class","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Asset Class"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-exchange/asset-classes":{"get":{"summary":"Api Signal Exchange Asset Classes","description":"Available asset classes with labels and signal counts.","operationId":"api_signal_exchange_asset_classes_api_signal_exchange_asset_classes_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/signal-exchange/nowpay/currencies":{"get":{"summary":"Api Nowpay Currencies","description":"Available NOWPayments currencies (NEXO, USDT, ETH, BTC…).","operationId":"api_nowpay_currencies_api_signal_exchange_nowpay_currencies_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/signal-exchange/nowpay/create":{"post":{"summary":"Api Nowpay Create","description":"Create a NOWPayments invoice for a signal purchase.","operationId":"api_nowpay_create_api_signal_exchange_nowpay_create_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_NowPayCreateIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-exchange/nowpay/status/{payment_id}":{"get":{"summary":"Api Nowpay Status","description":"Poll NOWPayments status for a payment_id.","operationId":"api_nowpay_status_api_signal_exchange_nowpay_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"}}}}}}},"/api/webhooks/nowpayments":{"post":{"summary":"Api Nowpay Webhook","description":"NOWPayments IPN webhook — verifies HMAC signature, completes purchase.","operationId":"api_nowpay_webhook_api_webhooks_nowpayments_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/nowpayments/settings":{"get":{"summary":"Api Nowpay Admin Settings Get","description":"Admin: get NOWPayments config status (key masked).","operationId":"api_nowpay_admin_settings_get_api_admin_nowpayments_settings_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Api Nowpay Admin Settings","description":"Admin: save NOWPayments API key + IPN secret.","operationId":"api_nowpay_admin_settings_api_admin_nowpayments_settings_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_NowPaySettingsIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/alerting/test":{"post":{"summary":"Api Alerting Test","description":"Admin: send a test alert email to verify SMTP config.","operationId":"api_alerting_test_api_admin_alerting_test_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/pipeline/coach/{lead_id}":{"get":{"summary":"Api Pipeline Coach","operationId":"api_pipeline_coach_api_pipeline_coach__lead_id__get","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/pipeline/insights":{"get":{"summary":"Api Pipeline Insights","operationId":"api_pipeline_insights_api_pipeline_insights_get","parameters":[{"name":"lang","in":"query","required":false,"schema":{"type":"string","default":"de","title":"Lang"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":5,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/leads/{lead_id}/close-probability":{"get":{"summary":"Api Lead Close Probability","operationId":"api_lead_close_probability_api_leads__lead_id__close_probability_get","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/leads/{lead_id}/velocity":{"get":{"summary":"Api Lead Velocity","operationId":"api_lead_velocity_api_leads__lead_id__velocity_get","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/forecast/enriched":{"get":{"summary":"Api Forecast Enriched","operationId":"api_forecast_enriched_api_forecast_enriched_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/reward-offers":{"get":{"summary":"Api Admin Reward Offers List","operationId":"api_admin_reward_offers_list_api_admin_reward_offers_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Api Admin Reward Offers Create","operationId":"api_admin_reward_offers_create_api_admin_reward_offers_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/reward-offers/{offer_id}":{"put":{"summary":"Api Admin Reward Offers Update","operationId":"api_admin_reward_offers_update_api_admin_reward_offers__offer_id__put","parameters":[{"name":"offer_id","in":"path","required":true,"schema":{"type":"integer","title":"Offer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/reward-settings":{"post":{"summary":"Api Admin Reward Settings","operationId":"api_admin_reward_settings_api_admin_reward_settings_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/custom-offers":{"get":{"summary":"Api Admin Custom Offers List","description":"200b — List all admin-created custom offers (offer_type='custom').","operationId":"api_admin_custom_offers_list_api_admin_custom_offers_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Api Admin Custom Offers Create","description":"200b — Create a new custom offer. Fields: title_de/en/zh, credits, url, expires_at, tags, icon.","operationId":"api_admin_custom_offers_create_api_admin_custom_offers_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/custom-offers/{offer_id}":{"patch":{"summary":"Api Admin Custom Offers Update","description":"200b — Partial update of a custom offer.","operationId":"api_admin_custom_offers_update_api_admin_custom_offers__offer_id__patch","parameters":[{"name":"offer_id","in":"path","required":true,"schema":{"type":"integer","title":"Offer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Api Admin Custom Offers Delete","description":"200b — Hard-delete a custom offer (only custom offers, never affiliate offers).","operationId":"api_admin_custom_offers_delete_api_admin_custom_offers__offer_id__delete","parameters":[{"name":"offer_id","in":"path","required":true,"schema":{"type":"integer","title":"Offer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/earn/custom-offers":{"get":{"summary":"Api Earn Custom Offers","description":"200b — Return active, non-expired custom offers for all earn users.","operationId":"api_earn_custom_offers_api_earn_custom_offers_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/rewards/offers/{offer_id}/track":{"post":{"summary":"Api Rewards Track Event","description":"Track view/click event for an affiliate offer (funnel analytics).","operationId":"api_rewards_track_event_api_rewards_offers__offer_id__track_post","parameters":[{"name":"offer_id","in":"path","required":true,"schema":{"type":"integer","title":"Offer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/affiliate/dashboard":{"get":{"summary":"Api Admin Affiliate Dashboard","description":"Sprint 186: Affiliate revenue dashboard — funnel, attribution, summary.","operationId":"api_admin_affiliate_dashboard_api_admin_affiliate_dashboard_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/rewards/earn":{"get":{"summary":"Api Rewards Earn","description":"Earn & Rewards section: signal-matched offers + credit balance.","operationId":"api_rewards_earn_api_rewards_earn_get","parameters":[{"name":"lang","in":"query","required":false,"schema":{"type":"string","default":"de","title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/rewards/referral-code":{"get":{"summary":"Api Rewards Referral Code","description":"CRM-authenticated user's personal earn-page referral code.","operationId":"api_rewards_referral_code_api_rewards_referral_code_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/rewards/balance":{"get":{"summary":"Api Rewards Balance","operationId":"api_rewards_balance_api_rewards_balance_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/rewards/offers":{"get":{"summary":"Api Rewards Offers","operationId":"api_rewards_offers_api_rewards_offers_get","parameters":[{"name":"lang","in":"query","required":false,"schema":{"type":"string","default":"de","title":"Lang"}},{"name":"network","in":"query","required":false,"schema":{"type":"string","default":"","title":"Network"}},{"name":"signals","in":"query","required":false,"schema":{"type":"string","default":"","title":"Signals"}},{"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"}}}}}}},"/api/rewards/redeem":{"post":{"summary":"Api Rewards Redeem","operationId":"api_rewards_redeem_api_rewards_redeem_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/rewards/offers/{offer_id}/click":{"post":{"summary":"Api Rewards Offer Click","description":"Sprint 198 — award engagement credits on first offer click (idempotent).","operationId":"api_rewards_offer_click_api_rewards_offers__offer_id__click_post","parameters":[{"name":"offer_id","in":"path","required":true,"schema":{"type":"integer","title":"Offer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/rewards/grant":{"post":{"summary":"Api Admin Rewards Grant","description":"Sprint 198 — admin-only: manually award or revoke credits.","operationId":"api_admin_rewards_grant_api_admin_rewards_grant_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminCreditGrantIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/rewards/offers/{offer_id}/complete":{"post":{"summary":"Api Rewards Offer Complete","description":"Sprint 199 — user submits completion claim for an offer.","operationId":"api_rewards_offer_complete_api_rewards_offers__offer_id__complete_post","parameters":[{"name":"offer_id","in":"path","required":true,"schema":{"type":"integer","title":"Offer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/rewards/completions":{"get":{"summary":"Api Rewards Completions Me","description":"Sprint 199 — list own completion claims.","operationId":"api_rewards_completions_me_api_rewards_completions_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","default":"","title":"Status"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/rewards/completions":{"get":{"summary":"Api Admin Completions List","description":"Sprint 199 — admin: list completion claims by status.","operationId":"api_admin_completions_list_api_admin_rewards_completions_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","default":"pending","title":"Status"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/rewards/completions/{completion_id}/approve":{"post":{"summary":"Api Admin Completion Approve","description":"Sprint 199 — admin: approve completion and award credits.","operationId":"api_admin_completion_approve_api_admin_rewards_completions__completion_id__approve_post","parameters":[{"name":"completion_id","in":"path","required":true,"schema":{"type":"integer","title":"Completion Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/rewards/completions/{completion_id}/reject":{"post":{"summary":"Api Admin Completion Reject","description":"Sprint 199 — admin: reject completion without awarding credits.","operationId":"api_admin_completion_reject_api_admin_rewards_completions__completion_id__reject_post","parameters":[{"name":"completion_id","in":"path","required":true,"schema":{"type":"integer","title":"Completion Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OfferRejectIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/rewards/postback":{"get":{"summary":"Api Rewards Postback","description":"Freecash S2S postback — no auth, validated by token query param.","operationId":"api_rewards_postback_api_rewards_postback_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/signal-exchange/alerts":{"get":{"summary":"Api List Alerts","operationId":"api_list_alerts_api_signal_exchange_alerts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Api Add Alert","operationId":"api_add_alert_api_signal_exchange_alerts_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_AlertCreateIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-exchange/alerts/{alert_id}":{"delete":{"summary":"Api Delete Alert","operationId":"api_delete_alert_api_signal_exchange_alerts__alert_id__delete","parameters":[{"name":"alert_id","in":"path","required":true,"schema":{"type":"integer","title":"Alert Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-exchange/alerts/notifications":{"get":{"summary":"Api Alert Notifications","operationId":"api_alert_notifications_api_signal_exchange_alerts_notifications_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/signal-exchange/alerts/notifications/mark-read":{"post":{"summary":"Api Alert Mark Read","operationId":"api_alert_mark_read_api_signal_exchange_alerts_notifications_mark_read_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/integrations/apollo/status":{"get":{"summary":"Api Apollo Status","description":"Apollo integration status: configured, signal counts per type, recent sync log.","operationId":"api_apollo_status_api_integrations_apollo_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/integrations/apollo/sync":{"post":{"summary":"Api Apollo Sync","description":"Trigger an Apollo signal sync for one signal type.","operationId":"api_apollo_sync_api_integrations_apollo_sync_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_ApolloSyncIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/integrations/ninjapear/status":{"get":{"summary":"Api Ninjapear Status","description":"NinjaPear integration status.","operationId":"api_ninjapear_status_api_integrations_ninjapear_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/integrations/ninjapear/sync":{"post":{"summary":"Api Ninjapear Sync","description":"Trigger a NinjaPear competitor-customer signal sync.","operationId":"api_ninjapear_sync_api_integrations_ninjapear_sync_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_NinjaPearSyncIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/integrations/hunter/status":{"get":{"summary":"Api Hunter Status","description":"Hunter.io integration status.","operationId":"api_hunter_status_api_integrations_hunter_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/integrations/hunter/sync":{"post":{"summary":"Api Hunter Sync","description":"Trigger a Hunter.io signal sync for one signal type.","operationId":"api_hunter_sync_api_integrations_hunter_sync_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_HunterSyncIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/integrations/proxycurl/status":{"get":{"summary":"Api Proxycurl Status","description":"Proxycurl integration status: configured, signal counts per type, recent sync log.","operationId":"api_proxycurl_status_api_integrations_proxycurl_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/integrations/proxycurl/sync":{"post":{"summary":"Api Proxycurl Sync","description":"Trigger a Proxycurl signal sync for one signal type.","operationId":"api_proxycurl_sync_api_integrations_proxycurl_sync_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_ProxycurlSyncIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/integrations/linkedin-leads/status":{"get":{"summary":"Api Linkedin Leads Status","operationId":"api_linkedin_leads_status_api_integrations_linkedin_leads_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/integrations/linkedin-leads/oauth/start":{"get":{"summary":"Api Linkedin Leads Oauth Start","operationId":"api_linkedin_leads_oauth_start_api_integrations_linkedin_leads_oauth_start_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/integrations/linkedin-leads/oauth/callback":{"get":{"summary":"Api Linkedin Leads Oauth Callback","operationId":"api_linkedin_leads_oauth_callback_api_integrations_linkedin_leads_oauth_callback_get","parameters":[{"name":"code","in":"query","required":false,"schema":{"type":"string","default":"","title":"Code"}},{"name":"state","in":"query","required":false,"schema":{"type":"string","default":"","title":"State"}},{"name":"error","in":"query","required":false,"schema":{"type":"string","default":"","title":"Error"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/integrations/linkedin-leads/disconnect":{"post":{"summary":"Api Linkedin Leads Disconnect","operationId":"api_linkedin_leads_disconnect_api_integrations_linkedin_leads_disconnect_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/integrations/linkedin-leads/sync":{"post":{"summary":"Api Linkedin Leads Sync","operationId":"api_linkedin_leads_sync_api_integrations_linkedin_leads_sync_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/linkedin/watch-list":{"get":{"summary":"Api Linkedin Watchlist Get","description":"Sprint 341: list companies on LinkedIn watch list.","operationId":"api_linkedin_watchlist_get_api_linkedin_watch_list_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Api Linkedin Watchlist Add","description":"Sprint 341: add company to LinkedIn watch list.","operationId":"api_linkedin_watchlist_add_api_linkedin_watch_list_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_api_linkedin_watchlist_add_api_linkedin_watch_list_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/linkedin/watch-list/{company_id}":{"delete":{"summary":"Api Linkedin Watchlist Remove","description":"Sprint 341: remove company from watch list.","operationId":"api_linkedin_watchlist_remove_api_linkedin_watch_list__company_id__delete","parameters":[{"name":"company_id","in":"path","required":true,"schema":{"type":"integer","title":"Company Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/linkedin/signal":{"post":{"summary":"Api Linkedin Signal Submit","description":"Sprint 341: manually submit a LinkedIn signal to Signal Inbox.","operationId":"api_linkedin_signal_submit_api_linkedin_signal_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_api_linkedin_signal_submit_api_linkedin_signal_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-exchange/signals/{signal_id}":{"get":{"summary":"Api Signal Exchange Get One","description":"Full detail for a single listed signal (content-gated by purchase status).","operationId":"api_signal_exchange_get_one_api_signal_exchange_signals__signal_id__get","parameters":[{"name":"signal_id","in":"path","required":true,"schema":{"type":"string","title":"Signal Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-exchange/my-purchases":{"get":{"summary":"Api Signal Exchange My Purchases","description":"All signals the current workspace has purchased (full content).","operationId":"api_signal_exchange_my_purchases_api_signal_exchange_my_purchases_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/signal-exchange/watchlist":{"get":{"summary":"Api Watchlist List","operationId":"api_watchlist_list_api_signal_exchange_watchlist_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/signal-exchange/watchlist/{signal_id}":{"post":{"summary":"Api Watchlist Add","operationId":"api_watchlist_add_api_signal_exchange_watchlist__signal_id__post","parameters":[{"name":"signal_id","in":"path","required":true,"schema":{"type":"string","title":"Signal Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Api Watchlist Remove","operationId":"api_watchlist_remove_api_signal_exchange_watchlist__signal_id__delete","parameters":[{"name":"signal_id","in":"path","required":true,"schema":{"type":"string","title":"Signal Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-exchange/watchlist/ids":{"get":{"summary":"Api Watchlist Ids","operationId":"api_watchlist_ids_api_signal_exchange_watchlist_ids_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/signal-exchange/notifications":{"get":{"summary":"Api Signal Exchange Notifications","operationId":"api_signal_exchange_notifications_api_signal_exchange_notifications_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/signal-exchange/notifications/mark-read":{"post":{"summary":"Api Signal Exchange Notifications Read","operationId":"api_signal_exchange_notifications_read_api_signal_exchange_notifications_mark_read_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/signal-exchange/purchases/{purchase_id}/rate":{"post":{"summary":"Api Signal Exchange Rate Purchase","description":"Rate a completed purchase 1-5 stars.","operationId":"api_signal_exchange_rate_purchase_api_signal_exchange_purchases__purchase_id__rate_post","parameters":[{"name":"purchase_id","in":"path","required":true,"schema":{"type":"string","title":"Purchase Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_PurchaseRateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-exchange/my-listings":{"get":{"summary":"Api Signal Exchange My Listings","description":"Signals published by the current workspace (sell side).","operationId":"api_signal_exchange_my_listings_api_signal_exchange_my_listings_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-exchange/my-listings/stats":{"get":{"summary":"Api Signal Exchange My Stats","description":"My signals with per-signal purchase count + earned revenue.","operationId":"api_signal_exchange_my_stats_api_signal_exchange_my_listings_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/signal-exchange/publish":{"post":{"summary":"Api Signal Exchange Publish V2","description":"Publish a new pay-per-signal listing.","operationId":"api_signal_exchange_publish_v2_api_signal_exchange_publish_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_SignalPublishIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-exchange/buy/{signal_id}":{"post":{"summary":"Api Signal Exchange Buy","description":"Purchase a listed signal — deducts from buyer wallet, completes purchase,\nand fires async blockchain provenance + optional NFT mint.","operationId":"api_signal_exchange_buy_api_signal_exchange_buy__signal_id__post","parameters":[{"name":"signal_id","in":"path","required":true,"schema":{"type":"string","title":"Signal Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-exchange/signals/{signal_id}/bid":{"post":{"summary":"Api Signal Exchange Bid","description":"Place a bid on an auction-type signal listing.","operationId":"api_signal_exchange_bid_api_signal_exchange_signals__signal_id__bid_post","parameters":[{"name":"signal_id","in":"path","required":true,"schema":{"type":"string","title":"Signal Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_SignalBidIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-wallet/balance":{"get":{"summary":"Api Signal Wallet Balance","description":"Buyer wallet balance + publisher earnings for the active workspace.","operationId":"api_signal_wallet_balance_api_signal_wallet_balance_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/signal-wallet/transactions":{"get":{"summary":"Api Signal Wallet Transactions","description":"Transaction history for the active workspace.","operationId":"api_signal_wallet_transactions_api_signal_wallet_transactions_get","parameters":[{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-wallet/checkout":{"post":{"summary":"Api Signal Wallet Checkout","description":"Create a Stripe Checkout session for buying signal credits.","operationId":"api_signal_wallet_checkout_api_signal_wallet_checkout_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_CreditPackIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-wallet/fulfill":{"post":{"summary":"Api Signal Wallet Fulfill","description":"Fulfill a completed Stripe Checkout session (called from success redirect).","operationId":"api_signal_wallet_fulfill_api_signal_wallet_fulfill_post","parameters":[{"name":"session_id","in":"query","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"}}}}}}},"/api/signal-wallet/stripe-webhook":{"post":{"summary":"Api Signal Wallet Stripe Webhook","description":"Stripe webhook for checkout.session.completed — credits fulfilled server-side.","operationId":"api_signal_wallet_stripe_webhook_api_signal_wallet_stripe_webhook_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/blockchain/connect-wallet":{"post":{"summary":"Api Blockchain Connect Wallet","description":"Link a Polygon wallet address to the current workspace.","operationId":"api_blockchain_connect_wallet_api_blockchain_connect_wallet_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_WalletConnectIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/blockchain/wallet":{"get":{"summary":"Api Blockchain Get Wallet","description":"Get the linked wallet address + MATIC price and blockchain config status.","operationId":"api_blockchain_get_wallet_api_blockchain_wallet_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/blockchain/status":{"get":{"summary":"Api Blockchain Status","description":"Public-within-workspace blockchain trust and network status.","operationId":"api_blockchain_status_api_blockchain_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/blockchain/collection-metadata":{"get":{"summary":"Api Blockchain Collection Metadata","description":"OpenSea contractURI — public collection-level metadata for Pragma Signal NFTs.\n\nServe this URL as the return value of contractURI() in PragmaSignalNFT.\nOpenSea reads it to populate the collection page (name, description, image,\nroyalties, external_link).","operationId":"api_blockchain_collection_metadata_api_blockchain_collection_metadata_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/blockchain/nft/{signal_id}":{"get":{"summary":"Api Blockchain Nft Metadata","description":"OpenSea-compatible NFT metadata JSON (public, no auth).","operationId":"api_blockchain_nft_metadata_api_blockchain_nft__signal_id__get","parameters":[{"name":"signal_id","in":"path","required":true,"schema":{"type":"string","title":"Signal Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/blockchain/badge-metadata/{badge_type}":{"get":{"summary":"Api Blockchain Badge Metadata","description":"OpenSea-compatible metadata JSON for PragmaAchievementBadge tokenURI()\n— public, no auth (fixed content per badge type, not per-instance).","operationId":"api_blockchain_badge_metadata_api_blockchain_badge_metadata__badge_type__get","parameters":[{"name":"badge_type","in":"path","required":true,"schema":{"type":"string","title":"Badge Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/blockchain/verify/{signal_id}":{"get":{"summary":"Api Blockchain Verify Signal","description":"BC-4 — Public provenance verification for a Signal Exchange item.","operationId":"api_blockchain_verify_signal_api_blockchain_verify__signal_id__get","parameters":[{"name":"signal_id","in":"path","required":true,"schema":{"type":"string","title":"Signal Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/blockchain/nft-owner/{signal_id}":{"get":{"summary":"Api Blockchain Nft Owner","description":"BC-4 — Public NFT owner lookup for a Signal Exchange item.","operationId":"api_blockchain_nft_owner_api_blockchain_nft_owner__signal_id__get","parameters":[{"name":"signal_id","in":"path","required":true,"schema":{"type":"string","title":"Signal Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/blockchain/nft/{signal_id}/owner":{"get":{"summary":"Api Blockchain Nft Owner Alias","description":"BC-4 — Public NFT owner lookup alias next to metadata endpoint.","operationId":"api_blockchain_nft_owner_alias_api_blockchain_nft__signal_id__owner_get","parameters":[{"name":"signal_id","in":"path","required":true,"schema":{"type":"string","title":"Signal Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/blockchain/verify":{"get":{"summary":"Blockchain Verify Page","description":"BC-4 — Public verify page for provenance hashes and NFT ownership.","operationId":"blockchain_verify_page_blockchain_verify_get","parameters":[{"name":"signal_id","in":"query","required":false,"schema":{"type":"string","default":"","title":"Signal Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/blockchain/signal/{signal_id}":{"get":{"summary":"Api Blockchain Signal State","description":"Combined on-chain state for a signal: provenance, NFT, auction, listing.","operationId":"api_blockchain_signal_state_api_blockchain_signal__signal_id__get","parameters":[{"name":"signal_id","in":"path","required":true,"schema":{"type":"string","title":"Signal Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/blockchain/signal/{signal_id}/create-auction":{"post":{"summary":"Api Blockchain Create Auction","description":"Create an on-chain auction for a signal on Polygon.","operationId":"api_blockchain_create_auction_api_blockchain_signal__signal_id__create_auction_post","parameters":[{"name":"signal_id","in":"path","required":true,"schema":{"type":"string","title":"Signal Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_BlockchainAuctionIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/blockchain/signal/{signal_id}/list-market":{"post":{"summary":"Api Blockchain List Market","description":"List a signal on the on-chain fixed-price market (MATIC).","operationId":"api_blockchain_list_market_api_blockchain_signal__signal_id__list_market_post","parameters":[{"name":"signal_id","in":"path","required":true,"schema":{"type":"string","title":"Signal Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/blockchain/signal/{signal_id}/finalize-auction":{"post":{"summary":"Api Blockchain Finalize Auction","description":"Platform finalizes an ended on-chain auction.","operationId":"api_blockchain_finalize_auction_api_blockchain_signal__signal_id__finalize_auction_post","parameters":[{"name":"signal_id","in":"path","required":true,"schema":{"type":"string","title":"Signal Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/blockchain/auctions":{"get":{"summary":"Api Blockchain List Auctions","description":"List all on-chain auctions: auto-auction registry + manual crm_signals auctions.","operationId":"api_blockchain_list_auctions_api_blockchain_auctions_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/blockchain/register-auction":{"post":{"summary":"Api Admin Blockchain Register Auction","description":"Backfill an existing on-chain auction into blockchain_auctions registry. Master only.","operationId":"api_admin_blockchain_register_auction_api_admin_blockchain_register_auction_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_RegisterAuctionIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/blockchain/auctions/{signal_id}/finalize":{"post":{"summary":"Api Blockchain Finalize Auction V2","description":"Platform finalizes an ended auction (mints NFT to winner). Master only.","operationId":"api_blockchain_finalize_auction_v2_api_blockchain_auctions__signal_id__finalize_post","parameters":[{"name":"signal_id","in":"path","required":true,"schema":{"type":"string","title":"Signal Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/blockchain/auctions/{signal_id}/cancel":{"post":{"summary":"Api Blockchain Cancel Auction","description":"Platform cancels an active auction. Master only.","operationId":"api_blockchain_cancel_auction_api_blockchain_auctions__signal_id__cancel_post","parameters":[{"name":"signal_id","in":"path","required":true,"schema":{"type":"string","title":"Signal Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/blockchain/auctions":{"get":{"summary":"Blockchain Auctions Page","description":"Blockchain Auction Dashboard — live view of all on-chain signal auctions.","operationId":"blockchain_auctions_page_blockchain_auctions_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/api/blockchain/bid":{"post":{"summary":"Api Blockchain Record Bid","description":"Verify a BidPlaced event, then mirror it in the local DB.","operationId":"api_blockchain_record_bid_api_blockchain_bid_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_BlockchainBidIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/blockchain/relay/nonce/{address}":{"get":{"summary":"Api Blockchain Relay Nonce","description":"Current ERC-2771 forwarder nonce for `address` — the frontend needs\nthis before it can build and sign a gasless bid request.","operationId":"api_blockchain_relay_nonce_api_blockchain_relay_nonce__address__get","parameters":[{"name":"address","in":"path","required":true,"schema":{"type":"string","title":"Address"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/blockchain/relay/bid-with-token":{"post":{"summary":"Api Blockchain Relay Bid With Token","description":"Gasless ERC-20 bid: the caller signed an EIP-712 ForwardRequest with\ntheir own wallet (no gas spent) — the platform relays it on-chain via the\ntrusted forwarder, paying gas, while the real bidder's wallet still\nsupplies the token amount and is correctly attributed on-chain (V4 auction\ncontract's ERC2771Context support). See app/blockchain_lib.py for details.","operationId":"api_blockchain_relay_bid_with_token_api_blockchain_relay_bid_with_token_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_BlockchainRelayBidIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/blockchain/relay/buy-with-token":{"post":{"summary":"Api Blockchain Relay Buy With Token","description":"Gasless ERC-20 buy on the fixed-price market — mirrors\n/api/blockchain/relay/bid-with-token for the direct-buy (V4 market) path.","operationId":"api_blockchain_relay_buy_with_token_api_blockchain_relay_buy_with_token_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_BlockchainRelayBuyIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/blockchain/signal/{signal_id}/bids":{"get":{"summary":"Api Blockchain Get Bids","description":"Get recorded on-chain bids for a signal (from local mirror + contract state).","operationId":"api_blockchain_get_bids_api_blockchain_signal__signal_id__bids_get","parameters":[{"name":"signal_id","in":"path","required":true,"schema":{"type":"string","title":"Signal Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/blockchain/price":{"get":{"summary":"Api Blockchain Price","description":"BC-3 — Live POL/USD price and stable USDC info for dual-price display.","operationId":"api_blockchain_price_api_blockchain_price_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/blockchain/usdc-balance":{"get":{"summary":"Api Blockchain Usdc Balance","description":"BC-3 — Check USDC balance for a wallet address (cents).\n\nRequires authenticated workspace or master. Returns balance in cents.","operationId":"api_blockchain_usdc_balance_api_blockchain_usdc_balance_get","parameters":[{"name":"address","in":"query","required":false,"schema":{"type":"string","default":"","title":"Address"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/blockchain/token-balances":{"get":{"summary":"Api Blockchain Token Balances","description":"Return POL + all ERC20 token balances and USD values for a wallet address.","operationId":"api_blockchain_token_balances_api_blockchain_token_balances_get","parameters":[{"name":"address","in":"query","required":false,"schema":{"type":"string","default":"","title":"Address"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/blockchain/supported-tokens":{"get":{"summary":"Api Blockchain Supported Tokens","description":"Return list of all supported tokens with addresses and payment status.","operationId":"api_blockchain_supported_tokens_api_blockchain_supported_tokens_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/blockchain/1inch/quote":{"get":{"summary":"Api 1Inch Quote","description":"1inch proxy: get swap quote for src→dst (amount = src-token wei).","operationId":"api_1inch_quote_api_blockchain_1inch_quote_get","parameters":[{"name":"src","in":"query","required":true,"schema":{"type":"string","title":"Src"}},{"name":"dst","in":"query","required":true,"schema":{"type":"string","title":"Dst"}},{"name":"amount","in":"query","required":true,"schema":{"type":"string","title":"Amount"}},{"name":"chain_id","in":"query","required":false,"schema":{"type":"integer","default":137,"title":"Chain Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/blockchain/1inch/swap-data":{"get":{"summary":"Api 1Inch Swap Data","description":"1inch proxy: get swap calldata for executing src→dst exchange.","operationId":"api_1inch_swap_data_api_blockchain_1inch_swap_data_get","parameters":[{"name":"src","in":"query","required":true,"schema":{"type":"string","title":"Src"}},{"name":"dst","in":"query","required":true,"schema":{"type":"string","title":"Dst"}},{"name":"amount","in":"query","required":true,"schema":{"type":"string","title":"Amount"}},{"name":"from_address","in":"query","required":true,"schema":{"type":"string","title":"From Address"}},{"name":"slippage","in":"query","required":false,"schema":{"type":"number","default":1.0,"title":"Slippage"}},{"name":"chain_id","in":"query","required":false,"schema":{"type":"integer","default":137,"title":"Chain Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/blockchain/v3/add-token":{"post":{"summary":"Api V3 Add Token","description":"V3 admin: whitelist a payment token on both V3 contracts.","operationId":"api_v3_add_token_api_admin_blockchain_v3_add_token_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_V3TokenIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/blockchain/v3/remove-token":{"post":{"summary":"Api V3 Remove Token","description":"V3 admin: remove a token from both V3 contract whitelists.","operationId":"api_v3_remove_token_api_admin_blockchain_v3_remove_token_post","parameters":[{"name":"token_address","in":"query","required":true,"schema":{"type":"string","title":"Token Address"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/blockchain/v3/whitelisted-tokens":{"get":{"summary":"Api V3 Whitelisted Tokens","description":"V3: list tokens currently whitelisted on-chain.","operationId":"api_v3_whitelisted_tokens_api_blockchain_v3_whitelisted_tokens_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/blockchain/v3/create-auction-with-token":{"post":{"summary":"Api V3 Create Auction Token","description":"V3: Create an on-chain auction priced in any whitelisted ERC-20 token.","operationId":"api_v3_create_auction_token_api_blockchain_v3_create_auction_with_token_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_V3CreateAuctionTokenIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/blockchain/v3/list-with-token":{"post":{"summary":"Api V3 List Token","description":"V3: List a signal on the market priced in any whitelisted ERC-20 token.","operationId":"api_v3_list_token_api_blockchain_v3_list_with_token_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_V3ListTokenIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/blockchain/set-platform-fee":{"post":{"summary":"Api Admin Set Platform Fee","description":"Admin: set platform commission on both V3 contracts (0–5000 bps = 0–50%).","operationId":"api_admin_set_platform_fee_api_admin_blockchain_set_platform_fee_post","parameters":[{"name":"fee_bps","in":"query","required":true,"schema":{"type":"integer","maximum":5000,"minimum":0,"title":"Fee Bps"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agent/auto-auction":{"post":{"summary":"Api Agent Auto Auction","description":"n8n: automatically list a high-score signal as a USDC blockchain auction.\nAuth: X-Api-Key header. Idempotent — duplicate signal_id is silently skipped.","operationId":"api_agent_auto_auction_api_agent_auto_auction_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_AgentAutoAuctionIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/blockchain/marketplace-register":{"post":{"summary":"Api Admin Marketplace Register","description":"Trigger NFT indexing on OpenSea, SimpleHash and Alchemy by pinging their crawlers.","operationId":"api_admin_marketplace_register_api_admin_blockchain_marketplace_register_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/blockchain/dual-price":{"get":{"summary":"Api Blockchain Dual Price","description":"BC-3 — Return POL equivalent for a given USDC price (dual-price display).","operationId":"api_blockchain_dual_price_api_blockchain_dual_price_get","parameters":[{"name":"price_usdc_cents","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Price Usdc Cents"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/blockchain/tokens":{"get":{"summary":"Api Blockchain Tokens","description":"Return all supported payment tokens with live USD prices + platform wallet balances.","operationId":"api_blockchain_tokens_api_blockchain_tokens_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/blockchain/revenue":{"get":{"summary":"Api Admin Blockchain Revenue","description":"BC-3 — Revenue split by payment token (POL vs USDC) with EUR equivalent. is_master only.","operationId":"api_admin_blockchain_revenue_api_admin_blockchain_revenue_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/leads/{lead_id}/offers":{"get":{"summary":"Api Offers List","operationId":"api_offers_list_api_leads__lead_id__offers_get","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Api Offers Create","operationId":"api_offers_create_api_leads__lead_id__offers_post","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_OfferCreateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/offers/{offer_id}":{"put":{"summary":"Api Offers Update","operationId":"api_offers_update_api_offers__offer_id__put","parameters":[{"name":"offer_id","in":"path","required":true,"schema":{"type":"integer","title":"Offer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_OfferUpdateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Api Offers Delete","operationId":"api_offers_delete_api_offers__offer_id__delete","parameters":[{"name":"offer_id","in":"path","required":true,"schema":{"type":"integer","title":"Offer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/offers/{offer_id}/send":{"post":{"summary":"Api Offers Send","operationId":"api_offers_send_api_offers__offer_id__send_post","parameters":[{"name":"offer_id","in":"path","required":true,"schema":{"type":"integer","title":"Offer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/offers/{offer_id}/revise":{"post":{"summary":"Api Offers Revise","operationId":"api_offers_revise_api_offers__offer_id__revise_post","parameters":[{"name":"offer_id","in":"path","required":true,"schema":{"type":"integer","title":"Offer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_OfferReviseIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/deals/{deal_id}/offers":{"get":{"summary":"Api Deal Offers List","operationId":"api_deal_offers_list_api_deals__deal_id__offers_get","parameters":[{"name":"deal_id","in":"path","required":true,"schema":{"type":"integer","title":"Deal Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Api Deal Offers Create","operationId":"api_deal_offers_create_api_deals__deal_id__offers_post","parameters":[{"name":"deal_id","in":"path","required":true,"schema":{"type":"integer","title":"Deal Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_OfferCreateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/offers/{offer_id}/viewed":{"post":{"summary":"Api Offers Viewed","operationId":"api_offers_viewed_api_offers__offer_id__viewed_post","parameters":[{"name":"offer_id","in":"path","required":true,"schema":{"type":"integer","title":"Offer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/offers/{offer_id}/accept":{"post":{"summary":"Api Offers Accept","operationId":"api_offers_accept_api_offers__offer_id__accept_post","parameters":[{"name":"offer_id","in":"path","required":true,"schema":{"type":"integer","title":"Offer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/offers/{offer_id}/decline":{"post":{"summary":"Api Offers Decline","operationId":"api_offers_decline_api_offers__offer_id__decline_post","parameters":[{"name":"offer_id","in":"path","required":true,"schema":{"type":"integer","title":"Offer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/reporting/quote-pipeline":{"get":{"summary":"Api Reporting Quote Pipeline","description":"S08 — Quote pipeline KPIs: counts + value by status, conversion rate, avg time-to-accept.","operationId":"api_reporting_quote_pipeline_api_reporting_quote_pipeline_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/revops/goals":{"get":{"summary":"Api Goals List","operationId":"api_goals_list_api_revops_goals_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Api Goals Upsert","operationId":"api_goals_upsert_api_revops_goals_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_GoalUpsertIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/revops/goals/attainment":{"get":{"summary":"Api Goals Attainment","operationId":"api_goals_attainment_api_revops_goals_attainment_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/revops/rep-leaderboard":{"get":{"summary":"Api Revops Rep Leaderboard","description":"Return per-rep KPIs (outcome + response-time) for the current month or quarter.\n\nperiod: \"month\" | \"quarter\"","operationId":"api_revops_rep_leaderboard_api_revops_rep_leaderboard_get","parameters":[{"name":"period","in":"query","required":false,"schema":{"type":"string","default":"month","title":"Period"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Revops Rep Leaderboard Api Revops Rep Leaderboard Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/revops/coaching-tip":{"get":{"summary":"Api Revops Coaching Tip","description":"Personalized coaching tip for the current user: their own outcome/\nresponse-time stats vs. the #1-ranked rep this period, plus a short\nAI-generated tip. Always scoped to the requesting user — never exposes\nanother rep's personalized narrative.","operationId":"api_revops_coaching_tip_api_revops_coaching_tip_get","parameters":[{"name":"period","in":"query","required":false,"schema":{"type":"string","default":"month","title":"Period"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Revops Coaching Tip Api Revops Coaching Tip Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/revops/pipeline-waterfall":{"get":{"summary":"Api Revops Pipeline Waterfall","description":"Return period-over-period pipeline movement as a waterfall breakdown.\n\nopening_pipeline = current open + won_this_period + lost_this_period\n(reconstructs what the pipeline looked like at period start)\n\nperiod: \"month\" | \"quarter\"","operationId":"api_revops_pipeline_waterfall_api_revops_pipeline_waterfall_get","parameters":[{"name":"period","in":"query","required":false,"schema":{"type":"string","default":"month","title":"Period"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Revops Pipeline Waterfall Api Revops Pipeline Waterfall Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/revops/coverage":{"get":{"summary":"Api Revops Coverage","description":"Return pipeline coverage ratios vs. monthly and quarterly revenue goals.\n\nCoverage = open pipeline value / revenue target.\nIndustry benchmark: 3–4× is healthy, < 2× signals a pipeline gap.","operationId":"api_revops_coverage_api_revops_coverage_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Revops Coverage Api Revops Coverage Get"}}}}}}},"/api/revops/quotas":{"get":{"summary":"Api Revops Quotas","description":"Per-rep quota vs. won-deal revenue for the current month or quarter.","operationId":"api_revops_quotas_api_revops_quotas_get","parameters":[{"name":"period","in":"query","required":false,"schema":{"type":"string","default":"month","title":"Period"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Revops Quotas Api Revops Quotas Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Api Revops Quotas Set","description":"Set (or update) an individual rep's quota. Admin/Owner only.","operationId":"api_revops_quotas_set_api_revops_quotas_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_RepQuotaIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Revops Quotas Set Api Revops Quotas Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/revops/forecast":{"get":{"summary":"Api Revops Forecast","description":"Weighted open pipeline by stage, plus closing/won-this-month totals.","operationId":"api_revops_forecast_api_revops_forecast_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Revops Forecast Api Revops Forecast Get"}}}}}}},"/api/revops/win-loss":{"get":{"summary":"Api Revops Win Loss","description":"Win rate and top close reasons over a trailing window (default 90 days).","operationId":"api_revops_win_loss_api_revops_win_loss_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":90,"title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Revops Win Loss Api Revops Win Loss Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/revops/velocity":{"get":{"summary":"Api Revops Velocity","description":"Average close time, overdue open deals, and days-in-stage per open stage.\n\navg_days_in_stage is a proxy (time since last update), since deal stage\nhistory isn't tracked — same approximation forecast_lib.deal_velocity uses.","operationId":"api_revops_velocity_api_revops_velocity_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Revops Velocity Api Revops Velocity Get"}}}}}}},"/api/revops/funnel":{"get":{"summary":"Api Revops Funnel","description":"Leads → Qualified → Opportunities → Won revenue funnel for the KPI dashboard.\n\nSteps 1-2 come from the leads table, steps 3-4 from deals — these are two\nseparate entities (a lead isn't 1:1 tracked into a deal record today), so\nthe conversion percentages are a directional approximation, not a strict\nper-record cohort funnel.","operationId":"api_revops_funnel_api_revops_funnel_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Revops Funnel Api Revops Funnel Get"}}}}}}},"/api/revops/revenue-trend":{"get":{"summary":"Api Revops Revenue Trend","description":"Won-deal revenue by month vs. the current monthly revenue target.\n\nrevenue_goals only stores one current target per goal_type (no historical\nper-month target log), so target_eur is the same value repeated across\nevery month here — a flat reference line, not a historically accurate one.","operationId":"api_revops_revenue_trend_api_revops_revenue_trend_get","parameters":[{"name":"months","in":"query","required":false,"schema":{"type":"integer","default":6,"title":"Months"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Revops Revenue Trend Api Revops Revenue Trend Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/revops/churn-risk":{"get":{"summary":"Api Revops Churn Risk","description":"Per-customer churn risk (won deals only) + an NDR-style health proxy.\n\nPragma tracks one-time deal value, not metered subscriptions, so there is\nno true Net Dollar Retention here — deals have no \"churned\" status to\ndistinguish from \"won\" once closed. This computes a directional proxy\ninstead:\n  baseline   = won-deal value from customers first won before the last\n               90 days (i.e. already customers going into this period)\n  expansion  = additional won-deal value those same customers closed\n               within the last 90 days\n  at_risk    = baseline value belonging to customers currently flagged\n               high churn-risk (silence-based proxy for \"may be lost\")\n  ndr_pct    = (baseline - at_risk + expansion) / baseline * 100\nRisk level per customer is based on days since last logged activity\n(any channel) plus whether a deal's closing/renewal date falls within\nthe next 30 days with no recent contact.","operationId":"api_revops_churn_risk_api_revops_churn_risk_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Revops Churn Risk Api Revops Churn Risk Get"}}}}}}},"/api/revops/expansion-opportunities":{"get":{"summary":"Api Revops Expansion Opportunities","description":"Per-customer expansion/upsell opportunity score — the mirror image of\nS14's churn-risk endpoint above: instead of flagging customers who may be\nslipping away, this flags healthy, engaged, tenured customers who don't\ncurrently have an open deal in progress — i.e. good candidates to proactively\nreach out to about expansion/upsell, before that opportunity goes cold.\n\nOpportunity level per customer:\n  high   = active engagement (activity within 30 days), a tenured\n           relationship (first won deal 90+ days ago), and no open deal\n           already in motion for this company\n  medium = active engagement within 60 days, or high-tenure but with only\n           light recent contact\n  low    = no open-deal-free engagement signal (either dormant, too new,\n           or already has an active deal — no need to \"open\" a new one)","operationId":"api_revops_expansion_opportunities_api_revops_expansion_opportunities_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Revops Expansion Opportunities Api Revops Expansion Opportunities Get"}}}}}}},"/api/revops/mrr-bridge":{"get":{"summary":"Api Revops Mrr Bridge","description":"S16 — MRR/ARR Movement Bridge: New/Expansion/Contraction/Churned MRR per\nmonth, computed from recurring deals (`is_recurring=1`, `mrr_amount`) — the\nnatural companion to S14's churn-risk and S15's expansion-opportunities,\nturning those per-customer signals into the aggregate monthly bridge RevOps\nteams actually report on. Only deals with a real `mrr_amount` count here\n(no fallback to one-time `value_amount`), so this is empty until recurring\ndeals are tracked with that field populated.\n\nMovement per recurring deal, walked chronologically per company:\n  new         = a company's first-ever won recurring deal\n  expansion   = a later won recurring deal at a higher mrr_amount than\n                the company's previous one (upsell/upgrade)\n  contraction = a later won recurring deal at a lower mrr_amount\n                (downgrade)\n  churn       = a recurring deal that flips to 'lost' for a company that\n                currently has MRR (a renewal that didn't happen)","operationId":"api_revops_mrr_bridge_api_revops_mrr_bridge_get","parameters":[{"name":"months","in":"query","required":false,"schema":{"type":"integer","default":6,"title":"Months"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Revops Mrr Bridge Api Revops Mrr Bridge Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mrr/snapshot":{"get":{"summary":"Api Mrr Snapshot","operationId":"api_mrr_snapshot_api_mrr_snapshot_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Mrr Snapshot Api Mrr Snapshot Get"}}}}}}},"/api/mrr/forecast":{"get":{"summary":"Api Mrr Forecast","operationId":"api_mrr_forecast_api_mrr_forecast_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Mrr Forecast Api Mrr Forecast Get"}}}}}}},"/api/mrr/at-risk":{"get":{"summary":"Api Mrr At Risk","operationId":"api_mrr_at_risk_api_mrr_at_risk_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Mrr At Risk Api Mrr At Risk Get"}}}}}}},"/api/mrr/nrr":{"get":{"summary":"Api Mrr Nrr","operationId":"api_mrr_nrr_api_mrr_nrr_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Mrr Nrr Api Mrr Nrr Get"}}}}}}},"/api/mrr/snapshot/capture":{"post":{"summary":"Api Mrr Capture Snapshot","operationId":"api_mrr_capture_snapshot_api_mrr_snapshot_capture_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Mrr Capture Snapshot Api Mrr Snapshot Capture Post"}}}}}}},"/api/clients/subscriptions":{"get":{"summary":"Api Clients Subscriptions List","operationId":"api_clients_subscriptions_list_api_clients_subscriptions_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Clients Subscriptions List Api Clients Subscriptions Get"}}}}}},"post":{"summary":"Api Clients Subscriptions Create","operationId":"api_clients_subscriptions_create_api_clients_subscriptions_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientSubscriptionIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Clients Subscriptions Create Api Clients Subscriptions Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/clients/subscriptions/{sub_id}":{"patch":{"summary":"Api Clients Subscriptions Update","operationId":"api_clients_subscriptions_update_api_clients_subscriptions__sub_id__patch","parameters":[{"name":"sub_id","in":"path","required":true,"schema":{"type":"integer","title":"Sub Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientSubscriptionUpdateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Clients Subscriptions Update Api Clients Subscriptions  Sub Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Api Clients Subscriptions Delete","operationId":"api_clients_subscriptions_delete_api_clients_subscriptions__sub_id__delete","parameters":[{"name":"sub_id","in":"path","required":true,"schema":{"type":"integer","title":"Sub Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Clients Subscriptions Delete Api Clients Subscriptions  Sub Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/margin/overview":{"get":{"summary":"Api Margin Overview","operationId":"api_margin_overview_api_margin_overview_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Margin Overview Api Margin Overview Get"}}}}}}},"/api/renewal/kpis":{"get":{"summary":"Api Renewal Kpis","operationId":"api_renewal_kpis_api_renewal_kpis_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Renewal Kpis Api Renewal Kpis Get"}}}}}}},"/api/renewal/upcoming":{"get":{"summary":"Api Renewal Upcoming","operationId":"api_renewal_upcoming_api_renewal_upcoming_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":90,"title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Renewal Upcoming Api Renewal Upcoming Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/renewal/scan":{"post":{"summary":"Api Renewal Scan","operationId":"api_renewal_scan_api_renewal_scan_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Renewal Scan Api Renewal Scan Post"}}}}}}},"/api/revops/sales-cycle-trend":{"get":{"summary":"Api Revops Sales Cycle Trend","description":"S18 — Sales Cycle Trend: average days-to-close per month for deals won\nin that month, so RevOps can see whether the sales cycle is accelerating\nor decelerating over time. `/api/revops/velocity` already reports a\nsingle all-time average and a current days-in-stage snapshot — this adds\nthe missing time dimension using data already tracked (created_at,\nclosed_at), no new instrumentation needed.\n\ntrend_pct compares the average of the most recent half of the window\nagainst the earliest half (only using months that actually have won\ndeals) — negative means the cycle is getting shorter/faster (good),\npositive means it's getting longer/slower.","operationId":"api_revops_sales_cycle_trend_api_revops_sales_cycle_trend_get","parameters":[{"name":"months","in":"query","required":false,"schema":{"type":"integer","default":6,"title":"Months"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Revops Sales Cycle Trend Api Revops Sales Cycle Trend Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-exchange/purchases/{purchase_id}/lead":{"get":{"summary":"Api Sla Get Link","description":"Return the CRM lead that was auto-created for this purchase, if any.","operationId":"api_sla_get_link_api_signal_exchange_purchases__purchase_id__lead_get","parameters":[{"name":"purchase_id","in":"path","required":true,"schema":{"type":"string","title":"Purchase Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-exchange/signals/{signal_id}/leads":{"get":{"summary":"Api Sla Get Signal Leads","description":"Return all CRM leads created from a given signal in the active workspace.","operationId":"api_sla_get_signal_leads_api_signal_exchange_signals__signal_id__leads_get","parameters":[{"name":"signal_id","in":"path","required":true,"schema":{"type":"string","title":"Signal Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/forecast/pipeline":{"get":{"summary":"Api Forecast Pipeline","description":"Pipeline stage distribution + weighted offer values.","operationId":"api_forecast_pipeline_api_forecast_pipeline_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/forecast/revenue-by-month":{"get":{"summary":"Api Forecast Revenue By Month","description":"Accepted offer revenue grouped by calendar month.","operationId":"api_forecast_revenue_by_month_api_forecast_revenue_by_month_get","parameters":[{"name":"months","in":"query","required":false,"schema":{"type":"integer","default":6,"title":"Months"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/forecast/velocity":{"get":{"summary":"Api Forecast Velocity","description":"Average days to close a deal.","operationId":"api_forecast_velocity_api_forecast_velocity_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/forecast/quarterly":{"get":{"summary":"Api Forecast Quarterly","description":"Current-quarter forecast: accepted revenue, weighted pipeline, best-case.","operationId":"api_forecast_quarterly_api_forecast_quarterly_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/forecast/full":{"get":{"summary":"Api Forecast Full","operationId":"api_forecast_full_api_forecast_full_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/forecast/categories":{"get":{"summary":"Api Forecast Categories","operationId":"api_forecast_categories_api_forecast_categories_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/forecast/monthly":{"get":{"summary":"Api Forecast Monthly","operationId":"api_forecast_monthly_api_forecast_monthly_get","parameters":[{"name":"months","in":"query","required":false,"schema":{"type":"integer","maximum":12,"minimum":1,"default":6,"title":"Months"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/forecast/quota":{"get":{"summary":"Api Forecast Quota","operationId":"api_forecast_quota_api_forecast_quota_get","parameters":[{"name":"period","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Period"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Api Forecast Quota Set","operationId":"api_forecast_quota_set_api_forecast_quota_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_QuotaSetIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/forecast/win-rates":{"get":{"summary":"Api Forecast Win Rates","operationId":"api_forecast_win_rates_api_forecast_win_rates_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/deals/{deal_id}/forecast-category":{"patch":{"summary":"Api Deal Forecast Category","operationId":"api_deal_forecast_category_api_deals__deal_id__forecast_category_patch","parameters":[{"name":"deal_id","in":"path","required":true,"schema":{"type":"integer","title":"Deal Id"}},{"name":"category","in":"query","required":true,"schema":{"type":"string","pattern":"^(commit|best_case|pipeline|omitted)$","title":"Category"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/attribution/report":{"get":{"summary":"Api Attribution Report","operationId":"api_attribution_report_api_attribution_report_get","parameters":[{"name":"model","in":"query","required":false,"schema":{"type":"string","default":"last_touch","title":"Model"}},{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date To"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/attribution/channel-costs":{"get":{"summary":"Api Attribution Channel Costs","operationId":"api_attribution_channel_costs_api_attribution_channel_costs_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Api Attribution Channel Costs Set","operationId":"api_attribution_channel_costs_set_api_attribution_channel_costs_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_AttributionChannelCostIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/earn/offline":{"get":{"summary":"Earn Offline Page","description":"MR-2 — PWA offline fallback page served by the service worker.","operationId":"earn_offline_page_earn_offline_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/earn/privacy":{"get":{"summary":"Earn Privacy Page","description":"MR-5 — Earn-specific privacy policy (DE/EN/ZH).","operationId":"earn_privacy_page_earn_privacy_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/earn/terms":{"get":{"summary":"Earn Terms Page","description":"MR-5 — Earn-specific terms of service (DE/EN/ZH).","operationId":"earn_terms_page_earn_terms_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/earn/privacy-summary":{"get":{"summary":"Api Earn Privacy Summary","description":"MR-5 — Art. 15 DSGVO: return what earn data we hold for the current user.","operationId":"api_earn_privacy_summary_api_earn_privacy_summary_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/earn/export":{"get":{"summary":"Api Earn Export","description":"MR-5 — Art. 20 DSGVO: download all earn data as a ZIP.","operationId":"api_earn_export_api_earn_export_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/earn/account":{"delete":{"summary":"Api Earn Delete Account","description":"MR-5 — Art. 17 DSGVO: self-service earn account deletion / anonymization.","operationId":"api_earn_delete_account_api_earn_account_delete","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/earn/unsubscribe":{"post":{"summary":"Api Earn Unsubscribe","description":"MR-5 — Unsubscribe current user from earn email communications.","operationId":"api_earn_unsubscribe_api_earn_unsubscribe_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/earn/resubscribe":{"post":{"summary":"Api Earn Resubscribe","description":"MR-5 — Re-subscribe current user to earn email communications.","operationId":"api_earn_resubscribe_api_earn_resubscribe_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/earn/unsubscribe":{"get":{"summary":"Earn Unsubscribe Link","description":"One-click e-mail unsubscribe — must work without an active session\n(the recipient may not be logged in, or may never log in again), so this\nverifies a stateless HMAC token instead of requiring auth. Opts out of\nboth the earn-specific list and the general marketing-email flag other\ncron jobs (weekly_digest, signal_digest_email) already respect, since a\none-click \"stop this e-mail\" click should not leave a sibling list active.","operationId":"earn_unsubscribe_link_earn_unsubscribe_get","parameters":[{"name":"uid","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Uid"}},{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/unsubscribe":{"get":{"summary":"Crm Unsubscribe Link","description":"One-click unsubscribe for CRM-side marketing emails (retention_emails,\nweekly_digest) — same no-login-required stateless-token pattern as\n/earn/unsubscribe, distinct token namespace. Sets both digest_unsubscribed\nand marketing_emails_opt_out: a single \"stop these e-mails\" click should\ncover every CRM marketing cron, not just the one that was clicked from.","operationId":"crm_unsubscribe_link_unsubscribe_get","parameters":[{"name":"uid","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Uid"}},{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/earn/signals/{signal_type}":{"get":{"summary":"Earn Signal Landing","description":"Sprint S11 — SEO landing pages for each B2B signal type.","operationId":"earn_signal_landing_earn_signals__signal_type__get","parameters":[{"name":"signal_type","in":"path","required":true,"schema":{"type":"string","title":"Signal Type"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/earn/start":{"get":{"summary":"Earn Landing","description":"Sprint 294 — B2C public earn landing page (no login required).","operationId":"earn_landing_earn_start_get","parameters":[{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/earn":{"get":{"summary":"Earn Page","description":"Sprint 200 / EP-1 / EP-2 — standalone earn page with redemption + referral + i18n.","operationId":"earn_page_earn_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/earn/redeem":{"post":{"summary":"Api Earn Redeem","description":"EP-1 earn redeem — uses reward_lib.redeem (legacy interface).","operationId":"api_earn_redeem_api_earn_redeem_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/earn/shop":{"get":{"summary":"Api Earn Shop List","description":"MR-6 — return active shop items for current lang.","operationId":"api_earn_shop_list_api_earn_shop_get","parameters":[{"name":"lang","in":"query","required":false,"schema":{"type":"string","default":"de","title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/earn/shop/redeem":{"post":{"summary":"Api Earn Shop Redeem","description":"MR-6 — redeem a shop item by key.","operationId":"api_earn_shop_redeem_api_earn_shop_redeem_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/earn/shop/history":{"get":{"summary":"Api Earn Shop History","description":"MR-6 — user's own redemption history.","operationId":"api_earn_shop_history_api_earn_shop_history_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"}}}}}}},"/api/admin/earn/shop":{"get":{"summary":"Api Admin Earn Shop List","description":"MR-6 admin — full item list with all lang fields.","operationId":"api_admin_earn_shop_list_api_admin_earn_shop_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Api Admin Earn Shop Upsert","description":"MR-6 admin — create or update a shop item.","operationId":"api_admin_earn_shop_upsert_api_admin_earn_shop_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/earn/shop/{item_key}/toggle":{"patch":{"summary":"Api Admin Earn Shop Toggle","description":"MR-6 admin — toggle item active/inactive.","operationId":"api_admin_earn_shop_toggle_api_admin_earn_shop__item_key__toggle_patch","parameters":[{"name":"item_key","in":"path","required":true,"schema":{"type":"string","title":"Item Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/earn/redemptions":{"get":{"summary":"Api Admin Earn Redemptions","description":"MR-6 admin — redemption queue.","operationId":"api_admin_earn_redemptions_api_admin_earn_redemptions_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","default":"","title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/earn/redemptions/{redemption_id}":{"patch":{"summary":"Api Admin Earn Redemption Update","description":"MR-6 admin — update redemption status / delivery note.","operationId":"api_admin_earn_redemption_update_api_admin_earn_redemptions__redemption_id__patch","parameters":[{"name":"redemption_id","in":"path","required":true,"schema":{"type":"integer","title":"Redemption Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/earn/analytics/overview":{"get":{"summary":"Api Admin Earn Analytics Overview","description":"MR-7 — earn KPI overview.","operationId":"api_admin_earn_analytics_overview_api_admin_earn_analytics_overview_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/earn/analytics/trend":{"get":{"summary":"Api Admin Earn Analytics Trend","description":"MR-7 — daily credits issued trend.","operationId":"api_admin_earn_analytics_trend_api_admin_earn_analytics_trend_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/earn/analytics/top-earners":{"get":{"summary":"Api Admin Earn Analytics Top Earners","description":"MR-7 — top earners leaderboard (emails masked).","operationId":"api_admin_earn_analytics_top_earners_api_admin_earn_analytics_top_earners_get","parameters":[{"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"}}}}}}},"/api/admin/earn/analytics/funnel":{"get":{"summary":"Api Admin Earn Analytics Funnel","description":"MR-7 — registered → earned → redeemed conversion funnel.","operationId":"api_admin_earn_analytics_funnel_api_admin_earn_analytics_funnel_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/earn/analytics/offerwall":{"get":{"summary":"Api Admin Earn Analytics Offerwall","description":"MR-7 — CPX vs Lootably breakdown.","operationId":"api_admin_earn_analytics_offerwall_api_admin_earn_analytics_offerwall_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/earn/help":{"get":{"summary":"Earn Help Page","description":"MR-8 — FAQ + support ticket form.","operationId":"earn_help_page_earn_help_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/earn/support":{"post":{"summary":"Api Earn Support Create","description":"MR-8 — submit a support ticket (earn auth required).","operationId":"api_earn_support_create_api_earn_support_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_SupportTicketIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/earn/support/tickets":{"get":{"summary":"Api Earn Support Tickets","description":"MR-8 — list current user's support tickets.","operationId":"api_earn_support_tickets_api_earn_support_tickets_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/earn/support/tickets":{"get":{"summary":"Api Admin Earn Support Tickets","description":"MR-8 — admin support queue.","operationId":"api_admin_earn_support_tickets_api_admin_earn_support_tickets_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","default":"","title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/earn/support/tickets/{ticket_id}":{"patch":{"summary":"Api Admin Earn Support Update","description":"MR-8 — admin update ticket status + note.","operationId":"api_admin_earn_support_update_api_admin_earn_support_tickets__ticket_id__patch","parameters":[{"name":"ticket_id","in":"path","required":true,"schema":{"type":"integer","title":"Ticket Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_SupportUpdateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/earn/register":{"post":{"summary":"Api Earn Register","operationId":"api_earn_register_api_earn_register_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_EarnRegisterIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/earn/referral-code":{"get":{"summary":"Api Earn Referral Code","description":"EP-2 — return authenticated user's personal referral code + share URL.","operationId":"api_earn_referral_code_api_earn_referral_code_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/earn/login":{"post":{"summary":"Api Earn Login","operationId":"api_earn_login_api_earn_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_EarnLoginIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/earn/logout":{"post":{"summary":"Api Earn Logout","operationId":"api_earn_logout_api_earn_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/earn/me":{"get":{"summary":"Api Earn Me","operationId":"api_earn_me_api_earn_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/earn/postback/cpx":{"get":{"summary":"Api Earn Postback Cpx","description":"CPX Research S2S postback: ?status=X&trans_id=X&user_id=X&amount_local=X&hash=X\nstatus=1 → approved/pending (award credits)\nstatus=2 → reversed (deduct credits)","operationId":"api_earn_postback_cpx_api_earn_postback_cpx_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/earn/cpx-health":{"get":{"summary":"Api Admin Earn Cpx Health","description":"MR-3 — CPX health check: env vars, postback log, 24h alert.","operationId":"api_admin_earn_cpx_health_api_admin_earn_cpx_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/earn/postback/cpx/sandbox":{"post":{"summary":"Api Earn Postback Cpx Sandbox","description":"MR-3 — Master-only sandbox: simulate a CPX postback for E2E testing.","operationId":"api_earn_postback_cpx_sandbox_api_earn_postback_cpx_sandbox_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/earn/survey-signal":{"post":{"summary":"Api Earn Survey Signal","description":"Submit interest/role/b2b_b2c after a CPX survey. Awards 25 bonus credits.","operationId":"api_earn_survey_signal_api_earn_survey_signal_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/earn/survey-signal/skip":{"post":{"summary":"Api Earn Survey Signal Skip","description":"Skip the pending signal-capture prompt.","operationId":"api_earn_survey_signal_skip_api_earn_survey_signal_skip_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/earn/signal-stats":{"get":{"summary":"Api Admin Earn Signal Stats","description":"Sprint 221 — Admin: signal capture stats (total, by interest, by role, trend).","operationId":"api_admin_earn_signal_stats_api_admin_earn_signal_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/earn/signal-buyers":{"get":{"summary":"Api Admin Signal Buyers List","description":"List all registered signal buyers.","operationId":"api_admin_signal_buyers_list_api_admin_earn_signal_buyers_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Api Admin Signal Buyers Create","description":"Create a new signal buyer.","operationId":"api_admin_signal_buyers_create_api_admin_earn_signal_buyers_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/earn/signal-buyers/{buyer_id}":{"patch":{"summary":"Api Admin Signal Buyers Update","description":"Update a signal buyer.","operationId":"api_admin_signal_buyers_update_api_admin_earn_signal_buyers__buyer_id__patch","parameters":[{"name":"buyer_id","in":"path","required":true,"schema":{"type":"string","title":"Buyer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Api Admin Signal Buyers Delete","description":"Delete a signal buyer.","operationId":"api_admin_signal_buyers_delete_api_admin_earn_signal_buyers__buyer_id__delete","parameters":[{"name":"buyer_id","in":"path","required":true,"schema":{"type":"string","title":"Buyer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/earn/signal-routing":{"get":{"summary":"Api Admin Signal Routing Stats","description":"Sprint 222 — Routing dashboard: stats + route log.","operationId":"api_admin_signal_routing_stats_api_admin_earn_signal_routing_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/earn/signal-routing/{route_id}/deliver":{"post":{"summary":"Api Admin Signal Route Deliver","description":"Mark a route as delivered.","operationId":"api_admin_signal_route_deliver_api_admin_earn_signal_routing__route_id__deliver_post","parameters":[{"name":"route_id","in":"path","required":true,"schema":{"type":"string","title":"Route Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/earn/marketplace":{"get":{"summary":"Api Earn Marketplace List","description":"List active earn marketplace products with unlock status for authenticated user.","operationId":"api_earn_marketplace_list_api_earn_marketplace_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/earn/marketplace/{product_id}/unlock":{"post":{"summary":"Api Earn Marketplace Unlock","description":"Spend credits to unlock an earn marketplace product.","operationId":"api_earn_marketplace_unlock_api_earn_marketplace__product_id__unlock_post","parameters":[{"name":"product_id","in":"path","required":true,"schema":{"type":"string","title":"Product Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/earn/marketplace/{product_id}/content":{"get":{"summary":"Api Earn Marketplace Content","description":"Return product content — only if user has unlocked it.","operationId":"api_earn_marketplace_content_api_earn_marketplace__product_id__content_get","parameters":[{"name":"product_id","in":"path","required":true,"schema":{"type":"string","title":"Product Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/earn/unlocks":{"get":{"summary":"Api Earn My Unlocks","description":"Return all products unlocked by the authenticated user.","operationId":"api_earn_my_unlocks_api_earn_unlocks_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/rewards/referral-stats":{"get":{"summary":"Api Rewards Referral Stats","description":"Extended referral stats incl. recurring commission totals.","operationId":"api_rewards_referral_stats_api_rewards_referral_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/rewards/referral-commissions":{"get":{"summary":"Api Rewards Referral Commissions","description":"History of recurring referral commissions earned.","operationId":"api_rewards_referral_commissions_api_rewards_referral_commissions_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/earn/marketplace/products":{"get":{"summary":"Api Admin Earn Products List","operationId":"api_admin_earn_products_list_api_admin_earn_marketplace_products_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Api Admin Earn Products Create","operationId":"api_admin_earn_products_create_api_admin_earn_marketplace_products_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EarnProductIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/earn/marketplace/products/{product_id}":{"patch":{"summary":"Api Admin Earn Products Patch","operationId":"api_admin_earn_products_patch_api_admin_earn_marketplace_products__product_id__patch","parameters":[{"name":"product_id","in":"path","required":true,"schema":{"type":"string","title":"Product Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EarnProductPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Api Admin Earn Products Delete","operationId":"api_admin_earn_products_delete_api_admin_earn_marketplace_products__product_id__delete","parameters":[{"name":"product_id","in":"path","required":true,"schema":{"type":"string","title":"Product Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/marketplace/revshare/offers":{"get":{"summary":"Api Revshare Offers List","description":"List published RevShare offers. Optional ?lang= and ?category= params.","operationId":"api_revshare_offers_list_api_marketplace_revshare_offers_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/marketplace/revshare/offers/{offer_id}":{"get":{"summary":"Api Revshare Offer Detail","operationId":"api_revshare_offer_detail_api_marketplace_revshare_offers__offer_id__get","parameters":[{"name":"offer_id","in":"path","required":true,"schema":{"type":"string","title":"Offer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/marketplace/revshare/go/{offer_id}":{"get":{"summary":"Api Revshare Go","description":"Track click + redirect to provider tracking URL.","operationId":"api_revshare_go_api_marketplace_revshare_go__offer_id__get","parameters":[{"name":"offer_id","in":"path","required":true,"schema":{"type":"string","title":"Offer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/marketplace/revshare/postback/{offer_id}":{"post":{"summary":"Api Revshare Postback","description":"S2S postback from provider: confirms a conversion.","operationId":"api_revshare_postback_api_marketplace_revshare_postback__offer_id__post","parameters":[{"name":"offer_id","in":"path","required":true,"schema":{"type":"string","title":"Offer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/revshare/providers":{"get":{"summary":"Api Admin Revshare Providers","operationId":"api_admin_revshare_providers_api_admin_revshare_providers_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Api Admin Revshare Providers Create","operationId":"api_admin_revshare_providers_create_api_admin_revshare_providers_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevShareProviderIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/revshare/providers/{provider_id}":{"patch":{"summary":"Api Admin Revshare Providers Patch","operationId":"api_admin_revshare_providers_patch_api_admin_revshare_providers__provider_id__patch","parameters":[{"name":"provider_id","in":"path","required":true,"schema":{"type":"string","title":"Provider Id"}}],"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"}}}}}}},"/api/admin/revshare/offers":{"get":{"summary":"Api Admin Revshare Offers","operationId":"api_admin_revshare_offers_api_admin_revshare_offers_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Api Admin Revshare Offers Create","operationId":"api_admin_revshare_offers_create_api_admin_revshare_offers_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevShareOfferIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/revshare/offers/{offer_id}":{"patch":{"summary":"Api Admin Revshare Offers Patch","operationId":"api_admin_revshare_offers_patch_api_admin_revshare_offers__offer_id__patch","parameters":[{"name":"offer_id","in":"path","required":true,"schema":{"type":"string","title":"Offer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevShareOfferPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/revshare/stats":{"get":{"summary":"Api Admin Revshare Stats","operationId":"api_admin_revshare_stats_api_admin_revshare_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/revshare/conversions":{"get":{"summary":"Api Admin Revshare Conversions","operationId":"api_admin_revshare_conversions_api_admin_revshare_conversions_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/revshare/conversions/{conversion_id}/confirm":{"post":{"summary":"Api Admin Revshare Conversion Confirm","operationId":"api_admin_revshare_conversion_confirm_api_admin_revshare_conversions__conversion_id__confirm_post","parameters":[{"name":"conversion_id","in":"path","required":true,"schema":{"type":"string","title":"Conversion Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-marketplace/listings":{"get":{"summary":"Api Signal Mkt Listings","operationId":"api_signal_mkt_listings_api_signal_marketplace_listings_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/signal-marketplace/orders":{"post":{"summary":"Api Signal Mkt Create Order","operationId":"api_signal_mkt_create_order_api_signal_marketplace_orders_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignalMktOrderIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-marketplace/orders/{order_id}/fulfill":{"post":{"summary":"Api Signal Mkt Fulfill","operationId":"api_signal_mkt_fulfill_api_signal_marketplace_orders__order_id__fulfill_post","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-marketplace/orders/{order_id}/signals":{"get":{"summary":"Api Signal Mkt Order Signals","operationId":"api_signal_mkt_order_signals_api_signal_marketplace_orders__order_id__signals_get","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-marketplace/match/{signal_id}":{"get":{"summary":"Api Signal Mkt Match","operationId":"api_signal_mkt_match_api_signal_marketplace_match__signal_id__get","parameters":[{"name":"signal_id","in":"path","required":true,"schema":{"type":"string","title":"Signal Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-marketplace/match-for-me":{"get":{"summary":"Api Signal Mkt Match For Me","operationId":"api_signal_mkt_match_for_me_api_signal_marketplace_match_for_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/signal-marketplace/stats":{"get":{"summary":"Api Signal Mkt Stats","operationId":"api_signal_mkt_stats_api_signal_marketplace_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/signal-marketplace/listings":{"get":{"summary":"Api Admin Signal Mkt Listings","operationId":"api_admin_signal_mkt_listings_api_admin_signal_marketplace_listings_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Api Admin Signal Mkt Create","operationId":"api_admin_signal_mkt_create_api_admin_signal_marketplace_listings_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignalMktListingIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/signal-marketplace/listings/{listing_id}":{"patch":{"summary":"Api Admin Signal Mkt Update","operationId":"api_admin_signal_mkt_update_api_admin_signal_marketplace_listings__listing_id__patch","parameters":[{"name":"listing_id","in":"path","required":true,"schema":{"type":"string","title":"Listing Id"}}],"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"}}}}}}},"/api/admin/signal-marketplace/orders":{"get":{"summary":"Api Admin Signal Mkt Orders","operationId":"api_admin_signal_mkt_orders_api_admin_signal_marketplace_orders_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/marketplace/rankings/recalculate":{"post":{"summary":"Api Rankings Recalculate","operationId":"api_rankings_recalculate_api_marketplace_rankings_recalculate_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/marketplace/rankings/{entity_type}":{"get":{"summary":"Api Rankings List","operationId":"api_rankings_list_api_marketplace_rankings__entity_type__get","parameters":[{"name":"entity_type","in":"path","required":true,"schema":{"type":"string","title":"Entity Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/marketplace/best-sellers/{entity_type}":{"get":{"summary":"Api Best Sellers","operationId":"api_best_sellers_api_marketplace_best_sellers__entity_type__get","parameters":[{"name":"entity_type","in":"path","required":true,"schema":{"type":"string","title":"Entity Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/lead-auction/qualify/{user_id}":{"get":{"summary":"Api Lead Qualify","operationId":"api_lead_qualify_api_lead_auction_qualify__user_id__get","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/lead-auction/auctions":{"get":{"summary":"Api Auction List","operationId":"api_auction_list_api_lead_auction_auctions_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Api Auction Create","operationId":"api_auction_create_api_lead_auction_auctions_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuctionCreateIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/lead-auction/auctions/{auction_id}":{"get":{"summary":"Api Auction Get","operationId":"api_auction_get_api_lead_auction_auctions__auction_id__get","parameters":[{"name":"auction_id","in":"path","required":true,"schema":{"type":"string","title":"Auction Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/lead-auction/auctions/{auction_id}/expire":{"post":{"summary":"Api Auction Expire","operationId":"api_auction_expire_api_lead_auction_auctions__auction_id__expire_post","parameters":[{"name":"auction_id","in":"path","required":true,"schema":{"type":"string","title":"Auction Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/lead-auction/auctions/{auction_id}/settle":{"post":{"summary":"Api Auction Settle","operationId":"api_auction_settle_api_lead_auction_auctions__auction_id__settle_post","parameters":[{"name":"auction_id","in":"path","required":true,"schema":{"type":"string","title":"Auction Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/lead-auction/auctions/{auction_id}/commission/confirm":{"post":{"summary":"Api Auction Commission Confirm","operationId":"api_auction_commission_confirm_api_lead_auction_auctions__auction_id__commission_confirm_post","parameters":[{"name":"auction_id","in":"path","required":true,"schema":{"type":"string","title":"Auction Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/lead-auction/auctions/{auction_id}/nowpay/create":{"post":{"summary":"Api Auction Nowpay Create","description":"Create a NOWPayments crypto invoice for the winning bidder's commission\n— reuses the same rail already wired for plan checkout and signal-exchange\npurchases (Sprint 169), so 'commission/confirm' no longer has to be a\npurely manual admin action with no real payment behind it.","operationId":"api_auction_nowpay_create_api_lead_auction_auctions__auction_id__nowpay_create_post","parameters":[{"name":"auction_id","in":"path","required":true,"schema":{"type":"string","title":"Auction Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_AuctionNowPayCreateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/lead-auction/auctions/{auction_id}/nowpay/status/{payment_id}":{"get":{"summary":"Api Auction Nowpay Status","description":"Poll NOWPayments status for an auction commission payment.","operationId":"api_auction_nowpay_status_api_lead_auction_auctions__auction_id__nowpay_status__payment_id__get","parameters":[{"name":"auction_id","in":"path","required":true,"schema":{"type":"string","title":"Auction Id"}},{"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"}}}}}}},"/api/lead-auction/auctions/{auction_id}/bids":{"post":{"summary":"Api Auction Bid","operationId":"api_auction_bid_api_lead_auction_auctions__auction_id__bids_post","parameters":[{"name":"auction_id","in":"path","required":true,"schema":{"type":"string","title":"Auction Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuctionBidIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Api Auction Bids List","operationId":"api_auction_bids_list_api_lead_auction_auctions__auction_id__bids_get","parameters":[{"name":"auction_id","in":"path","required":true,"schema":{"type":"string","title":"Auction Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/lead-auction/auctions/{auction_id}/leading-bid":{"get":{"summary":"Api Auction Leading Bid","operationId":"api_auction_leading_bid_api_lead_auction_auctions__auction_id__leading_bid_get","parameters":[{"name":"auction_id","in":"path","required":true,"schema":{"type":"string","title":"Auction Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/lead-auction/auctions/{auction_id}/contact":{"get":{"summary":"Api Auction Contact","operationId":"api_auction_contact_api_lead_auction_auctions__auction_id__contact_get","parameters":[{"name":"auction_id","in":"path","required":true,"schema":{"type":"string","title":"Auction Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/lead-auction/stats":{"get":{"summary":"Api Auction Stats","operationId":"api_auction_stats_api_lead_auction_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/apify/status":{"get":{"summary":"Api Apify Status","operationId":"api_apify_status_api_apify_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/apify/trigger":{"post":{"summary":"Api Apify Trigger","operationId":"api_apify_trigger_api_apify_trigger_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApifyTriggerIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/apify/webhook/{job_id}":{"post":{"summary":"Api Apify Webhook","description":"Apify calls this when a run finishes — no auth, validated by job_id.","operationId":"api_apify_webhook_api_apify_webhook__job_id__post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/apify/jobs":{"get":{"summary":"Api Apify Jobs","operationId":"api_apify_jobs_api_apify_jobs_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/apify/jobs/{job_id}":{"get":{"summary":"Api Apify Job","operationId":"api_apify_job_api_apify_jobs__job_id__get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/apify/jobs/{job_id}/poll":{"get":{"summary":"Api Apify Poll","operationId":"api_apify_poll_api_apify_jobs__job_id__poll_get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/apify/signals":{"get":{"summary":"Api Apify Signals","operationId":"api_apify_signals_api_apify_signals_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/test-signal":{"post":{"summary":"Api Admin Test Signal","operationId":"api_admin_test_signal_api_admin_test_signal_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/apify/signals/{signal_id}/convert":{"post":{"summary":"Api Apify Convert","operationId":"api_apify_convert_api_apify_signals__signal_id__convert_post","parameters":[{"name":"signal_id","in":"path","required":true,"schema":{"type":"string","title":"Signal Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/apify/stats":{"get":{"summary":"Api Apify Stats","operationId":"api_apify_stats_api_apify_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/rapidapi/company-signals":{"get":{"summary":"Api Rapidapi Company Signals","operationId":"api_rapidapi_company_signals_api_rapidapi_company_signals_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/rapidapi/company-enrichment":{"get":{"summary":"Api Rapidapi Company Enrichment","operationId":"api_rapidapi_company_enrichment_api_rapidapi_company_enrichment_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/rapidapi/buying-intent":{"get":{"summary":"Api Rapidapi Buying Intent","operationId":"api_rapidapi_buying_intent_api_rapidapi_buying_intent_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/rapidapi/technology-change":{"get":{"summary":"Api Rapidapi Technology Change","operationId":"api_rapidapi_technology_change_api_rapidapi_technology_change_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/rapidapi/funding-events":{"get":{"summary":"Api Rapidapi Funding Events","operationId":"api_rapidapi_funding_events_api_rapidapi_funding_events_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/rapidapi/payout-webhook":{"post":{"summary":"Api Rapidapi Payout Webhook","description":"RapidAPI calls this when a payout is processed — validates proxy secret.","operationId":"api_rapidapi_payout_webhook_api_rapidapi_payout_webhook_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/rapidapi/stats":{"get":{"summary":"Api Admin Rapidapi Stats","operationId":"api_admin_rapidapi_stats_api_admin_rapidapi_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/rapidapi/subscriptions":{"get":{"summary":"Api Admin Rapidapi Subscriptions","operationId":"api_admin_rapidapi_subscriptions_api_admin_rapidapi_subscriptions_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/rapidapi/subscriptions/{rapidapi_key}/plan":{"patch":{"summary":"Api Admin Rapidapi Update Plan","operationId":"api_admin_rapidapi_update_plan_api_admin_rapidapi_subscriptions__rapidapi_key__plan_patch","parameters":[{"name":"rapidapi_key","in":"path","required":true,"schema":{"type":"string","title":"Rapidapi Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/zapier/auth-test":{"get":{"summary":"Api Zapier Auth Test","operationId":"api_zapier_auth_test_api_zapier_auth_test_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/zapier/hooks/subscribe":{"post":{"summary":"Api Zapier Hook Subscribe","operationId":"api_zapier_hook_subscribe_api_zapier_hooks_subscribe_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZapierHookSubscribeIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/zapier/hooks/unsubscribe":{"delete":{"summary":"Api Zapier Hook Unsubscribe","operationId":"api_zapier_hook_unsubscribe_api_zapier_hooks_unsubscribe_delete","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/zapier/triggers/new-buying-signal":{"get":{"summary":"Api Zapier Trigger Buying Signal","operationId":"api_zapier_trigger_buying_signal_api_zapier_triggers_new_buying_signal_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/zapier/triggers/new-qualified-lead":{"get":{"summary":"Api Zapier Trigger Qualified Lead","operationId":"api_zapier_trigger_qualified_lead_api_zapier_triggers_new_qualified_lead_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/zapier/actions/create-contact":{"post":{"summary":"Api Zapier Action Create Contact","operationId":"api_zapier_action_create_contact_api_zapier_actions_create_contact_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZapierActionContactIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/zapier/actions/enrich-company":{"post":{"summary":"Api Zapier Action Enrich","operationId":"api_zapier_action_enrich_api_zapier_actions_enrich_company_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/zapier/actions/add-signal":{"post":{"summary":"Api Zapier Action Add Signal","operationId":"api_zapier_action_add_signal_api_zapier_actions_add_signal_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZapierActionSignalIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agent/update-lead":{"post":{"summary":"Api Agent Update Lead","description":"Agentic AI write-back: n8n/Make agent pushes enrichment, note, and/or follow-up\nfor an existing lead identified by lead_id.\nAuth: same API key used for /api/zapier/auth-test (X-Api-Key header).","operationId":"api_agent_update_lead_api_agent_update_lead_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentUpdateLeadIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Agent Update Lead Api Agent Update Lead Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/zapier/triggers/followup-due":{"get":{"summary":"Api Zapier Trigger Followup Due","description":"Polling trigger: follow-ups due today or overdue (for n8n/Make AI agents).","operationId":"api_zapier_trigger_followup_due_api_zapier_triggers_followup_due_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"type":"object"},"type":"array","title":"Response Api Zapier Trigger Followup Due Api Zapier Triggers Followup Due Get"}}}}}}},"/api/zapier/triggers/deal-won":{"get":{"summary":"Api Zapier Trigger Deal Won","description":"Polling trigger: deals moved to 'won' in the last 24 hours (for n8n/Make).","operationId":"api_zapier_trigger_deal_won_api_zapier_triggers_deal_won_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"type":"object"},"type":"array","title":"Response Api Zapier Trigger Deal Won Api Zapier Triggers Deal Won Get"}}}}}}},"/api/admin/zapier/stats":{"get":{"summary":"Api Admin Zapier Stats","operationId":"api_admin_zapier_stats_api_admin_zapier_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/zapier/hooks":{"get":{"summary":"Api Admin Zapier Hooks","operationId":"api_admin_zapier_hooks_api_admin_zapier_hooks_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/earn/postback/lootably":{"get":{"summary":"Api Earn Postback Lootably","description":"Lootably S2S postback: ?uid=&transaction_id=&amount=&currency=&signature=","operationId":"api_earn_postback_lootably_api_earn_postback_lootably_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/earn/lootably-health":{"get":{"summary":"Api Admin Earn Lootably Health","operationId":"api_admin_earn_lootably_health_api_admin_earn_lootably_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/earn/postback/lootably/sandbox":{"post":{"summary":"Api Earn Postback Lootably Sandbox","description":"MR-4 — Master-only sandbox: simulate a Lootably postback.","operationId":"api_earn_postback_lootably_sandbox_api_earn_postback_lootably_sandbox_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/earn/exchange-preview":{"get":{"summary":"Api Earn Exchange Preview","description":"Return top 6 publicly listed signals as teaser cards (no body, no publisher details).","operationId":"api_earn_exchange_preview_api_earn_exchange_preview_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/earn/offers":{"get":{"summary":"Api Earn Offers","description":"EP-4 — Return active reward offers for the earn page (public, no auth required).","operationId":"api_earn_offers_api_earn_offers_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/earn/offers/{offer_id}/click":{"post":{"summary":"Api Earn Offer Click","description":"EP-4 — Award engagement credits for first click on an offer (earn-page users).","operationId":"api_earn_offer_click_api_earn_offers__offer_id__click_post","parameters":[{"name":"offer_id","in":"path","required":true,"schema":{"type":"integer","title":"Offer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/earn/stats":{"get":{"summary":"Api Earn Stats","description":"EP-5 — Public community stats for social proof ticker on /earn.","operationId":"api_earn_stats_api_earn_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/earn/survey-click":{"post":{"summary":"Api Earn Survey Click","description":"Log a CPX 'Umfragen starten' click — fires client-side on button click.","operationId":"api_earn_survey_click_api_earn_survey_click_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/earn/survey-click-stats":{"get":{"summary":"Api Admin Earn Survey Click Stats","description":"Master-only: CPX offerwall click-through stats for monitoring.","operationId":"api_admin_earn_survey_click_stats_api_admin_earn_survey_click_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/earn/leaderboard":{"get":{"summary":"Api Earn Leaderboard","description":"EP-8 — Public top-10 earner leaderboard (anonymised display names).","operationId":"api_earn_leaderboard_api_earn_leaderboard_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/earn/achievements":{"get":{"summary":"Api Earn Achievements","description":"EP-8 — Earn-auth required. Returns achievement list for the logged-in user.","operationId":"api_earn_achievements_api_earn_achievements_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/earn/hub/profile":{"get":{"summary":"Api Earn Hub Get Profile","description":"Sprint 178 — get my earn hub profile.","operationId":"api_earn_hub_get_profile_api_earn_hub_profile_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Api Earn Hub Upsert Profile","description":"Sprint 178 — create/update earn hub profile (role + details).","operationId":"api_earn_hub_upsert_profile_api_earn_hub_profile_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_EarnHubProfileIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/earn/hub/dashboard":{"get":{"summary":"Api Earn Hub Dashboard","description":"Sprint 178 — role-aware dashboard: campaigns (influencer) + links (affiliate).","operationId":"api_earn_hub_dashboard_api_earn_hub_dashboard_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/earn/hub/campaigns":{"get":{"summary":"Api Earn Hub Campaigns","description":"Sprint 178 — AI-matched brand campaigns for the logged-in influencer.","operationId":"api_earn_hub_campaigns_api_earn_hub_campaigns_get","parameters":[{"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"}}}}}}},"/api/earn/hub/campaigns/{brief_id}/apply":{"post":{"summary":"Api Earn Hub Apply","description":"Sprint 178 — apply to a brand campaign and auto-draft a Pragma contract.","operationId":"api_earn_hub_apply_api_earn_hub_campaigns__brief_id__apply_post","parameters":[{"name":"brief_id","in":"path","required":true,"schema":{"type":"string","title":"Brief Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_EarnHubApplyIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/earn/hub/links":{"get":{"summary":"Api Earn Hub Links","description":"Sprint 178 — list my affiliate links across all workspaces.","operationId":"api_earn_hub_links_api_earn_hub_links_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/earn/hub/stats":{"get":{"summary":"Api Earn Hub Stats","description":"Sprint 178 — my hub stats: clicks, conversions, earned commission.","operationId":"api_earn_hub_stats_api_earn_hub_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/earn/hub/view-mode":{"post":{"summary":"Api Earn Hub Set View Mode","description":"Sprint 178 (master-only) — persist earn page view-mode cookie.","operationId":"api_earn_hub_set_view_mode_api_earn_hub_view_mode_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/earn/hub/discovery":{"get":{"summary":"Api Earn Hub Discovery","description":"Sprint 178 — CRM workspace members discover earn hub affiliates/influencers.\n\nVisible to all workspace tenants (all CRM users).","operationId":"api_earn_hub_discovery_api_earn_hub_discovery_get","parameters":[{"name":"role","in":"query","required":false,"schema":{"type":"string","default":"","title":"Role"}},{"name":"niche","in":"query","required":false,"schema":{"type":"string","default":"","title":"Niche"}},{"name":"min_followers","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Min Followers"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/earn/hub/ai-bio":{"post":{"summary":"Api Earn Hub Ai Bio","description":"Sprint S11 — generate a profile bio from platform/niches/followers.","operationId":"api_earn_hub_ai_bio_api_earn_hub_ai_bio_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_EarnAiBioIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/earn/hub/campaigns/{brief_id}/ai-pitch":{"post":{"summary":"Api Earn Hub Ai Pitch","description":"Sprint S11 — generate a personalized campaign application pitch.","operationId":"api_earn_hub_ai_pitch_api_earn_hub_campaigns__brief_id__ai_pitch_post","parameters":[{"name":"brief_id","in":"path","required":true,"schema":{"type":"string","title":"Brief Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/earn/hub/ai-signal-why":{"post":{"summary":"Api Earn Hub Ai Signal Why","description":"Sprint S11 — one-sentence explanation of why a signal fits the user.","operationId":"api_earn_hub_ai_signal_why_api_earn_hub_ai_signal_why_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_EarnAiSignalWhyIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/earn/ai-survey-check":{"get":{"summary":"Api Earn Ai Survey Check","description":"Sprint S11 — AI survey qualification estimate based on user hub profile.","operationId":"api_earn_ai_survey_check_api_earn_ai_survey_check_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/signal-hub":{"get":{"summary":"Signal Hub Page","operationId":"signal_hub_page_signal_hub_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/signal-hub/register":{"post":{"summary":"Api Signal Hub Register","operationId":"api_signal_hub_register_api_signal_hub_register_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_SignalHubRegisterIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-hub/login":{"post":{"summary":"Api Signal Hub Login","operationId":"api_signal_hub_login_api_signal_hub_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_SignalHubLoginIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-hub/logout":{"post":{"summary":"Api Signal Hub Logout","operationId":"api_signal_hub_logout_api_signal_hub_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/signal-hub/me":{"get":{"summary":"Api Signal Hub Me","operationId":"api_signal_hub_me_api_signal_hub_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/signal-hub/profile":{"get":{"summary":"Api Signal Hub Profile Get","operationId":"api_signal_hub_profile_get_api_signal_hub_profile_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Api Signal Hub Profile Post","operationId":"api_signal_hub_profile_post_api_signal_hub_profile_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_SignalHubProfileIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-hub/dashboard":{"get":{"summary":"Api Signal Hub Dashboard","operationId":"api_signal_hub_dashboard_api_signal_hub_dashboard_get","parameters":[{"name":"lang","in":"query","required":false,"schema":{"type":"string","default":"de","title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-hub/briefs":{"get":{"summary":"Api Signal Hub Briefs List","operationId":"api_signal_hub_briefs_list_api_signal_hub_briefs_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"}}}}}},"post":{"summary":"Api Signal Hub Briefs Create","operationId":"api_signal_hub_briefs_create_api_signal_hub_briefs_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_SignalHubBriefIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-hub/briefs/{brief_id}":{"get":{"summary":"Api Signal Hub Brief Get","operationId":"api_signal_hub_brief_get_api_signal_hub_briefs__brief_id__get","parameters":[{"name":"brief_id","in":"path","required":true,"schema":{"type":"string","title":"Brief Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-hub/briefs/{brief_id}/apply":{"post":{"summary":"Api Signal Hub Apply","operationId":"api_signal_hub_apply_api_signal_hub_briefs__brief_id__apply_post","parameters":[{"name":"brief_id","in":"path","required":true,"schema":{"type":"string","title":"Brief Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_SignalHubApplyIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-hub/applications":{"get":{"summary":"Api Signal Hub Applications","operationId":"api_signal_hub_applications_api_signal_hub_applications_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/signal-hub/publishers":{"get":{"summary":"Api Signal Hub Publishers","operationId":"api_signal_hub_publishers_api_signal_hub_publishers_get","parameters":[{"name":"category","in":"query","required":false,"schema":{"type":"string","default":"","title":"Category"}},{"name":"platform","in":"query","required":false,"schema":{"type":"string","default":"","title":"Platform"}},{"name":"min_followers","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Min Followers"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-hub/view-mode":{"post":{"summary":"Api Signal Hub Set View Mode","operationId":"api_signal_hub_set_view_mode_api_signal_hub_view_mode_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/signal-hub/brand/templates":{"get":{"summary":"Api Signal Hub Brand Templates","operationId":"api_signal_hub_brand_templates_api_signal_hub_brand_templates_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/signal-hub/brand/templates/{template_type}":{"get":{"summary":"Api Signal Hub Brand Template","operationId":"api_signal_hub_brand_template_api_signal_hub_brand_templates__template_type__get","parameters":[{"name":"template_type","in":"path","required":true,"schema":{"type":"string","title":"Template Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-hub/brand/budget-estimate":{"post":{"summary":"Api Signal Hub Brand Budget","operationId":"api_signal_hub_brand_budget_api_signal_hub_brand_budget_estimate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_BudgetEstimateIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-hub/brand/style-guide":{"get":{"summary":"Api Signal Hub Brand Style Get","operationId":"api_signal_hub_brand_style_get_api_signal_hub_brand_style_guide_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Api Signal Hub Brand Style Post","operationId":"api_signal_hub_brand_style_post_api_signal_hub_brand_style_guide_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_StyleGuideIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/publishers":{"get":{"summary":"Publishers Directory","operationId":"publishers_directory_publishers_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"platform","in":"query","required":false,"schema":{"type":"string","default":"","title":"Platform"}},{"name":"niche","in":"query","required":false,"schema":{"type":"string","default":"","title":"Niche"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/publishers/{slug}":{"get":{"summary":"Publisher Public Profile","operationId":"publisher_public_profile_publishers__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"}}}}}}},"/signals/{signal_type}":{"get":{"summary":"Signal Type Landing","operationId":"signal_type_landing_signals__signal_type__get","parameters":[{"name":"signal_type","in":"path","required":true,"schema":{"type":"string","title":"Signal Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-hub/directory":{"get":{"summary":"Api Signal Hub Directory","operationId":"api_signal_hub_directory_api_signal_hub_directory_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"platform","in":"query","required":false,"schema":{"type":"string","default":"","title":"Platform"}},{"name":"niche","in":"query","required":false,"schema":{"type":"string","default":"","title":"Niche"}},{"name":"min_followers","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Min Followers"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-hub/directory/{slug}":{"get":{"summary":"Api Signal Hub Directory Profile","operationId":"api_signal_hub_directory_profile_api_signal_hub_directory__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"}}}}}}},"/api/signal-hub/publishers/{slug}/inquiries":{"post":{"summary":"Api Signal Hub Create Inquiry","operationId":"api_signal_hub_create_inquiry_api_signal_hub_publishers__slug__inquiries_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_SignalHubInquiryIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-hub/inquiries":{"get":{"summary":"Api Signal Hub Inquiries","operationId":"api_signal_hub_inquiries_api_signal_hub_inquiries_get","parameters":[{"name":"scope","in":"query","required":false,"schema":{"enum":["publisher","brand"],"type":"string","default":"publisher","title":"Scope"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","default":"","title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-hub/inquiries/{inquiry_id}":{"patch":{"summary":"Api Signal Hub Update Inquiry","operationId":"api_signal_hub_update_inquiry_api_signal_hub_inquiries__inquiry_id__patch","parameters":[{"name":"inquiry_id","in":"path","required":true,"schema":{"type":"string","title":"Inquiry Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_SignalHubInquiryStatusIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-hub/reviews":{"post":{"summary":"Api Create Review","operationId":"api_create_review_api_signal_hub_reviews_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_ReviewIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-hub/reviews/{user_id}":{"get":{"summary":"Api Get Reviews","operationId":"api_get_reviews_api_signal_hub_reviews__user_id__get","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-hub/my-review":{"get":{"summary":"Api My Review","operationId":"api_my_review_api_signal_hub_my_review_get","parameters":[{"name":"inquiry_id","in":"query","required":true,"schema":{"type":"string","title":"Inquiry Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/signal-hub/reviews":{"get":{"summary":"Api Admin List Reviews","operationId":"api_admin_list_reviews_api_admin_signal_hub_reviews_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/signal-hub/reviews/{review_id}/hide":{"patch":{"summary":"Api Admin Hide Review","operationId":"api_admin_hide_review_api_admin_signal_hub_reviews__review_id__hide_patch","parameters":[{"name":"review_id","in":"path","required":true,"schema":{"type":"string","title":"Review Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/signal-hub/reviews/{review_id}/unhide":{"patch":{"summary":"Api Admin Unhide Review","operationId":"api_admin_unhide_review_api_admin_signal_hub_reviews__review_id__unhide_patch","parameters":[{"name":"review_id","in":"path","required":true,"schema":{"type":"string","title":"Review Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-hub/notifications":{"get":{"summary":"Api Sh List Notifications","operationId":"api_sh_list_notifications_api_signal_hub_notifications_get","parameters":[{"name":"unread_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Unread Only"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-hub/notifications/count":{"get":{"summary":"Api Sh Notification Count","operationId":"api_sh_notification_count_api_signal_hub_notifications_count_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/signal-hub/notifications/{notification_id}/read":{"post":{"summary":"Api Sh Mark Read","operationId":"api_sh_mark_read_api_signal_hub_notifications__notification_id__read_post","parameters":[{"name":"notification_id","in":"path","required":true,"schema":{"type":"string","title":"Notification Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-hub/notifications/read-all":{"post":{"summary":"Api Sh Mark All Read","operationId":"api_sh_mark_all_read_api_signal_hub_notifications_read_all_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/signal-hub/notifications":{"get":{"summary":"Api Admin Sh Notifications","operationId":"api_admin_sh_notifications_api_admin_signal_hub_notifications_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/earn/affiliate/tier":{"get":{"summary":"Api Earn Aff Tier","operationId":"api_earn_aff_tier_api_earn_affiliate_tier_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/earn/affiliate/products":{"get":{"summary":"Api Earn Aff Products","operationId":"api_earn_aff_products_api_earn_affiliate_products_get","parameters":[{"name":"category","in":"query","required":false,"schema":{"type":"string","default":"","title":"Category"}},{"name":"workspace_id","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Workspace Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Api Earn Aff Product Register","description":"Workspace registers a product for affiliates to promote.","operationId":"api_earn_aff_product_register_api_earn_affiliate_products_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_AffProductIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/earn/affiliate/products/{product_id}":{"get":{"summary":"Api Earn Aff Product Get","operationId":"api_earn_aff_product_get_api_earn_affiliate_products__product_id__get","parameters":[{"name":"product_id","in":"path","required":true,"schema":{"type":"string","title":"Product Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/earn/affiliate/deep-link":{"post":{"summary":"Api Earn Aff Deep Link","operationId":"api_earn_aff_deep_link_api_earn_affiliate_deep_link_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_AffDeepLinkIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/earn/affiliate/links":{"get":{"summary":"Api Earn Aff Links","operationId":"api_earn_aff_links_api_earn_affiliate_links_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/earn/affiliate/dashboard":{"get":{"summary":"Api Earn Aff Dashboard","operationId":"api_earn_aff_dashboard_api_earn_affiliate_dashboard_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/earn/influencer/media-kit":{"get":{"summary":"Api Earn Inf Media Kit","operationId":"api_earn_inf_media_kit_api_earn_influencer_media_kit_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/earn/influencer/media-kit/share":{"post":{"summary":"Api Earn Inf Media Kit Share","operationId":"api_earn_inf_media_kit_share_api_earn_influencer_media_kit_share_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/earn/media-kit/{token}":{"get":{"summary":"Earn Media Kit Public","operationId":"earn_media_kit_public_earn_media_kit__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"name":"lang","in":"query","required":false,"schema":{"type":"string","default":"de","title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/earn/influencer/brief-analyze":{"post":{"summary":"Api Earn Inf Brief Analyze","operationId":"api_earn_inf_brief_analyze_api_earn_influencer_brief_analyze_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_InfBriefAnalyzeIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/earn/influencer/brief-compare":{"post":{"summary":"Api Earn Inf Brief Compare","operationId":"api_earn_inf_brief_compare_api_earn_influencer_brief_compare_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_InfBriefCompareIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/earn/affiliate/payouts":{"get":{"summary":"Api Earn Aff Payouts","operationId":"api_earn_aff_payouts_api_earn_affiliate_payouts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Api Earn Aff Payout Request","operationId":"api_earn_aff_payout_request_api_earn_affiliate_payouts_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_PayoutRequestIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/earn/affiliate/sub-link":{"post":{"summary":"Api Earn Aff Sub Link","operationId":"api_earn_aff_sub_link_api_earn_affiliate_sub_link_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/earn/affiliate/sub-affiliates":{"get":{"summary":"Api Earn Aff Sub List","operationId":"api_earn_aff_sub_list_api_earn_affiliate_sub_affiliates_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/earn/connect/status":{"get":{"summary":"Api Earn Connect Status","operationId":"api_earn_connect_status_api_earn_connect_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/earn/connect/onboard":{"post":{"summary":"Api Earn Connect Onboard","operationId":"api_earn_connect_onboard_api_earn_connect_onboard_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/payouts":{"get":{"summary":"Api Admin Payouts","operationId":"api_admin_payouts_api_admin_payouts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/payouts/{payout_id}/approve":{"post":{"summary":"Api Admin Payout Approve","operationId":"api_admin_payout_approve_api_admin_payouts__payout_id__approve_post","parameters":[{"name":"payout_id","in":"path","required":true,"schema":{"type":"string","title":"Payout Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/payouts/{payout_id}/reject":{"post":{"summary":"Api Admin Payout Reject","operationId":"api_admin_payout_reject_api_admin_payouts__payout_id__reject_post","parameters":[{"name":"payout_id","in":"path","required":true,"schema":{"type":"string","title":"Payout Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_PayoutRejectIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks/stripe/connect":{"post":{"summary":"Api Webhook Stripe Connect","operationId":"api_webhook_stripe_connect_api_webhooks_stripe_connect_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/earn/influencer/deliverables":{"get":{"summary":"Api Earn Inf Dlv List","operationId":"api_earn_inf_dlv_list_api_earn_influencer_deliverables_get","parameters":[{"name":"campaign_id","in":"query","required":false,"schema":{"type":"string","default":"","title":"Campaign Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Api Earn Inf Dlv Create","operationId":"api_earn_inf_dlv_create_api_earn_influencer_deliverables_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_DeliverableIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/earn/influencer/deliverables/{deliverable_id}/submit":{"post":{"summary":"Api Earn Inf Dlv Submit","operationId":"api_earn_inf_dlv_submit_api_earn_influencer_deliverables__deliverable_id__submit_post","parameters":[{"name":"deliverable_id","in":"path","required":true,"schema":{"type":"string","title":"Deliverable Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_DeliverableSubmitIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/earn/influencer/campaign/{campaign_id}/progress":{"get":{"summary":"Api Earn Inf Campaign Progress","operationId":"api_earn_inf_campaign_progress_api_earn_influencer_campaign__campaign_id__progress_get","parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/earn/affiliate/conversion-funnel":{"get":{"summary":"Api Earn Aff Funnel","operationId":"api_earn_aff_funnel_api_earn_affiliate_conversion_funnel_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/earn/affiliate/heatmap":{"get":{"summary":"Api Earn Aff Heatmap","operationId":"api_earn_aff_heatmap_api_earn_affiliate_heatmap_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/earn/affiliate/ab-tests":{"get":{"summary":"Api Earn Aff Ab List","operationId":"api_earn_aff_ab_list_api_earn_affiliate_ab_tests_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Api Earn Aff Ab Create","operationId":"api_earn_aff_ab_create_api_earn_affiliate_ab_tests_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_AbTestIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/earn/affiliate/ab-tests/{test_id}/winner":{"get":{"summary":"Api Earn Aff Ab Winner","operationId":"api_earn_aff_ab_winner_api_earn_affiliate_ab_tests__test_id__winner_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"}}}}}}},"/api/earn/influencer/audience/snapshot":{"get":{"summary":"Api Earn Inf Aud Get","operationId":"api_earn_inf_aud_get_api_earn_influencer_audience_snapshot_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Api Earn Inf Aud Upload","operationId":"api_earn_inf_aud_upload_api_earn_influencer_audience_snapshot_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_AudienceSnapshotIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/earn/influencer/audience/brief-fit":{"post":{"summary":"Api Earn Inf Brief Fit","operationId":"api_earn_inf_brief_fit_api_earn_influencer_audience_brief_fit_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_BriefFitIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/earn/dashboard/combined":{"get":{"summary":"Api Earn Combined Dashboard","operationId":"api_earn_combined_dashboard_api_earn_dashboard_combined_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/earn/dashboard/tax-export":{"get":{"summary":"Api Earn Tax Export","operationId":"api_earn_tax_export_api_earn_dashboard_tax_export_get","parameters":[{"name":"year","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Year"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/earn/portfolio/share":{"post":{"summary":"Api Earn Portfolio Share","operationId":"api_earn_portfolio_share_api_earn_portfolio_share_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/earn/portfolio/{token}":{"get":{"summary":"Earn Portfolio Public","operationId":"earn_portfolio_public_earn_portfolio__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"name":"lang","in":"query","required":false,"schema":{"type":"string","default":"de","title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-hub/publisher/media-kit":{"get":{"summary":"Api Sh Media Kit Get","operationId":"api_sh_media_kit_get_api_signal_hub_publisher_media_kit_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/signal-hub/publisher/case-studies":{"get":{"summary":"Api Sh Case Studies List","operationId":"api_sh_case_studies_list_api_signal_hub_publisher_case_studies_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Api Sh Case Studies Add","operationId":"api_sh_case_studies_add_api_signal_hub_publisher_case_studies_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_CaseStudyIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-hub/publisher/case-studies/{cs_id}":{"delete":{"summary":"Api Sh Case Studies Delete","operationId":"api_sh_case_studies_delete_api_signal_hub_publisher_case_studies__cs_id__delete","parameters":[{"name":"cs_id","in":"path","required":true,"schema":{"type":"string","title":"Cs Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-hub/publisher/audience-insights":{"get":{"summary":"Api Sh Audience Insights Get","operationId":"api_sh_audience_insights_get_api_signal_hub_publisher_audience_insights_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Api Sh Audience Insights Upload","operationId":"api_sh_audience_insights_upload_api_signal_hub_publisher_audience_insights_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_AudienceInsightsIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-hub/briefs/{brief_id}/publisher-shortlist":{"get":{"summary":"Api Sh Publisher Shortlist","operationId":"api_sh_publisher_shortlist_api_signal_hub_briefs__brief_id__publisher_shortlist_get","parameters":[{"name":"brief_id","in":"path","required":true,"schema":{"type":"string","title":"Brief 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"}}}}}}},"/api/signal-hub/publisher/recommended-briefs":{"get":{"summary":"Api Sh Recommended Briefs","operationId":"api_sh_recommended_briefs_api_signal_hub_publisher_recommended_briefs_get","parameters":[{"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"}}}}}}},"/api/signal-hub/briefs/{brief_id}/match-score":{"get":{"summary":"Api Sh Match Score","operationId":"api_sh_match_score_api_signal_hub_briefs__brief_id__match_score_get","parameters":[{"name":"brief_id","in":"path","required":true,"schema":{"type":"string","title":"Brief Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-hub/content/submissions":{"post":{"summary":"Api Sh Content Submit","operationId":"api_sh_content_submit_api_signal_hub_content_submissions_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_ContentSubmissionIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Api Sh Content List","operationId":"api_sh_content_list_api_signal_hub_content_submissions_get","parameters":[{"name":"brief_id","in":"query","required":false,"schema":{"type":"string","default":"","title":"Brief Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-hub/content/submissions/{sub_id}/approve":{"post":{"summary":"Api Sh Content Approve","operationId":"api_sh_content_approve_api_signal_hub_content_submissions__sub_id__approve_post","parameters":[{"name":"sub_id","in":"path","required":true,"schema":{"type":"string","title":"Sub Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-hub/content/submissions/{sub_id}/reject":{"post":{"summary":"Api Sh Content Reject","operationId":"api_sh_content_reject_api_signal_hub_content_submissions__sub_id__reject_post","parameters":[{"name":"sub_id","in":"path","required":true,"schema":{"type":"string","title":"Sub Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-hub/content/submissions/{sub_id}/revision":{"post":{"summary":"Api Sh Content Revision","operationId":"api_sh_content_revision_api_signal_hub_content_submissions__sub_id__revision_post","parameters":[{"name":"sub_id","in":"path","required":true,"schema":{"type":"string","title":"Sub Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-hub/content/submissions/{sub_id}/comments":{"post":{"summary":"Api Sh Content Comment","operationId":"api_sh_content_comment_api_signal_hub_content_submissions__sub_id__comments_post","parameters":[{"name":"sub_id","in":"path","required":true,"schema":{"type":"string","title":"Sub Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_ContentCommentIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Api Sh Content Comments List","operationId":"api_sh_content_comments_list_api_signal_hub_content_submissions__sub_id__comments_get","parameters":[{"name":"sub_id","in":"path","required":true,"schema":{"type":"string","title":"Sub Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-hub/brand/review-dashboard":{"get":{"summary":"Api Sh Brand Review Dashboard","operationId":"api_sh_brand_review_dashboard_api_signal_hub_brand_review_dashboard_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/signal-hub/analytics/reach":{"post":{"summary":"Api Sh Analytics Reach Record","operationId":"api_sh_analytics_reach_record_api_signal_hub_analytics_reach_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_ReachRecordIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-hub/analytics/campaigns/{campaign_id}/reach":{"get":{"summary":"Api Sh Analytics Campaign Reach","operationId":"api_sh_analytics_campaign_reach_api_signal_hub_analytics_campaigns__campaign_id__reach_get","parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-hub/analytics/campaigns/{campaign_id}/roi":{"get":{"summary":"Api Sh Analytics Roi","operationId":"api_sh_analytics_roi_api_signal_hub_analytics_campaigns__campaign_id__roi_get","parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}},{"name":"budget_cents","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Budget Cents"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-hub/analytics/campaigns/{campaign_id}/ranking":{"get":{"summary":"Api Sh Analytics Ranking","operationId":"api_sh_analytics_ranking_api_signal_hub_analytics_campaigns__campaign_id__ranking_get","parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-hub/analytics/brand/summary":{"get":{"summary":"Api Sh Analytics Brand Summary","operationId":"api_sh_analytics_brand_summary_api_signal_hub_analytics_brand_summary_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/signal-hub/publisher/earnings":{"get":{"summary":"Api Sh Earnings Dashboard","operationId":"api_sh_earnings_dashboard_api_signal_hub_publisher_earnings_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Api Sh Earnings Add","operationId":"api_sh_earnings_add_api_signal_hub_publisher_earnings_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_EarningsRecordIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-hub/publisher/earnings/list":{"get":{"summary":"Api Sh Earnings List","operationId":"api_sh_earnings_list_api_signal_hub_publisher_earnings_list_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/signal-hub/publisher/invoices":{"get":{"summary":"Api Sh Invoices List","operationId":"api_sh_invoices_list_api_signal_hub_publisher_invoices_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Api Sh Invoice Generate","operationId":"api_sh_invoice_generate_api_signal_hub_publisher_invoices_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_InvoiceIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-hub/brand/campaigns":{"get":{"summary":"Api Sh Brand Campaigns","operationId":"api_sh_brand_campaigns_api_signal_hub_brand_campaigns_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/signal-hub/brand/cross-campaign-analytics":{"get":{"summary":"Api Sh Cross Campaign Analytics","operationId":"api_sh_cross_campaign_analytics_api_signal_hub_brand_cross_campaign_analytics_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/signal-hub/publisher/{pub_id}/safety-score":{"get":{"summary":"Api Sh Safety Score","operationId":"api_sh_safety_score_api_signal_hub_publisher__pub_id__safety_score_get","parameters":[{"name":"pub_id","in":"path","required":true,"schema":{"type":"integer","title":"Pub Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-hub/publisher/safety-flags":{"post":{"summary":"Api Sh Safety Flags Set","operationId":"api_sh_safety_flags_set_api_signal_hub_publisher_safety_flags_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_SafetyFlagsIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-hub/brand/publisher-list":{"get":{"summary":"Api Sh Publisher List Get","operationId":"api_sh_publisher_list_get_api_signal_hub_brand_publisher_list_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","default":"","title":"Status"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Api Sh Publisher List Set","operationId":"api_sh_publisher_list_set_api_signal_hub_brand_publisher_list_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_PublisherListIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-hub/payments":{"post":{"summary":"Api Sh Payment Create","operationId":"api_sh_payment_create_api_signal_hub_payments_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_PaymentIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Api Sh Payments List","operationId":"api_sh_payments_list_api_signal_hub_payments_get","parameters":[{"name":"campaign_id","in":"query","required":false,"schema":{"type":"string","default":"","title":"Campaign Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-hub/contracts":{"post":{"summary":"Api Sh Contract Create","operationId":"api_sh_contract_create_api_signal_hub_contracts_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__main___ContractIn__2"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-hub/contracts/sign":{"post":{"summary":"Api Sh Contract Sign","operationId":"api_sh_contract_sign_api_signal_hub_contracts_sign_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__main___SignContractIn__2"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-hub/contracts/{contract_id}":{"get":{"summary":"Api Sh Contract Get","operationId":"api_sh_contract_get_api_signal_hub_contracts__contract_id__get","parameters":[{"name":"contract_id","in":"path","required":true,"schema":{"type":"string","title":"Contract Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-hub/unified-analytics":{"get":{"summary":"Api Sh Unified Analytics","operationId":"api_sh_unified_analytics_api_signal_hub_unified_analytics_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/signal-hub/ai-partner-recommendations":{"get":{"summary":"Api Sh Ai Partner Recommendations","operationId":"api_sh_ai_partner_recommendations_api_signal_hub_ai_partner_recommendations_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":5,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/publisher/awin/programmes":{"get":{"summary":"Api Awin Programmes List","operationId":"api_awin_programmes_list_api_publisher_awin_programmes_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"search","in":"query","required":false,"schema":{"type":"string","default":"","title":"Search"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/publisher/awin/sync":{"post":{"summary":"Api Awin Programmes Sync","operationId":"api_awin_programmes_sync_api_publisher_awin_sync_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/publisher/awin/links":{"post":{"summary":"Api Awin Link Create","operationId":"api_awin_link_create_api_publisher_awin_links_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_AwinLinkCreateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Api Awin Links List","operationId":"api_awin_links_list_api_publisher_awin_links_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/publisher/awin/creatives/{programme_id}":{"get":{"summary":"Api Awin Creatives","operationId":"api_awin_creatives_api_publisher_awin_creatives__programme_id__get","parameters":[{"name":"programme_id","in":"path","required":true,"schema":{"type":"string","title":"Programme Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/publisher/awin/links/{link_id}/click":{"post":{"summary":"Api Awin Link Click","operationId":"api_awin_link_click_api_publisher_awin_links__link_id__click_post","parameters":[{"name":"link_id","in":"path","required":true,"schema":{"type":"integer","title":"Link Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/publisher/awin/insights":{"get":{"summary":"Api Awin Insights","operationId":"api_awin_insights_api_publisher_awin_insights_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/publisher/awin/postback":{"post":{"summary":"Api Awin Postback","description":"Awin POST JSON postback — called by Awin on every transaction.\n\nAwin postbacks aren't cryptographically signed; the shared-secret query\nparam (?secret=...) must be added to the postback URL configured in the\nAwin dashboard — see AWIN_POSTBACK_SECRET.","operationId":"api_awin_postback_api_publisher_awin_postback_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/publisher/awin/performance":{"get":{"summary":"Api Awin Performance","operationId":"api_awin_performance_api_publisher_awin_performance_get","parameters":[{"name":"programme_id","in":"query","required":false,"schema":{"type":"string","default":"","title":"Programme Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signals/cross-platform/generate":{"post":{"summary":"Api Cross Signals Generate","operationId":"api_cross_signals_generate_api_signals_cross_platform_generate_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/publisher/impact/postback":{"post":{"summary":"Api Impact Postback","description":"Impact.com server-side postback — called on every conversion.\n\nImpact.com postbacks aren't cryptographically signed; the shared-secret\nquery param (?secret=...) must be added to the postback URL configured\nin the Impact.com dashboard — see IMPACT_POSTBACK_SECRET.","operationId":"api_impact_postback_api_publisher_impact_postback_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/publisher/revenue-dashboard":{"get":{"summary":"Api Revenue Dashboard","description":"Multi-network revenue dashboard: Awin + Impact.com aggregated.","operationId":"api_revenue_dashboard_api_publisher_revenue_dashboard_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/publisher/recommendations":{"get":{"summary":"Api Programme Recommendations","operationId":"api_programme_recommendations_api_publisher_recommendations_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":5,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signals/cross-platform/opportunities":{"get":{"summary":"Api Cross Signals Opportunities","operationId":"api_cross_signals_opportunities_api_signals_cross_platform_opportunities_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"}}}}}}},"/api/signals/ad-scout/search":{"post":{"summary":"Api Ad Scout Search","operationId":"api_ad_scout_search_api_signals_ad_scout_search_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_AdScoutSearchIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signals/ad-scout/results":{"get":{"summary":"Api Ad Scout Results","operationId":"api_ad_scout_results_api_signals_ad_scout_results_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signals/ad-scout/to-lead":{"post":{"summary":"Api Ad Scout To Lead","operationId":"api_ad_scout_to_lead_api_signals_ad_scout_to_lead_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_AdScoutToLeadIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/leads/{lead_id}/revenue-score":{"get":{"summary":"Api Lead Revenue Score","operationId":"api_lead_revenue_score_api_leads__lead_id__revenue_score_get","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/leads/revenue-top":{"get":{"summary":"Api Leads Revenue Top","operationId":"api_leads_revenue_top_api_leads_revenue_top_get","parameters":[{"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"}}}}}}},"/api/publisher/revenue-goals":{"get":{"summary":"Api Revenue Goals Get","operationId":"api_revenue_goals_get_api_publisher_revenue_goals_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Api Revenue Goals Set","operationId":"api_revenue_goals_set_api_publisher_revenue_goals_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_RevenueGoalIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/publisher/linkedin-articles":{"get":{"summary":"Api Linkedin Articles","operationId":"api_linkedin_articles_api_publisher_linkedin_articles_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/publisher/linkedin-post":{"post":{"summary":"Api Linkedin Post Generate","operationId":"api_linkedin_post_generate_api_publisher_linkedin_post_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_LinkedInPostIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/publisher/awin/discover":{"get":{"summary":"Api Awin Discover","operationId":"api_awin_discover_api_publisher_awin_discover_get","parameters":[{"name":"search","in":"query","required":false,"schema":{"type":"string","default":"","title":"Search"}},{"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"}}}}}}},"/api/publisher/awin/join/{programme_id}":{"post":{"summary":"Api Awin Join","operationId":"api_awin_join_api_publisher_awin_join__programme_id__post","parameters":[{"name":"programme_id","in":"path","required":true,"schema":{"type":"string","title":"Programme Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signals/feed":{"get":{"summary":"Api Signals Feed","description":"Top recent signals for the Revenue Intelligence dashboard feed.","operationId":"api_signals_feed_api_signals_feed_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":8,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/crm/at-risk":{"get":{"summary":"Api Crm At Risk","description":"Return at-risk revenue opportunities — high-value deals with low engagement or stagnation.","operationId":"api_crm_at_risk_api_crm_at_risk_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":8,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/investor/signals":{"get":{"summary":"Api Investor Signals","description":"Investor-mode signal intelligence panel — hiring, funding, revenue signals.","operationId":"api_investor_signals_api_investor_signals_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/crm/revenue-forecast":{"get":{"summary":"Api Revenue Forecast","description":"Forward-looking revenue forecast: CRM deals × confidence + affiliate pipeline.","operationId":"api_revenue_forecast_api_crm_revenue_forecast_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/crm/revenue-copilot":{"get":{"summary":"Api Revenue Copilot","description":"AI Revenue Copilot — synthesizes signals, CRM and affiliate data into insights.","operationId":"api_revenue_copilot_api_crm_revenue_copilot_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/publisher/awin/debug":{"get":{"summary":"Api Awin Debug","description":"Debug: shows raw Awin API response + env var state.","operationId":"api_awin_debug_api_publisher_awin_debug_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/crm/demo-intelligence":{"get":{"summary":"Api Demo Intelligence","description":"Returns realistic demo data for investor pitches when real data is sparse.","operationId":"api_demo_intelligence_api_crm_demo_intelligence_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/cron/signal-digest":{"post":{"summary":"Cron Signal Digest","operationId":"cron_signal_digest_api_cron_signal_digest_post","parameters":[{"name":"x-cron-secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Cron-Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Cron Signal Digest Api Cron Signal Digest Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/signal-digest/send-test":{"post":{"summary":"Api Signal Digest Test","description":"Send test digest to the current user.","operationId":"api_signal_digest_test_api_admin_signal_digest_send_test_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Signal Digest Test Api Admin Signal Digest Send Test Post"}}}}}}},"/demo":{"get":{"summary":"Demo Shortcut","description":"Short URL for investor demos — auto-opens in investor mode with demo data.","operationId":"demo_shortcut_demo_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/publisher/awin/smart-discover":{"get":{"summary":"Api Awin Smart Discover","description":"Discover top B2B-relevant unjoined Awin programmes across multiple categories.","operationId":"api_awin_smart_discover_api_publisher_awin_smart_discover_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/publisher/awin/batch-join":{"post":{"summary":"Api Awin Batch Join","description":"Join multiple Awin programmes at once.","operationId":"api_awin_batch_join_api_publisher_awin_batch_join_post","requestBody":{"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signals/segments":{"get":{"summary":"Api Segments List","operationId":"api_segments_list_api_signals_segments_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Api Segments Create","operationId":"api_segments_create_api_signals_segments_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_SegmentCreateIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signals/segments/preview":{"get":{"summary":"Api Segment Preview","operationId":"api_segment_preview_api_signals_segments_preview_get","parameters":[{"name":"source","in":"query","required":false,"schema":{"type":"string","default":"","title":"Source"}},{"name":"signal_type","in":"query","required":false,"schema":{"type":"string","default":"","title":"Signal Type"}},{"name":"score_min","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Score Min"}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signals/segments/{segment_id}/publish":{"post":{"summary":"Api Segment Publish","operationId":"api_segment_publish_api_signals_segments__segment_id__publish_post","parameters":[{"name":"segment_id","in":"path","required":true,"schema":{"type":"string","title":"Segment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signals/segments/{segment_id}":{"delete":{"summary":"Api Segment Delete","operationId":"api_segment_delete_api_signals_segments__segment_id__delete","parameters":[{"name":"segment_id","in":"path","required":true,"schema":{"type":"string","title":"Segment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-exchange/segments":{"get":{"summary":"Api Exchange Segments","description":"Public marketplace segments — anonymized.","operationId":"api_exchange_segments_api_signal_exchange_segments_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"}}}}}}},"/tools/{product_slug}":{"get":{"summary":"Tools Page","description":"Affiliate product landing pages — SEO-optimized, no login required.","operationId":"tools_page_tools__product_slug__get","parameters":[{"name":"product_slug","in":"path","required":true,"schema":{"type":"string","title":"Product Slug"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tools":{"get":{"summary":"Tools Index","description":"All affiliate tools overview page.","operationId":"tools_index_tools_get","parameters":[{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/publisher/newsletter/preview":{"get":{"summary":"Api Newsletter Preview","description":"Return newsletter HTML preview for current workspace.","operationId":"api_newsletter_preview_api_publisher_newsletter_preview_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/publisher/newsletter/send-test":{"post":{"summary":"Api Newsletter Send Test","description":"Send test newsletter to specified email.","operationId":"api_newsletter_send_test_api_publisher_newsletter_send_test_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_NewsletterSendIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cron/retargeting-emails":{"post":{"summary":"Cron Retargeting","operationId":"cron_retargeting_api_cron_retargeting_emails_post","parameters":[{"name":"x-cron-secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Cron-Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Cron Retargeting Api Cron Retargeting Emails Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/retargeting/run-test":{"post":{"summary":"Api Retargeting Test","description":"Run retargeting for current workspace (test).","operationId":"api_retargeting_test_api_admin_retargeting_run_test_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Retargeting Test Api Admin Retargeting Run Test Post"}}}}}}},"/api/publisher/affiliate-stats":{"get":{"summary":"Api Affiliate Stats","description":"Per-tool click stats + daily series for Publisher Hub performance tab.","operationId":"api_affiliate_stats_api_publisher_affiliate_stats_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":365,"minimum":1,"default":30,"title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Affiliate Stats Api Publisher Affiliate Stats Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/signal-exchange":{"get":{"summary":"Marketplace Page","description":"Public Signal Exchange Marketplace — buyer-facing page.","operationId":"marketplace_page_signal_exchange_get","parameters":[{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-exchange/purchase":{"post":{"summary":"Api Signal Exchange Purchase V2","description":"Buy a published signal segment (Sprint 293 — with revenue split).","operationId":"api_signal_exchange_purchase_v2_api_signal_exchange_purchase_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_PurchaseIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Signal Exchange Purchase V2 Api Signal Exchange Purchase Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signal-exchange/purchases":{"get":{"summary":"Api Signal Exchange Purchases","description":"List segments purchased by current workspace.","operationId":"api_signal_exchange_purchases_api_signal_exchange_purchases_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Signal Exchange Purchases Api Signal Exchange Purchases Get"}}}}}}},"/publisher/{ref_code}":{"get":{"summary":"Publisher Profile Page","description":"Public publisher profile page with personal affiliate links.","operationId":"publisher_profile_page_publisher__ref_code__get","parameters":[{"name":"ref_code","in":"path","required":true,"schema":{"type":"string","title":"Ref Code"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/publisher/my-profile":{"get":{"summary":"Api Publisher My Profile","description":"Return current user's publisher profile + stats.","operationId":"api_publisher_my_profile_api_publisher_my_profile_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":365,"minimum":1,"default":30,"title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Publisher My Profile Api Publisher My Profile Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspace/freelancer-status":{"get":{"summary":"Api Freelancer Status","description":"Return whether current workspace is in freelancer mode.\n\nRespects freelancer_mode_override (NULL=auto, 1=force on, 0=force off).\nMaster admins are never shown freelancer mode.","operationId":"api_freelancer_status_api_workspace_freelancer_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Freelancer Status Api Workspace Freelancer Status Get"}}}}}}},"/api/workspace/freelancer-mode":{"patch":{"summary":"Api Set Freelancer Mode","description":"Override freelancer mode for this workspace. owner/admin only.","operationId":"api_set_freelancer_mode_api_workspace_freelancer_mode_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_FreelancerModeIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Set Freelancer Mode Api Workspace Freelancer Mode Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/migrate-to-postgres":{"post":{"summary":"Api Migrate To Postgres","description":"One-time migration: copy all SQLite data to PostgreSQL.\n\nOnly runs when DATABASE_URL is set AND SQLite file exists.\nMaster-only. Idempotent (ON CONFLICT DO NOTHING).","operationId":"api_migrate_to_postgres_api_admin_migrate_to_postgres_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Migrate To Postgres Api Admin Migrate To Postgres Post"}}}}}}},"/api/leads/{lead_id}/files":{"post":{"summary":"Api Lead File Upload","description":"Upload a file attachment for a lead.","operationId":"api_lead_file_upload_api_leads__lead_id__files_post","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_api_lead_file_upload_api_leads__lead_id__files_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Lead File Upload Api Leads  Lead Id  Files Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Api Lead Files List","operationId":"api_lead_files_list_api_leads__lead_id__files_get","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Lead Files List Api Leads  Lead Id  Files Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/leads/{lead_id}/files/{file_id}/download":{"get":{"summary":"Api Lead File Download","operationId":"api_lead_file_download_api_leads__lead_id__files__file_id__download_get","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}},{"name":"file_id","in":"path","required":true,"schema":{"type":"string","title":"File Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/leads/{lead_id}/files/{file_id}":{"delete":{"summary":"Api Lead File Delete","operationId":"api_lead_file_delete_api_leads__lead_id__files__file_id__delete","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}},{"name":"file_id","in":"path","required":true,"schema":{"type":"string","title":"File Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Lead File Delete Api Leads  Lead Id  Files  File Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/register":{"get":{"summary":"Register Page","description":"Public registration page — redirects to admin/signup with plan context.","operationId":"register_page_register_get","parameters":[{"name":"plan","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}},{"name":"ref","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ref"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/whatsapp/waha/status":{"get":{"summary":"Api Waha Status","description":"WAHA session status + QR code if pending.","operationId":"api_waha_status_api_whatsapp_waha_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Waha Status Api Whatsapp Waha Status Get"}}}}}}},"/api/whatsapp/waha/qr":{"get":{"summary":"Api Waha Qr","description":"Get QR code for WhatsApp Business App scanning.","operationId":"api_waha_qr_api_whatsapp_waha_qr_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Waha Qr Api Whatsapp Waha Qr Get"}}}}}}},"/api/whatsapp/waha/register-webhook":{"post":{"summary":"Api Waha Register Webhook","description":"Register Pragma as WAHA webhook receiver.","operationId":"api_waha_register_webhook_api_whatsapp_waha_register_webhook_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Waha Register Webhook Api Whatsapp Waha Register Webhook Post"}}}}}}},"/api/reporting/roi-metrics":{"get":{"summary":"Api Roi Summary","description":"Return ROI metrics for the current workspace.","operationId":"api_roi_summary_api_reporting_roi_metrics_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Roi Summary Api Reporting Roi Metrics Get"}}}}}}},"/api/agent/n8n-templates":{"get":{"summary":"Api Agent N8N Templates","description":"List downloadable n8n workflow templates for agentic AI loops.","operationId":"api_agent_n8n_templates_api_agent_n8n_templates_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Agent N8N Templates Api Agent N8N Templates Get"}}}}}}},"/api/agent/signal-action":{"post":{"summary":"Api Agent Signal Action","description":"AI agent endpoint: promote, ignore, or set a signal to reviewing. Auth via X-Api-Key.","operationId":"api_agent_signal_action_api_agent_signal_action_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentSignalActionIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Agent Signal Action Api Agent Signal Action Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agent/blockchain/recent-activity":{"get":{"summary":"Api Agent Blockchain Recent Activity","description":"AI agent endpoint: return recent blockchain auction and bid activity. Auth via X-Api-Key.\nOptional since_unix (epoch seconds) filters bids created after that timestamp.","operationId":"api_agent_blockchain_recent_activity_api_agent_blockchain_recent_activity_get","parameters":[{"name":"hours","in":"query","required":false,"schema":{"type":"integer","default":24,"title":"Hours"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Limit"}},{"name":"since_unix","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Since Unix"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Agent Blockchain Recent Activity Api Agent Blockchain Recent Activity Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agent/leadfeeder/pending-imports":{"get":{"summary":"Api Agent Leadfeeder Pending","description":"Return Leadfeeder signals not yet promoted to leads. Auth via X-Api-Key.","operationId":"api_agent_leadfeeder_pending_api_agent_leadfeeder_pending_imports_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Agent Leadfeeder Pending Api Agent Leadfeeder Pending Imports Get"}}}}}}},"/api/agent/leadfeeder/promote-to-lead":{"post":{"summary":"Api Agent Leadfeeder Promote","description":"Convert a Leadfeeder inbox signal into a CRM lead. Idempotent. Auth via X-Api-Key.","operationId":"api_agent_leadfeeder_promote_api_agent_leadfeeder_promote_to_lead_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_LfPromoteIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Agent Leadfeeder Promote Api Agent Leadfeeder Promote To Lead Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agent/apify/match-candidates":{"get":{"summary":"Api Agent Apify Match Candidates","description":"Return unprocessed Apify signals with potential lead matches by domain/company.\nAuth via X-Api-Key.","operationId":"api_agent_apify_match_candidates_api_agent_apify_match_candidates_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Agent Apify Match Candidates Api Agent Apify Match Candidates Get"}}}}}}},"/api/agent/apify/link-to-lead":{"post":{"summary":"Api Agent Apify Link","description":"Link an Apify signal to an existing lead and boost its AI score. Auth via X-Api-Key.","operationId":"api_agent_apify_link_api_agent_apify_link_to_lead_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_ApifyLinkIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Agent Apify Link Api Agent Apify Link To Lead Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agent/leads-for-prioritization":{"get":{"summary":"Api Agent Leads Prioritization","description":"Return active leads with context for daily AI prioritization. Auth via X-Api-Key.","operationId":"api_agent_leads_prioritization_api_agent_leads_for_prioritization_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Agent Leads Prioritization Api Agent Leads For Prioritization Get"}}}}}}},"/api/automation/triggers":{"get":{"summary":"Api Automation Triggers","description":"List available automation triggers for Zapier/Make/n8n.","operationId":"api_automation_triggers_api_automation_triggers_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Automation Triggers Api Automation Triggers Get"}}}}}}},"/api/zapier/triggers/lead-stage-changed":{"get":{"summary":"Api Zapier Trigger Stage Changed","description":"Zapier polling trigger: leads whose stage changed in the last hour.","operationId":"api_zapier_trigger_stage_changed_api_zapier_triggers_lead_stage_changed_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"type":"object"},"type":"array","title":"Response Api Zapier Trigger Stage Changed Api Zapier Triggers Lead Stage Changed Get"}}}}}}},"/api/referral/stats":{"get":{"summary":"Api Referral Stats","description":"Return referral program stats for current user.","operationId":"api_referral_stats_api_referral_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Referral Stats Api Referral Stats Get"}}}}}}},"/api/referral/pro-reward":{"post":{"summary":"Api Referral Pro Reward","description":"Trigger Pro referral reward (called after payment confirmed).","operationId":"api_referral_pro_reward_api_referral_pro_reward_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Referral Pro Reward Api Referral Pro Reward Post"}}}}}}},"/api/signals/generate-outreach":{"post":{"summary":"Api Signal Generate Outreach","description":"Generate a personalized outreach message for a signal using AI.","operationId":"api_signal_generate_outreach_api_signals_generate_outreach_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_OutreachGenerateIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Signal Generate Outreach Api Signals Generate Outreach Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signals/ai-source-suggest":{"post":{"summary":"Api Signals Ai Source Suggest","description":"Return AI-powered signal-source recommendations based on ICP description.","operationId":"api_signals_ai_source_suggest_api_signals_ai_source_suggest_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_AiSourceSuggestIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signals/seed-demo":{"post":{"summary":"Api Signals Seed Demo","description":"Seed 10 realistic demo signals into the workspace inbox for onboarding/testing.","operationId":"api_signals_seed_demo_api_signals_seed_demo_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/tracking/config":{"get":{"summary":"Api Tracking Config","operationId":"api_tracking_config_api_tracking_config_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/tracking/rotate-token":{"post":{"summary":"Api Tracking Rotate Token","operationId":"api_tracking_rotate_token_api_tracking_rotate_token_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/integrations/leadfeeder/config":{"get":{"summary":"Api Leadfeeder Config","operationId":"api_leadfeeder_config_api_integrations_leadfeeder_config_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/integrations/leadfeeder/rotate-token":{"post":{"summary":"Api Leadfeeder Rotate","operationId":"api_leadfeeder_rotate_api_integrations_leadfeeder_rotate_token_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/integrations/kodo/import":{"post":{"summary":"Api Kodo Import","operationId":"api_kodo_import_api_integrations_kodo_import_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_api_kodo_import_api_integrations_kodo_import_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/integrations/kodo/imports":{"get":{"summary":"Api Kodo List Imports","operationId":"api_kodo_list_imports_api_integrations_kodo_imports_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"ActivityIn":{"properties":{"type":{"type":"string","maxLength":40,"minLength":2,"title":"Type","default":"note"},"title":{"type":"string","maxLength":240,"minLength":1,"title":"Title"},"body":{"type":"string","maxLength":4000,"title":"Body","default":""},"contact_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Contact Id"},"company_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Company Id"},"deal_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Deal Id"},"lead_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Lead Id"},"channel":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Channel"},"direction":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Direction"},"due_at":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Due At"},"occurred_at":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Occurred At"}},"type":"object","required":["title"],"title":"ActivityIn"},"AdminCreditGrantIn":{"properties":{"target_user_id":{"type":"integer","title":"Target User Id"},"amount":{"type":"integer","maximum":10000.0,"minimum":-10000.0,"title":"Amount"},"reason":{"type":"string","maxLength":200,"minLength":1,"title":"Reason"}},"type":"object","required":["target_user_id","amount","reason"],"title":"AdminCreditGrantIn"},"AdminKitGrantIn":{"properties":{"workspace_id":{"type":"integer","title":"Workspace Id"},"kit_key":{"type":"string","maxLength":80,"minLength":2,"title":"Kit Key"}},"type":"object","required":["workspace_id","kit_key"],"title":"AdminKitGrantIn"},"AgentSignalActionIn":{"properties":{"signal_id":{"type":"integer","title":"Signal Id"},"action":{"type":"string","title":"Action"},"ai_reasoning":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Ai Reasoning"},"ai_score":{"anyOf":[{"type":"integer","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Ai Score"}},"type":"object","required":["signal_id","action"],"title":"AgentSignalActionIn"},"AgentUpdateLeadIn":{"properties":{"lead_id":{"type":"integer","title":"Lead Id"},"company_info":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Info"},"linkedin_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Linkedin Url"},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website"},"industry":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Industry"},"company_size":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Size"},"budget_range":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Budget Range"},"market_segment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Market Segment"},"sentiment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sentiment"},"ai_tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Ai Tags"},"ai_score":{"anyOf":[{"type":"integer","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Ai Score"},"stage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stage"},"next_action":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Action"},"note":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Note"},"note_type":{"type":"string","title":"Note Type","default":"note"},"follow_up_task":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Follow Up Task"},"follow_up_due_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Follow Up Due Date"},"follow_up_days":{"anyOf":[{"type":"integer","maximum":365.0,"minimum":1.0},{"type":"null"}],"title":"Follow Up Days"}},"type":"object","required":["lead_id"],"title":"AgentUpdateLeadIn"},"AiApprovalCreateIn":{"properties":{"action_type":{"type":"string","title":"Action Type"},"payload":{"type":"object","title":"Payload","default":{}}},"type":"object","required":["action_type"],"title":"AiApprovalCreateIn"},"AiChatIn":{"properties":{"message":{"type":"string","maxLength":2000,"minLength":2,"title":"Message"},"lead_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Lead Id"}},"type":"object","required":["message"],"title":"AiChatIn"},"AiGovernanceIn":{"properties":{"auto_send_enabled":{"type":"boolean","title":"Auto Send Enabled","default":false},"human_review_required":{"type":"boolean","title":"Human Review Required","default":true},"data_minimisation_enabled":{"type":"boolean","title":"Data Minimisation Enabled","default":true},"governance_note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Governance Note","default":""}},"type":"object","title":"AiGovernanceIn"},"AiPiiConfigIn":{"properties":{"enabled":{"type":"boolean","title":"Enabled","default":true},"opt_out":{"type":"boolean","title":"Opt Out","default":false}},"type":"object","title":"AiPiiConfigIn"},"AnalyzeIn":{"properties":{"target_lang":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Target Lang"}},"type":"object","title":"AnalyzeIn"},"ApiKeyCreateIn":{"properties":{"name":{"type":"string","maxLength":160,"minLength":1,"title":"Name"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"}},"type":"object","required":["name"],"title":"ApiKeyCreateIn"},"ApifyTriggerIn":{"properties":{"domains":{"items":{"type":"string"},"type":"array","title":"Domains","default":[]},"industries":{"items":{"type":"string"},"type":"array","title":"Industries","default":[]},"actor_id":{"type":"string","title":"Actor Id","default":"pragmacrm~b2b-signal-monitor"}},"type":"object","title":"ApifyTriggerIn"},"AuctionBidIn":{"properties":{"buyer_id":{"type":"string","title":"Buyer Id"},"bid_token":{"type":"string","title":"Bid Token"},"amount_cents":{"type":"integer","title":"Amount Cents"}},"type":"object","required":["buyer_id","bid_token","amount_cents"],"title":"AuctionBidIn"},"AuctionCreateIn":{"properties":{"lead_user_id":{"type":"integer","title":"Lead User Id"},"duration_hours":{"type":"integer","title":"Duration Hours","default":24},"reserve_price_cents":{"type":"integer","title":"Reserve Price Cents","default":500}},"type":"object","required":["lead_user_id"],"title":"AuctionCreateIn"},"AuctionModeIn":{"properties":{"auction_mode":{"type":"boolean","title":"Auction Mode"},"bid_min_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Bid Min Cents"},"bid_deadline_hours":{"type":"integer","title":"Bid Deadline Hours","default":48}},"type":"object","required":["auction_mode"],"title":"AuctionModeIn"},"AutomationRuleIn":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"trigger":{"type":"string","maxLength":80,"minLength":1,"title":"Trigger"},"conditions":{"items":{"type":"object"},"type":"array","title":"Conditions"},"actions":{"items":{"type":"object"},"type":"array","title":"Actions"},"enabled":{"type":"boolean","title":"Enabled","default":true}},"type":"object","required":["name","trigger"],"title":"AutomationRuleIn"},"AutomationRuleUpdateIn":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Name"},"trigger":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Trigger"},"conditions":{"anyOf":[{"items":{"type":"object"},"type":"array"},{"type":"null"}],"title":"Conditions"},"actions":{"anyOf":[{"items":{"type":"object"},"type":"array"},{"type":"null"}],"title":"Actions"},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"}},"type":"object","title":"AutomationRuleUpdateIn"},"BidIn":{"properties":{"bid_cents":{"type":"integer","title":"Bid Cents"}},"type":"object","required":["bid_cents"],"title":"BidIn"},"BillingCancelIn":{"properties":{"reason":{"type":"string","title":"Reason","default":""}},"type":"object","title":"BillingCancelIn"},"BillingDeleteNowIn":{"properties":{"confirmed":{"type":"boolean","title":"Confirmed","default":false}},"type":"object","title":"BillingDeleteNowIn"},"BillingSelectIn":{"properties":{"plan":{"type":"string","pattern":"^(starter|pro|enterprise)$","title":"Plan"}},"type":"object","required":["plan"],"title":"BillingSelectIn"},"Body_admin_login_submit_admin_login_post":{"properties":{"email":{"type":"string","title":"Email"},"password":{"type":"string","title":"Password"},"next":{"type":"string","title":"Next","default":"/"},"cf-turnstile-response":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cf-Turnstile-Response"}},"type":"object","required":["email","password"],"title":"Body_admin_login_submit_admin_login_post"},"Body_admin_signup_submit_admin_signup_post":{"properties":{"email":{"type":"string","title":"Email"},"password":{"type":"string","title":"Password"},"display_name":{"type":"string","title":"Display Name","default":""},"workspace_name":{"type":"string","title":"Workspace Name","default":""},"invite_token":{"type":"string","title":"Invite Token","default":""},"next":{"type":"string","title":"Next","default":"/"},"plan":{"type":"string","title":"Plan","default":"freelancer"},"ref":{"type":"string","title":"Ref","default":""},"partner":{"type":"string","title":"Partner","default":""},"putm_source":{"type":"string","title":"Putm Source","default":""},"putm_medium":{"type":"string","title":"Putm Medium","default":""},"putm_campaign":{"type":"string","title":"Putm Campaign","default":""},"cf-turnstile-response":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cf-Turnstile-Response"}},"type":"object","required":["email","password"],"title":"Body_admin_signup_submit_admin_signup_post"},"Body_api_admin_founding_unmark_api_admin_founding_unmark_post":{"properties":{"workspace_id":{"type":"integer","title":"Workspace Id"}},"type":"object","required":["workspace_id"],"title":"Body_api_admin_founding_unmark_api_admin_founding_unmark_post"},"Body_api_kodo_import_api_integrations_kodo_import_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_api_kodo_import_api_integrations_kodo_import_post"},"Body_api_lead_file_upload_api_leads__lead_id__files_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_api_lead_file_upload_api_leads__lead_id__files_post"},"Body_api_linkedin_signal_submit_api_linkedin_signal_post":{"properties":{"company_name":{"type":"string","title":"Company Name"},"signal_type":{"type":"string","title":"Signal Type","default":"linkedin_hiring"},"linkedin_url":{"type":"string","title":"Linkedin Url","default":""},"domain":{"type":"string","title":"Domain","default":""},"notes":{"type":"string","title":"Notes","default":""},"add_to_watchlist":{"type":"boolean","title":"Add To Watchlist","default":true}},"type":"object","required":["company_name"],"title":"Body_api_linkedin_signal_submit_api_linkedin_signal_post"},"Body_api_linkedin_watchlist_add_api_linkedin_watch_list_post":{"properties":{"company_name":{"type":"string","title":"Company Name"},"linkedin_url":{"type":"string","title":"Linkedin Url","default":""},"domain":{"type":"string","title":"Domain","default":""},"notes":{"type":"string","title":"Notes","default":""}},"type":"object","required":["company_name"],"title":"Body_api_linkedin_watchlist_add_api_linkedin_watch_list_post"},"Body_api_sat_auth_api_sat_auth_post":{"properties":{"email":{"type":"string","title":"Email"},"password":{"type":"string","title":"Password"}},"type":"object","required":["email","password"],"title":"Body_api_sat_auth_api_sat_auth_post"},"Body_demo_start_post_demo_start_post":{"properties":{"lang":{"type":"string","title":"Lang","default":"de"},"story":{"type":"string","title":"Story","default":""},"campaign_label":{"type":"string","title":"Campaign Label","default":""},"investor":{"type":"string","title":"Investor","default":""},"name_company":{"type":"string","title":"Name Company","default":""},"source":{"type":"string","title":"Source","default":""},"looking_for":{"type":"string","title":"Looking For","default":""}},"type":"object","title":"Body_demo_start_post_demo_start_post"},"Body_forgot_password_submit_admin_forgot_password_post":{"properties":{"email":{"type":"string","title":"Email"},"lang":{"type":"string","title":"Lang","default":"de"}},"type":"object","required":["email"],"title":"Body_forgot_password_submit_admin_forgot_password_post"},"Body_reset_password_submit_admin_reset_password_post":{"properties":{"token":{"type":"string","title":"Token","default":""},"password":{"type":"string","title":"Password","default":""},"lang":{"type":"string","title":"Lang","default":"de"}},"type":"object","title":"Body_reset_password_submit_admin_reset_password_post"},"Body_switch_workspace_admin_workspace_switch_post":{"properties":{"workspace_id":{"type":"integer","title":"Workspace Id"},"next":{"type":"string","title":"Next","default":"/"},"csrf_token":{"type":"string","title":"Csrf Token","default":""}},"type":"object","required":["workspace_id"],"title":"Body_switch_workspace_admin_workspace_switch_post"},"BrandEnableIn":{"properties":{"enabled":{"type":"boolean","title":"Enabled","default":true}},"type":"object","title":"BrandEnableIn"},"BrandIn":{"properties":{"brand_name":{"type":"string","maxLength":80,"title":"Brand Name","default":""},"brand_logo_url":{"type":"string","maxLength":512,"title":"Brand Logo Url","default":""},"brand_primary_color":{"type":"string","maxLength":7,"title":"Brand Primary Color","default":""},"brand_tagline":{"type":"string","maxLength":160,"title":"Brand Tagline","default":""},"hide_pragma_branding":{"type":"boolean","title":"Hide Pragma Branding","default":false}},"type":"object","title":"BrandIn"},"BreachReportIn":{"properties":{"description":{"type":"string","title":"Description"},"incident_type":{"type":"string","title":"Incident Type","default":"data_breach"},"data_subjects_affected":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Data Subjects Affected"},"personal_data_categories":{"type":"string","title":"Personal Data Categories","default":""},"potential_consequences":{"type":"string","title":"Potential Consequences","default":""},"measures_taken":{"type":"string","title":"Measures Taken","default":""}},"type":"object","required":["description"],"title":"BreachReportIn"},"BulkActionIn":{"properties":{"ids":{"items":{"type":"integer"},"type":"array","maxItems":500,"minItems":1,"title":"Ids"},"action":{"type":"string","maxLength":40,"minLength":1,"title":"Action"},"value":{"type":"string","maxLength":80,"title":"Value","default":""}},"type":"object","required":["ids","action"],"title":"BulkActionIn"},"CaptureIn":{"properties":{"plan":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Plan"}},"type":"object","title":"CaptureIn"},"CaptureOut":{"properties":{"ok":{"type":"boolean","title":"Ok"},"download_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Download Token"},"redirect_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Redirect Url"},"message":{"type":"string","title":"Message","default":""}},"type":"object","required":["ok"],"title":"CaptureOut"},"CbTransferMappingIn":{"properties":{"data_type":{"type":"string","title":"Data Type","default":"personal_data"},"source_region":{"type":"string","title":"Source Region"},"dest_region":{"type":"string","title":"Dest Region"},"transfer_mechanism":{"type":"string","title":"Transfer Mechanism","default":"none"},"notes":{"type":"string","title":"Notes","default":""}},"type":"object","required":["source_region","dest_region"],"title":"CbTransferMappingIn"},"ChannelCheckIn":{"properties":{"channel":{"type":"string","title":"Channel"},"text":{"type":"string","title":"Text"}},"type":"object","required":["channel","text"],"title":"ChannelCheckIn"},"ChannelPermissionBody":{"properties":{"role":{"type":"string","title":"Role"},"channel":{"type":"string","title":"Channel"},"can_view":{"type":"boolean","title":"Can View","default":true},"can_draft":{"type":"boolean","title":"Can Draft","default":true}},"type":"object","required":["role","channel"],"title":"ChannelPermissionBody"},"ChannelPolicyIn":{"properties":{"channel":{"type":"string","title":"Channel"},"forbidden_terms":{"items":{"type":"string"},"type":"array","title":"Forbidden Terms"},"required_disclaimer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Required Disclaimer"},"max_messages_per_hour":{"type":"integer","minimum":0.0,"title":"Max Messages Per Hour","default":0}},"type":"object","required":["channel"],"title":"ChannelPolicyIn"},"ChecklistDismissIn":{"properties":{"step":{"type":"string","maxLength":40,"minLength":1,"title":"Step"}},"type":"object","required":["step"],"title":"ChecklistDismissIn"},"ClientSubscriptionIn":{"properties":{"name":{"type":"string","title":"Name"},"mrr_eur":{"type":"number","title":"Mrr Eur","default":0},"status":{"type":"string","title":"Status","default":"active"},"contract_type":{"type":"string","title":"Contract Type","default":"monthly"},"start_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Date"},"renewal_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Renewal Date"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["name"],"title":"ClientSubscriptionIn"},"ClientSubscriptionUpdateIn":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"mrr_eur":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Mrr Eur"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"contract_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contract Type"},"start_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Date"},"renewal_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Renewal Date"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"churned_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Churned At"}},"type":"object","title":"ClientSubscriptionUpdateIn"},"CommissionRuleIn":{"properties":{"name":{"type":"string","title":"Name","default":"Default"},"rate_pct":{"type":"number","maximum":100.0,"minimum":0.0,"title":"Rate Pct","default":5.0},"bonus_threshold":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Bonus Threshold"},"bonus_pct":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Bonus Pct"},"split_json":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Split Json"}},"type":"object","title":"CommissionRuleIn"},"CommunicationTemplateIn":{"properties":{"channel":{"type":"string","enum":["wecom","wechat_oa","whatsapp","email","linkedin","teams","erp"],"title":"Channel","default":"wecom"},"name":{"type":"string","maxLength":160,"minLength":1,"title":"Name"},"body":{"type":"string","maxLength":12000,"minLength":2,"title":"Body"},"subject":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Subject"},"language":{"anyOf":[{"type":"string","maxLength":12},{"type":"null"}],"title":"Language"},"tags":{"anyOf":[{"type":"string","maxLength":400},{"type":"null"}],"title":"Tags"},"is_active":{"type":"boolean","title":"Is Active","default":true}},"type":"object","required":["name","body"],"title":"CommunicationTemplateIn"},"ConsentBody":{"properties":{"consent_type":{"type":"string","title":"Consent Type"},"granted":{"type":"boolean","title":"Granted"}},"type":"object","required":["consent_type","granted"],"title":"ConsentBody"},"ConsultantWithSignalsIn":{"properties":{"message":{"type":"string","title":"Message"},"locale":{"type":"string","title":"Locale","default":"en"},"use_ai":{"type":"boolean","title":"Use Ai","default":true}},"type":"object","required":["message"],"title":"ConsultantWithSignalsIn"},"ContactConsentBody":{"properties":{"categories":{"items":{"type":"string"},"type":"array","title":"Categories"}},"type":"object","required":["categories"],"title":"ContactConsentBody"},"ContactLegalBasisBody":{"properties":{"basis":{"type":"string","title":"Basis"},"note":{"type":"string","title":"Note","default":""}},"type":"object","required":["basis"],"title":"ContactLegalBasisBody"},"ContactMailIn":{"properties":{"subject":{"type":"string","maxLength":200,"title":"Subject","default":""},"body":{"type":"string","maxLength":50000,"minLength":4,"title":"Body"}},"type":"object","required":["body"],"title":"ContactMailIn"},"ConversationSummarizeIn":{"properties":{"save_as_note":{"type":"boolean","title":"Save As Note","default":false}},"type":"object","title":"ConversationSummarizeIn"},"CopilotActionIn":{"properties":{"action":{"type":"string","maxLength":80,"minLength":2,"title":"Action"},"limit":{"type":"integer","maximum":50.0,"minimum":1.0,"title":"Limit","default":10}},"type":"object","required":["action"],"title":"CopilotActionIn"},"CreditConsumeIn":{"properties":{"action":{"type":"string","maxLength":64,"title":"Action"}},"type":"object","required":["action"],"title":"CreditConsumeIn"},"CrmNoteIn":{"properties":{"body":{"type":"string","maxLength":2000,"title":"Body","default":""}},"type":"object","title":"CrmNoteIn"},"CrmSyncRulesIn":{"properties":{"enabled":{"type":"boolean","title":"Enabled","default":false},"on_lead_create":{"type":"boolean","title":"On Lead Create","default":false},"on_stage_change":{"type":"boolean","title":"On Stage Change","default":false},"on_ai_hot":{"type":"boolean","title":"On Ai Hot","default":false},"on_manual_only":{"type":"boolean","title":"On Manual Only","default":true},"retry_max":{"type":"integer","maximum":10.0,"minimum":0.0,"title":"Retry Max","default":3},"retry_backoff_sec":{"items":{"type":"integer"},"type":"array","title":"Retry Backoff Sec"},"crm_target":{"type":"string","title":"Crm Target","default":"configured_default"}},"type":"object","title":"CrmSyncRulesIn"},"CsvCommitIn":{"properties":{"text":{"type":"string","maxLength":2000000,"minLength":1,"title":"Text"},"field_map":{"type":"object","title":"Field Map","default":{}}},"type":"object","required":["text"],"title":"CsvCommitIn"},"CsvPreviewIn":{"properties":{"text":{"type":"string","maxLength":2000000,"minLength":1,"title":"Text"},"field_map":{"type":"object","title":"Field Map","default":{}}},"type":"object","required":["text"],"title":"CsvPreviewIn"},"DealCreateIn":{"properties":{"title":{"type":"string","title":"Title"},"stage":{"type":"string","title":"Stage","default":"new_lead"},"value_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value Amount"},"currency":{"type":"string","title":"Currency","default":"EUR"},"contact_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Contact Id"},"closing_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Closing Date"}},"type":"object","required":["title"],"title":"DealCreateIn"},"DealFinancialsIn":{"properties":{"payment_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payment Status"},"payment_due_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payment Due Date"},"deposit_pct":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Deposit Pct"},"invoice_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invoice Status"},"invoice_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invoice Number"}},"type":"object","title":"DealFinancialsIn"},"DealNextActionIn":{"properties":{"next_action":{"type":"string","maxLength":400,"title":"Next Action","default":""}},"type":"object","title":"DealNextActionIn"},"DealPaymentIn":{"properties":{"amount":{"type":"number","title":"Amount"},"currency":{"type":"string","title":"Currency","default":"EUR"},"payment_type":{"type":"string","title":"Payment Type","default":"full"},"method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Method"},"reference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reference"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"recorded_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recorded At"}},"type":"object","required":["amount"],"title":"DealPaymentIn"},"DealStageIn":{"properties":{"stage":{"type":"string","maxLength":40,"minLength":2,"title":"Stage"},"next_action":{"anyOf":[{"type":"string","maxLength":400},{"type":"null"}],"title":"Next Action"},"closing_date":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Closing Date"}},"type":"object","required":["stage"],"title":"DealStageIn"},"DealUpdateIn":{"properties":{"value_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value Amount"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"next_action":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Action"},"closing_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Closing Date"}},"type":"object","title":"DealUpdateIn"},"DemoCaptureEmailIn":{"properties":{"email":{"type":"string","maxLength":320,"minLength":5,"title":"Email"},"website":{"type":"string","maxLength":200,"title":"Website","default":""}},"type":"object","required":["email"],"title":"DemoCaptureEmailIn"},"DemoClearIn":{"properties":{"lead_ids":{"anyOf":[{"items":{"type":"integer"},"type":"array","maxItems":500},{"type":"null"}],"title":"Lead Ids"}},"type":"object","title":"DemoClearIn"},"DemoFeedbackIn":{"properties":{"rating":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Rating"},"best_feature":{"type":"string","maxLength":500,"title":"Best Feature","default":""},"missing":{"type":"string","maxLength":500,"title":"Missing","default":""}},"type":"object","title":"DemoFeedbackIn"},"DemoSeedIn":{"properties":{"extra":{"type":"boolean","title":"Extra","default":false},"story":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Story"}},"type":"object","title":"DemoSeedIn"},"DeviceRegisterIn":{"properties":{"fingerprint":{"type":"string","maxLength":256,"title":"Fingerprint"},"device_name":{"type":"string","maxLength":128,"title":"Device Name","default":""},"user_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"User Id"}},"type":"object","required":["fingerprint"],"title":"DeviceRegisterIn"},"DuckQueryIn":{"properties":{"sql":{"type":"string","title":"Sql"},"limit":{"type":"integer","title":"Limit","default":500}},"type":"object","required":["sql"],"title":"DuckQueryIn"},"EarnProductIn":{"properties":{"title_de":{"type":"string","title":"Title De"},"title_en":{"type":"string","title":"Title En"},"title_zh":{"type":"string","title":"Title Zh"},"desc_de":{"type":"string","title":"Desc De","default":""},"desc_en":{"type":"string","title":"Desc En","default":""},"desc_zh":{"type":"string","title":"Desc Zh","default":""},"category":{"type":"string","title":"Category","default":"other"},"credit_price":{"type":"integer","title":"Credit Price","default":500},"content_type":{"type":"string","title":"Content Type","default":"text"},"content_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Url"},"content_body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Body"},"sort_order":{"type":"integer","title":"Sort Order","default":0}},"type":"object","required":["title_de","title_en","title_zh"],"title":"EarnProductIn"},"EarnProductPatch":{"properties":{"title_de":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title De"},"title_en":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title En"},"title_zh":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title Zh"},"desc_de":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Desc De"},"desc_en":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Desc En"},"desc_zh":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Desc Zh"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"credit_price":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Credit Price"},"content_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Type"},"content_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Url"},"content_body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Body"},"is_active":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Is Active"},"sort_order":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sort Order"}},"type":"object","title":"EarnProductPatch"},"EmailDraftIn":{"properties":{"target_lang":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Target Lang"},"tone":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Tone","default":"warm-professional"}},"type":"object","title":"EmailDraftIn"},"EmailPrefsIn":{"properties":{"digest_unsubscribed":{"type":"boolean","title":"Digest Unsubscribed","default":false},"marketing_emails_opt_out":{"type":"boolean","title":"Marketing Emails Opt Out","default":false}},"type":"object","title":"EmailPrefsIn"},"EmailSendIn":{"properties":{"to_email":{"type":"string","maxLength":320,"minLength":5,"title":"To Email"},"subject":{"type":"string","maxLength":200,"minLength":2,"title":"Subject"},"body":{"type":"string","maxLength":12000,"minLength":2,"title":"Body"}},"type":"object","required":["to_email","subject","body"],"title":"EmailSendIn"},"FieldPermissionBody":{"properties":{"role":{"type":"string","title":"Role"},"field_name":{"type":"string","title":"Field Name"},"is_hidden":{"type":"boolean","title":"Is Hidden"}},"type":"object","required":["role","field_name","is_hidden"],"title":"FieldPermissionBody"},"FollowupDraftIn":{"properties":{"target_lang":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Target Lang"},"tone":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Tone","default":"warm-professional"},"length":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Length","default":"medium"}},"type":"object","title":"FollowupDraftIn"},"FollowupFeedbackIn":{"properties":{"rating":{"type":"string","pattern":"^(good|bad)$","title":"Rating"},"draft":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Draft","default":""},"target_lang":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Target Lang"},"tone":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Tone"},"length":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Length"},"channel":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Channel","default":"wecom"}},"type":"object","required":["rating"],"title":"FollowupFeedbackIn"},"FollowupIn":{"properties":{"lead_id":{"type":"integer","title":"Lead Id"},"days_until_due":{"type":"integer","maximum":60.0,"minimum":0.0,"title":"Days Until Due","default":2},"task":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Task"}},"type":"object","required":["lead_id"],"title":"FollowupIn"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"IdentityProviderBody":{"properties":{"provider":{"type":"string","title":"Provider"},"protocol":{"type":"string","title":"Protocol","default":"oidc"},"client_id":{"type":"string","title":"Client Id","default":""},"client_secret":{"type":"string","title":"Client Secret","default":""},"domain":{"type":"string","title":"Domain","default":""},"discovery_url":{"type":"string","title":"Discovery Url","default":""},"is_primary":{"type":"boolean","title":"Is Primary","default":false}},"type":"object","required":["provider"],"title":"IdentityProviderBody"},"InboxAiDraftIn":{"properties":{"tone":{"type":"string","maxLength":40,"title":"Tone","default":"warm-professional"},"target_lang":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Lang"}},"type":"object","title":"InboxAiDraftIn"},"InboxAssignIn":{"properties":{"user_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"User Id"}},"type":"object","title":"InboxAssignIn"},"InboxBulkActionIn":{"properties":{"lead_ids":{"items":{"type":"integer"},"type":"array","maxItems":100,"minItems":1,"title":"Lead Ids"},"action":{"type":"string","pattern":"^(resolve|unresolve|read|star|unstar)$","title":"Action"}},"type":"object","required":["lead_ids","action"],"title":"InboxBulkActionIn"},"InboxLabelCreateIn":{"properties":{"name":{"type":"string","maxLength":40,"minLength":1,"title":"Name"},"color":{"type":"string","maxLength":20,"title":"Color","default":"blue"}},"type":"object","required":["name"],"title":"InboxLabelCreateIn"},"InboxReadAllIn":{"properties":{"channel":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel"}},"type":"object","title":"InboxReadAllIn"},"InboxReadIn":{"properties":{"read":{"type":"boolean","title":"Read","default":true}},"type":"object","title":"InboxReadIn"},"InboxResolveIn":{"properties":{"resolved":{"type":"boolean","title":"Resolved","default":true}},"type":"object","title":"InboxResolveIn"},"InboxSnoozeIn":{"properties":{"until":{"type":"string","maxLength":30,"minLength":10,"title":"Until"}},"type":"object","required":["until"],"title":"InboxSnoozeIn"},"InboxSyncIn":{"properties":{"channel":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel"}},"type":"object","title":"InboxSyncIn"},"InboxThreadLabelsIn":{"properties":{"label_ids":{"items":{"type":"integer"},"type":"array","title":"Label Ids"}},"type":"object","title":"InboxThreadLabelsIn"},"InboxTranslateIn":{"properties":{"target_lang":{"type":"string","maxLength":20,"title":"Target Lang","default":"de"}},"type":"object","title":"InboxTranslateIn"},"InternalNoteIn":{"properties":{"body":{"type":"string","maxLength":8000,"minLength":1,"title":"Body"},"mentioned_user_ids":{"items":{"type":"integer"},"type":"array","title":"Mentioned User Ids"}},"type":"object","required":["body"],"title":"InternalNoteIn"},"InviteIn":{"properties":{"email":{"type":"string","maxLength":200,"title":"Email","default":""},"role":{"type":"string","pattern":"^(owner|admin|member|viewer)$","title":"Role","default":"member"}},"type":"object","title":"InviteIn"},"IsoControlUpdateIn":{"properties":{"control_id":{"type":"string","maxLength":16,"title":"Control Id"},"status":{"type":"string","maxLength":20,"title":"Status"},"evidence_url":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Evidence Url"},"notes":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Notes"}},"type":"object","required":["control_id","status"],"title":"IsoControlUpdateIn"},"IsoIncidentIn":{"properties":{"incident_type":{"type":"string","title":"Incident Type","default":"other"},"description":{"type":"string","title":"Description"}},"type":"object","required":["description"],"title":"IsoIncidentIn"},"IsoIncidentUpdateIn":{"properties":{"status":{"type":"string","title":"Status"},"notes":{"type":"string","title":"Notes","default":""}},"type":"object","required":["status"],"title":"IsoIncidentUpdateIn"},"IsoMfaConfirmIn":{"properties":{"code":{"type":"string","title":"Code"}},"type":"object","required":["code"],"title":"IsoMfaConfirmIn"},"IsoRetentionIn":{"properties":{"retention_days":{"type":"integer","title":"Retention Days","default":365}},"type":"object","title":"IsoRetentionIn"},"IsoSessionPolicyIn":{"properties":{"idle_timeout_minutes":{"type":"integer","title":"Idle Timeout Minutes","default":30},"max_session_hours":{"type":"integer","title":"Max Session Hours","default":8}},"type":"object","title":"IsoSessionPolicyIn"},"KitCheckoutIn":{"properties":{"kit_key":{"type":"string","maxLength":80,"minLength":2,"title":"Kit Key"},"success_url":{"type":"string","maxLength":2000,"title":"Success Url","default":""},"cancel_url":{"type":"string","maxLength":2000,"title":"Cancel Url","default":""}},"type":"object","required":["kit_key"],"title":"KitCheckoutIn"},"KpiAlertIn":{"properties":{"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"},"metric":{"type":"string","maxLength":60,"minLength":1,"title":"Metric"},"operator":{"type":"string","maxLength":10,"title":"Operator","default":"gte"},"threshold":{"type":"number","title":"Threshold"},"notify_channel":{"type":"string","maxLength":20,"title":"Notify Channel","default":"in_app"}},"type":"object","required":["name","metric","threshold"],"title":"KpiAlertIn"},"LeadAcquisitionUpdateIn":{"properties":{"first_contact_channel":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"First Contact Channel"},"first_contact_date":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"First Contact Date"},"acquisition_stage":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Acquisition Stage"},"acquisition_note":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Acquisition Note"},"campaign_label":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Campaign Label"},"lead_source":{"anyOf":[{"type":"string","maxLength":160},{"type":"null"}],"title":"Lead Source"}},"type":"object","title":"LeadAcquisitionUpdateIn"},"LeadActivityIn":{"properties":{"activity_type":{"type":"string","maxLength":20,"title":"Activity Type","default":"note"},"body":{"type":"string","maxLength":2000,"title":"Body","default":""},"meta":{"type":"object","title":"Meta"},"due_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Due At"}},"type":"object","title":"LeadActivityIn"},"LeadAssignIn":{"properties":{"user_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"User Id"}},"type":"object","title":"LeadAssignIn"},"LeadNoteIn":{"properties":{"body":{"type":"string","maxLength":4000,"minLength":1,"title":"Body"}},"type":"object","required":["body"],"title":"LeadNoteIn"},"LeadRagCoachIn":{"properties":{"lead_id":{"type":"integer","title":"Lead Id"},"lang":{"type":"string","title":"Lang","default":"de"},"custom_question":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Custom Question"}},"type":"object","required":["lead_id"],"title":"LeadRagCoachIn"},"LeadRoutingRuleIn":{"properties":{"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"},"queue":{"type":"string","maxLength":80,"minLength":1,"title":"Queue"},"keywords":{"type":"string","maxLength":500,"title":"Keywords","default":""},"min_score":{"anyOf":[{"type":"integer","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Min Score"},"source_channel":{"type":"string","maxLength":40,"title":"Source Channel","default":""},"assign_user_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Assign User Id"},"priority":{"type":"integer","maximum":1000.0,"minimum":0.0,"title":"Priority","default":50},"enabled":{"type":"boolean","title":"Enabled","default":true}},"type":"object","required":["name","queue"],"title":"LeadRoutingRuleIn"},"LinkedInActionIn":{"properties":{"user_id":{"type":"integer","title":"User Id"},"action_type":{"type":"string","maxLength":64,"title":"Action Type","default":"connection_request"}},"type":"object","required":["user_id"],"title":"LinkedInActionIn"},"LinkedInPolicyIn":{"properties":{"daily_limit":{"type":"integer","maximum":9999.0,"minimum":1.0,"title":"Daily Limit","default":50},"warn_threshold_pct":{"type":"integer","maximum":99.0,"minimum":1.0,"title":"Warn Threshold Pct","default":80}},"type":"object","title":"LinkedInPolicyIn"},"MarketplaceAssetInstallIn":{"properties":{"asset_key":{"type":"string","maxLength":120,"minLength":2,"title":"Asset Key"}},"type":"object","required":["asset_key"],"title":"MarketplaceAssetInstallIn"},"MarketplaceAssetPurchaseIn":{"properties":{"asset_key":{"type":"string","maxLength":120,"minLength":2,"title":"Asset Key"},"referral_code":{"type":"string","maxLength":80,"title":"Referral Code","default":""},"affiliate_partner":{"type":"string","maxLength":120,"title":"Affiliate Partner","default":""},"revenue_share_bps":{"type":"integer","maximum":10000.0,"minimum":0.0,"title":"Revenue Share Bps","default":0}},"type":"object","required":["asset_key"],"title":"MarketplaceAssetPurchaseIn"},"MarketplaceAssetQualityIn":{"properties":{"featured":{"type":"boolean","title":"Featured","default":false},"hidden":{"type":"boolean","title":"Hidden","default":false},"flagged":{"type":"boolean","title":"Flagged","default":false},"archived":{"type":"boolean","title":"Archived","default":false},"moderation_note":{"type":"string","maxLength":500,"title":"Moderation Note","default":""}},"type":"object","title":"MarketplaceAssetQualityIn"},"MarketplaceAssetReviewIn":{"properties":{"rating_value":{"type":"integer","maximum":5.0,"minimum":1.0,"title":"Rating Value"},"review_title":{"type":"string","maxLength":160,"title":"Review Title","default":""},"review_text":{"type":"string","maxLength":1200,"title":"Review Text","default":""}},"type":"object","required":["rating_value"],"title":"MarketplaceAssetReviewIn"},"MarketplaceConsultantChatIn":{"properties":{"message":{"type":"string","maxLength":2000,"minLength":2,"title":"Message"},"use_ai":{"type":"boolean","title":"Use Ai","default":true}},"type":"object","required":["message"],"title":"MarketplaceConsultantChatIn"},"MarketplaceEtsyAssetSyncIn":{"properties":{"asset_keys":{"items":{"type":"string"},"type":"array","title":"Asset Keys"}},"type":"object","title":"MarketplaceEtsyAssetSyncIn"},"MarketplaceEtsyOrderWebhookIn":{"properties":{"receipt":{"type":"object","title":"Receipt"}},"type":"object","required":["receipt"],"title":"MarketplaceEtsyOrderWebhookIn"},"MarketplaceEtsySettingsIn":{"properties":{"shop_name":{"type":"string","maxLength":120,"title":"Shop Name","default":""},"api_key":{"type":"string","maxLength":300,"title":"Api Key","default":""}},"type":"object","title":"MarketplaceEtsySettingsIn"},"MarketplaceEventIn":{"properties":{"asset_key":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Asset Key"},"event_type":{"type":"string","enum":["impression","product_view","product_click","checkout_started","recommendation_shown","refund_requested","referral_landing","referral_checkout","region_access_request","marketplace_consultant_recommendation"],"title":"Event Type"},"detail":{"type":"object","title":"Detail"}},"type":"object","required":["event_type"],"title":"MarketplaceEventIn"},"MarketplaceGovernanceDraftIn":{"properties":{"asset_key":{"type":"string","maxLength":120,"minLength":2,"title":"Asset Key"},"title":{"type":"string","maxLength":200,"minLength":1,"title":"Title"},"category_key":{"type":"string","maxLength":80,"title":"Category Key","default":"crm_playbooks"},"asset_type":{"type":"string","maxLength":80,"title":"Asset Type","default":"crm_playbook"},"summary":{"type":"string","maxLength":2000,"title":"Summary","default":""},"is_paid":{"type":"boolean","title":"Is Paid","default":false},"price_cents":{"type":"integer","maximum":1000000.0,"minimum":0.0,"title":"Price Cents","default":0}},"type":"object","required":["asset_key","title"],"title":"MarketplaceGovernanceDraftIn"},"MarketplaceGovernanceRejectIn":{"properties":{"reason":{"type":"string","maxLength":500,"title":"Reason","default":""}},"type":"object","title":"MarketplaceGovernanceRejectIn"},"MarketplaceGovernanceRoleIn":{"properties":{"user_id":{"type":"integer","exclusiveMinimum":0.0,"title":"User Id"},"role":{"type":"string","enum":["publisher","reviewer","admin","partner"],"title":"Role"}},"type":"object","required":["user_id","role"],"title":"MarketplaceGovernanceRoleIn"},"MarketplaceInstallIn":{"properties":{"integration_key":{"type":"string","maxLength":80,"minLength":2,"title":"Integration Key"},"status":{"type":"string","enum":["planned","active","paused"],"title":"Status","default":"planned"},"config":{"type":"object","title":"Config"}},"type":"object","required":["integration_key"],"title":"MarketplaceInstallIn"},"MarketplaceLeadCaptureIn":{"properties":{"email":{"type":"string","maxLength":320,"minLength":5,"title":"Email"}},"type":"object","required":["email"],"title":"MarketplaceLeadCaptureIn"},"MarketplacePartnerApplyIn":{"properties":{"company_name":{"type":"string","maxLength":200,"minLength":2,"title":"Company Name"},"contact_name":{"type":"string","maxLength":120,"minLength":2,"title":"Contact Name"},"contact_email":{"type":"string","maxLength":200,"minLength":3,"title":"Contact Email"},"partner_type":{"type":"string","maxLength":40,"minLength":2,"title":"Partner Type"},"website":{"type":"string","maxLength":300,"title":"Website","default":""},"referral_code":{"type":"string","maxLength":80,"title":"Referral Code","default":""},"message":{"type":"string","maxLength":2000,"title":"Message","default":""}},"type":"object","required":["company_name","contact_name","contact_email","partner_type"],"title":"MarketplacePartnerApplyIn"},"MarketplacePartnerApproveIn":{"properties":{"workspace_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Workspace Id"}},"type":"object","title":"MarketplacePartnerApproveIn"},"MarketplacePartnerRejectIn":{"properties":{"rejection_reason":{"type":"string","maxLength":500,"title":"Rejection Reason","default":""}},"type":"object","title":"MarketplacePartnerRejectIn"},"MarketplacePaypalCaptureIn":{"properties":{"asset_key":{"type":"string","maxLength":120,"title":"Asset Key","default":""},"order_id":{"type":"string","maxLength":180,"minLength":6,"title":"Order Id"},"referral_code":{"type":"string","maxLength":80,"title":"Referral Code","default":""},"affiliate_partner":{"type":"string","maxLength":120,"title":"Affiliate Partner","default":""},"revenue_share_bps":{"type":"integer","maximum":10000.0,"minimum":0.0,"title":"Revenue Share Bps","default":0}},"type":"object","required":["order_id"],"title":"MarketplacePaypalCaptureIn"},"MarketplacePaypalCheckoutIn":{"properties":{"asset_key":{"type":"string","maxLength":120,"minLength":2,"title":"Asset Key"},"referral_code":{"type":"string","maxLength":80,"title":"Referral Code","default":""},"affiliate_partner":{"type":"string","maxLength":120,"title":"Affiliate Partner","default":""},"revenue_share_bps":{"type":"integer","maximum":10000.0,"minimum":0.0,"title":"Revenue Share Bps","default":0}},"type":"object","required":["asset_key"],"title":"MarketplacePaypalCheckoutIn"},"MarketplacePublisherDraftIn":{"properties":{"asset_key":{"type":"string","maxLength":120,"minLength":2,"title":"Asset Key"},"title":{"type":"string","maxLength":200,"minLength":1,"title":"Title"},"category_key":{"type":"string","maxLength":80,"title":"Category Key","default":"crm_playbooks"},"asset_type":{"type":"string","maxLength":80,"title":"Asset Type","default":"crm_playbook"},"summary":{"type":"string","maxLength":2000,"title":"Summary","default":""},"is_paid":{"type":"boolean","title":"Is Paid","default":false},"price_cents":{"type":"integer","maximum":1000000.0,"minimum":0.0,"title":"Price Cents","default":0}},"type":"object","required":["asset_key","title"],"title":"MarketplacePublisherDraftIn"},"MarketplacePublisherKeyCreateIn":{"properties":{"name":{"type":"string","maxLength":160,"minLength":1,"title":"Name"},"publisher_label":{"type":"string","maxLength":120,"title":"Publisher Label","default":""},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"}},"type":"object","required":["name"],"title":"MarketplacePublisherKeyCreateIn"},"MarketplacePublisherWebhookIn":{"properties":{"url":{"type":"string","maxLength":2000,"minLength":8,"title":"Url"},"secret":{"type":"string","maxLength":200,"title":"Secret","default":""},"is_active":{"type":"boolean","title":"Is Active","default":true}},"type":"object","required":["url"],"title":"MarketplacePublisherWebhookIn"},"MarketplaceReferralValidateIn":{"properties":{"referral_code":{"type":"string","maxLength":80,"minLength":1,"title":"Referral Code"},"affiliate_partner":{"type":"string","maxLength":120,"title":"Affiliate Partner","default":""},"revenue_share_bps":{"type":"integer","maximum":10000.0,"minimum":0.0,"title":"Revenue Share Bps","default":0}},"type":"object","required":["referral_code"],"title":"MarketplaceReferralValidateIn"},"MarketplaceRemixPublishIn":{"properties":{"asset_key":{"type":"string","maxLength":120,"minLength":2,"title":"Asset Key"},"title":{"type":"string","maxLength":200,"minLength":1,"title":"Title"},"summary":{"type":"string","maxLength":2000,"title":"Summary","default":""},"category_key":{"type":"string","maxLength":80,"title":"Category Key","default":"prompt_packs"},"asset_type":{"type":"string","maxLength":80,"title":"Asset Type","default":"prompt_listing"},"is_paid":{"type":"boolean","title":"Is Paid","default":false},"price_cents":{"type":"integer","maximum":1000000.0,"minimum":0.0,"title":"Price Cents","default":0}},"type":"object","required":["asset_key","title"],"title":"MarketplaceRemixPublishIn"},"MarketplaceReviewModerationIn":{"properties":{"moderation_status":{"type":"string","enum":["visible","hidden","flagged"],"title":"Moderation Status"},"moderation_note":{"type":"string","maxLength":500,"title":"Moderation Note","default":""}},"type":"object","required":["moderation_status"],"title":"MarketplaceReviewModerationIn"},"MarketplaceRoiEstimateIn":{"properties":{"team_size":{"type":"integer","maximum":500.0,"minimum":1.0,"title":"Team Size","default":3},"leads_per_month":{"type":"integer","maximum":100000.0,"minimum":0.0,"title":"Leads Per Month","default":50},"hours_per_week":{"type":"number","maximum":168.0,"minimum":0.0,"title":"Hours Per Week","default":8.0},"asset_key":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Asset Key"}},"type":"object","title":"MarketplaceRoiEstimateIn"},"MarketplaceSubscriptionActivateIn":{"properties":{"activate":{"type":"boolean","title":"Activate","default":true}},"type":"object","title":"MarketplaceSubscriptionActivateIn"},"MarketplaceSubscriptionCheckoutIn":{"properties":{"success_url":{"type":"string","maxLength":2000,"title":"Success Url","default":""},"cancel_url":{"type":"string","maxLength":2000,"title":"Cancel Url","default":""}},"type":"object","title":"MarketplaceSubscriptionCheckoutIn"},"MarketplaceUninstallIn":{"properties":{"integration_key":{"type":"string","maxLength":80,"minLength":2,"title":"Integration Key"}},"type":"object","required":["integration_key"],"title":"MarketplaceUninstallIn"},"MarketplaceWorkflowInstallIn":{"properties":{"asset_key":{"type":"string","maxLength":120,"minLength":2,"title":"Asset Key"},"step_keys":{"items":{"type":"string"},"type":"array","title":"Step Keys"}},"type":"object","required":["asset_key"],"title":"MarketplaceWorkflowInstallIn"},"MasterTenantBudgetIn":{"properties":{"lead_purchased":{"type":"integer","maximum":100000.0,"minimum":0.0,"title":"Lead Purchased"},"ai_credit_limit":{"type":"integer","maximum":1000000.0,"minimum":0.0,"title":"Ai Credit Limit"}},"type":"object","required":["lead_purchased","ai_credit_limit"],"title":"MasterTenantBudgetIn"},"MasterTenantEarnMarketingEmailsAccessIn":{"properties":{"earn_marketing_emails_enabled":{"type":"boolean","title":"Earn Marketing Emails Enabled"}},"type":"object","required":["earn_marketing_emails_enabled"],"title":"MasterTenantEarnMarketingEmailsAccessIn"},"MasterTenantEarnRewardsAccessIn":{"properties":{"earn_rewards_enabled":{"type":"boolean","title":"Earn Rewards Enabled"}},"type":"object","required":["earn_rewards_enabled"],"title":"MasterTenantEarnRewardsAccessIn"},"MasterTenantMarketplaceAccessIn":{"properties":{"marketplace_enabled":{"type":"boolean","title":"Marketplace Enabled"}},"type":"object","required":["marketplace_enabled"],"title":"MasterTenantMarketplaceAccessIn"},"MasterTenantPlanIn":{"properties":{"plan":{"type":"string","maxLength":20,"minLength":2,"title":"Plan"},"status":{"type":"string","maxLength":20,"minLength":2,"title":"Status"},"extend_trial_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Extend Trial Days"}},"type":"object","required":["plan","status"],"title":"MasterTenantPlanIn"},"MasterTenantReportingAccessIn":{"properties":{"reporting_enabled":{"type":"boolean","title":"Reporting Enabled"},"superset_reporting_enabled":{"type":"boolean","title":"Superset Reporting Enabled"}},"type":"object","required":["reporting_enabled","superset_reporting_enabled"],"title":"MasterTenantReportingAccessIn"},"MasterTenantSignalInboxAccessIn":{"properties":{"signal_inbox_enabled":{"type":"boolean","title":"Signal Inbox Enabled"}},"type":"object","required":["signal_inbox_enabled"],"title":"MasterTenantSignalInboxAccessIn"},"MasterToggleIn":{"properties":{"is_master":{"type":"boolean","title":"Is Master","default":true}},"type":"object","title":"MasterToggleIn"},"MeetingSummaryIn":{"properties":{"transcript":{"type":"string","maxLength":50000,"minLength":20,"title":"Transcript"}},"type":"object","required":["transcript"],"title":"MeetingSummaryIn"},"MemberAddIn":{"properties":{"user_id":{"type":"integer","exclusiveMinimum":0.0,"title":"User Id"},"role":{"type":"string","maxLength":20,"minLength":2,"title":"Role"}},"type":"object","required":["user_id","role"],"title":"MemberAddIn"},"MemberRemoveIn":{"properties":{"reassign_to_user_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Reassign To User Id"}},"type":"object","title":"MemberRemoveIn"},"MfaConfirmIn":{"properties":{"code":{"type":"string","title":"Code"}},"type":"object","required":["code"],"title":"MfaConfirmIn"},"MfaPolicyIn":{"properties":{"require_mfa":{"type":"boolean","title":"Require Mfa"}},"type":"object","required":["require_mfa"],"title":"MfaPolicyIn"},"MfaVerifyIn":{"properties":{"code":{"type":"string","title":"Code"}},"type":"object","required":["code"],"title":"MfaVerifyIn"},"MsTeamsConfigureIn":{"properties":{"team_id":{"type":"string","title":"Team Id"},"channel_id":{"type":"string","title":"Channel Id"},"auto_create_leads":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Auto Create Leads"}},"type":"object","required":["team_id","channel_id"],"title":"MsTeamsConfigureIn"},"MsUserConfigureChannelIn":{"properties":{"team_id":{"type":"string","title":"Team Id"},"channel_id":{"type":"string","title":"Channel Id"},"team_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Team Name","default":""},"channel_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel Name","default":""}},"type":"object","required":["team_id","channel_id"],"title":"MsUserConfigureChannelIn"},"NotificationConfigIn":{"properties":{"slack_webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slack Webhook Url"},"teams_webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Teams Webhook Url"},"teams_inbound_secret":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Teams Inbound Secret"}},"type":"object","title":"NotificationConfigIn"},"NotificationReadIn":{"properties":{"ids":{"items":{"type":"string"},"type":"array","title":"Ids"}},"type":"object","title":"NotificationReadIn"},"NotificationTestIn":{"properties":{"channel":{"type":"string","pattern":"^(slack|teams)$","title":"Channel"}},"type":"object","required":["channel"],"title":"NotificationTestIn"},"NpsSubmitIn":{"properties":{"score":{"type":"integer","title":"Score"},"comment":{"type":"string","title":"Comment","default":""}},"type":"object","required":["score"],"title":"NpsSubmitIn"},"NurtureDachPilotIn":{"properties":{"email":{"type":"string","maxLength":320,"minLength":5,"title":"Email"},"name":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Name"},"company":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Company"},"campaign_label":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Campaign Label"},"source":{"type":"string","maxLength":80,"title":"Source","default":"api"},"website":{"type":"string","maxLength":200,"title":"Website","default":""}},"type":"object","required":["email"],"title":"NurtureDachPilotIn"},"ObjectPermissionBody":{"properties":{"object_type":{"type":"string","title":"Object Type"},"visibility":{"type":"string","title":"Visibility"}},"type":"object","required":["object_type","visibility"],"title":"ObjectPermissionBody"},"ObjectionIn":{"properties":{"purpose":{"type":"string","title":"Purpose"},"objection_reason":{"type":"string","title":"Objection Reason","default":""},"basis":{"type":"string","title":"Basis","default":"legitimate_interest"}},"type":"object","required":["purpose"],"title":"ObjectionIn"},"ObjectionResolveIn":{"properties":{"outcome":{"type":"string","title":"Outcome"},"maintain_restriction":{"type":"boolean","title":"Maintain Restriction","default":true}},"type":"object","required":["outcome"],"title":"ObjectionResolveIn"},"OfferRejectIn":{"properties":{"note":{"type":"string","maxLength":500,"title":"Note","default":""}},"type":"object","title":"OfferRejectIn"},"OnboardingAiSuggestIn":{"properties":{"csv_preview_rows":{"anyOf":[{"items":{"type":"object"},"type":"array"},{"type":"null"}],"title":"Csv Preview Rows"},"target_lang":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Target Lang"}},"type":"object","title":"OnboardingAiSuggestIn"},"OnboardingEnrollIn":{"properties":{"owner_email":{"type":"string","maxLength":320,"minLength":5,"title":"Owner Email"},"owner_name":{"type":"string","maxLength":120,"title":"Owner Name","default":""},"lang":{"type":"string","maxLength":4,"title":"Lang","default":"en"}},"type":"object","required":["owner_email"],"title":"OnboardingEnrollIn"},"OnboardingHiddenIn":{"properties":{"hidden":{"type":"boolean","title":"Hidden"}},"type":"object","required":["hidden"],"title":"OnboardingHiddenIn"},"OnboardingMarkIn":{"properties":{"step":{"type":"string","maxLength":40,"minLength":2,"title":"Step"},"action":{"type":"string","pattern":"^(complete|skip|reset)$","title":"Action","default":"complete"}},"type":"object","required":["step"],"title":"OnboardingMarkIn"},"OrderIn":{"properties":{"plan":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Plan"}},"type":"object","title":"OrderIn"},"OrderOut":{"properties":{"id":{"type":"string","title":"Id"}},"type":"object","required":["id"],"title":"OrderOut"},"OutboundApproveIn":{"properties":{"body":{"anyOf":[{"type":"string","maxLength":12000,"minLength":2},{"type":"null"}],"title":"Body"},"to_email":{"anyOf":[{"type":"string","maxLength":320},{"type":"null"}],"title":"To Email"},"subject":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Subject"}},"type":"object","title":"OutboundApproveIn"},"OutboundDraftIn":{"properties":{"channel":{"type":"string","enum":["wecom","wechat_oa","whatsapp","email","linkedin","teams","erp"],"title":"Channel","default":"wecom"},"body":{"type":"string","maxLength":12000,"minLength":2,"title":"Body"},"to_email":{"anyOf":[{"type":"string","maxLength":320},{"type":"null"}],"title":"To Email"},"subject":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Subject"}},"type":"object","required":["body"],"title":"OutboundDraftIn"},"OutreachQueueSendIn":{"properties":{"channel":{"type":"string","title":"Channel","default":"teams"}},"type":"object","title":"OutreachQueueSendIn"},"OwnerAssignIn":{"properties":{"owner_user_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Owner User Id"}},"type":"object","title":"OwnerAssignIn"},"PartnerApplyIn":{"properties":{"partner_type":{"type":"string","title":"Partner Type"},"company_name":{"type":"string","title":"Company Name"},"contact_note":{"type":"string","title":"Contact Note","default":""}},"type":"object","required":["partner_type","company_name"],"title":"PartnerApplyIn"},"PartnerEnableIn":{"properties":{"workspace_id":{"type":"integer","title":"Workspace Id"},"revenue_share_bps":{"type":"integer","maximum":10000.0,"minimum":0.0,"title":"Revenue Share Bps","default":1500}},"type":"object","required":["workspace_id"],"title":"PartnerEnableIn"},"PartnerLeadIn":{"properties":{"contact_name":{"type":"string","title":"Contact Name","default":""},"contact_email":{"type":"string","title":"Contact Email","default":""},"company_name":{"type":"string","title":"Company Name","default":""},"utm_source":{"type":"string","title":"Utm Source","default":""},"utm_medium":{"type":"string","title":"Utm Medium","default":""},"utm_campaign":{"type":"string","title":"Utm Campaign","default":""}},"type":"object","title":"PartnerLeadIn"},"PartnerLeadStageIn":{"properties":{"stage":{"type":"string","title":"Stage"}},"type":"object","required":["stage"],"title":"PartnerLeadStageIn"},"PartnerLinkClientIn":{"properties":{"client_workspace_id":{"type":"integer","title":"Client Workspace Id"}},"type":"object","required":["client_workspace_id"],"title":"PartnerLinkClientIn"},"PartnerProvisionClientIn":{"properties":{"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"},"slug":{"type":"string","maxLength":80,"minLength":2,"pattern":"^[a-z0-9\\-]+$","title":"Slug"},"playbook_key":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Playbook Key"}},"type":"object","required":["name","slug"],"title":"PartnerProvisionClientIn"},"PasswordChangeIn":{"properties":{"current_password":{"type":"string","maxLength":300,"minLength":1,"title":"Current Password"},"new_password":{"type":"string","maxLength":300,"minLength":10,"title":"New Password"}},"type":"object","required":["current_password","new_password"],"title":"PasswordChangeIn"},"PlanCryptoCheckoutIn":{"properties":{"plan":{"type":"string","title":"Plan"},"pay_currency":{"type":"string","title":"Pay Currency","default":"USDTERC20"}},"type":"object","required":["plan"],"title":"PlanCryptoCheckoutIn"},"PlaybookCheckoutIn":{"properties":{"playbook_key":{"type":"string","maxLength":80,"minLength":2,"title":"Playbook Key"},"success_url":{"type":"string","maxLength":2000,"title":"Success Url","default":""},"cancel_url":{"type":"string","maxLength":2000,"title":"Cancel Url","default":""}},"type":"object","required":["playbook_key"],"title":"PlaybookCheckoutIn"},"PlaybookSelectIn":{"properties":{"playbook_key":{"type":"string","maxLength":60,"minLength":2,"title":"Playbook Key"}},"type":"object","required":["playbook_key"],"title":"PlaybookSelectIn"},"PrivateDealBody":{"properties":{"is_private":{"type":"boolean","title":"Is Private"}},"type":"object","required":["is_private"],"title":"PrivateDealBody"},"ProcessingRestrictionIn":{"properties":{"reason":{"type":"string","title":"Reason","default":""}},"type":"object","title":"ProcessingRestrictionIn"},"ProposalIn":{"properties":{"type":{"type":"string","maxLength":32,"title":"Type","default":"quote"},"target_lang":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Target Lang"}},"type":"object","title":"ProposalIn"},"PublicIncidentIn":{"properties":{"title":{"type":"string","maxLength":200,"title":"Title"},"severity":{"type":"string","maxLength":16,"title":"Severity"},"service":{"type":"string","maxLength":32,"title":"Service"},"description":{"type":"string","maxLength":2000,"title":"Description","default":""}},"type":"object","required":["title","severity","service"],"title":"PublicIncidentIn"},"PublicIncidentUpdateIn":{"properties":{"status":{"type":"string","maxLength":20,"title":"Status"},"update_message":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Update Message"}},"type":"object","required":["status"],"title":"PublicIncidentUpdateIn"},"PublicSalesMailIn":{"properties":{"sender_email":{"type":"string","maxLength":320,"minLength":5,"title":"Sender Email"},"subject":{"type":"string","maxLength":200,"title":"Subject","default":""},"body":{"type":"string","maxLength":50000,"minLength":4,"title":"Body"},"website":{"type":"string","maxLength":200,"title":"Website","default":""}},"type":"object","required":["sender_email","body"],"title":"PublicSalesMailIn"},"QuickReplyIn":{"properties":{"lead_id":{"type":"integer","title":"Lead Id"},"body":{"type":"string","maxLength":8000,"minLength":1,"title":"Body"},"channel":{"type":"string","maxLength":40,"title":"Channel","default":"wecom"}},"type":"object","required":["lead_id","body"],"title":"QuickReplyIn"},"RagCopilotQueryIn":{"properties":{"question":{"type":"string","title":"Question"},"lead_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Lead Id"},"lang":{"type":"string","title":"Lang","default":"en"}},"type":"object","required":["question"],"title":"RagCopilotQueryIn"},"RagQueryIn":{"properties":{"question":{"type":"string","maxLength":1000,"minLength":2,"title":"Question"},"lead_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Lead Id"}},"type":"object","required":["question"],"title":"RagQueryIn"},"RectificationProcessIn":{"properties":{"approve":{"type":"boolean","title":"Approve"}},"type":"object","required":["approve"],"title":"RectificationProcessIn"},"RectificationRequestIn":{"properties":{"field_name":{"type":"string","title":"Field Name"},"requested_value":{"type":"string","title":"Requested Value"},"reason":{"type":"string","title":"Reason","default":""}},"type":"object","required":["field_name","requested_value"],"title":"RectificationRequestIn"},"ReplySuggestionsIn":{"properties":{"target_lang":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Target Lang"}},"type":"object","title":"ReplySuggestionsIn"},"ReportScheduleIn":{"properties":{"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"},"frequency":{"type":"string","maxLength":20,"title":"Frequency","default":"weekly"}},"type":"object","required":["name"],"title":"ReportScheduleIn"},"ReportingNarrativeIn":{"properties":{"target_lang":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Target Lang"}},"type":"object","title":"ReportingNarrativeIn"},"RetentionPurgeIn":{"properties":{"dry_run":{"type":"boolean","title":"Dry Run","default":true}},"type":"object","title":"RetentionPurgeIn"},"RevShareOfferIn":{"properties":{"provider_id":{"type":"string","title":"Provider Id"},"category":{"type":"string","title":"Category","default":"other"},"title_de":{"type":"string","title":"Title De"},"title_en":{"type":"string","title":"Title En"},"title_zh":{"type":"string","title":"Title Zh"},"desc_de":{"type":"string","title":"Desc De","default":""},"desc_en":{"type":"string","title":"Desc En","default":""},"desc_zh":{"type":"string","title":"Desc Zh","default":""},"price_eur":{"type":"integer","title":"Price Eur","default":0},"commission_pct":{"type":"integer","title":"Commission Pct","default":20},"conversion_type":{"type":"string","title":"Conversion Type","default":"lead"},"tracking_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tracking Url"},"sort_order":{"type":"integer","title":"Sort Order","default":0}},"type":"object","required":["provider_id","title_de","title_en","title_zh"],"title":"RevShareOfferIn"},"RevShareOfferPatch":{"properties":{"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"title_de":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title De"},"title_en":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title En"},"title_zh":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title Zh"},"desc_de":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Desc De"},"desc_en":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Desc En"},"desc_zh":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Desc Zh"},"price_eur":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Price Eur"},"commission_pct":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Commission Pct"},"conversion_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conversion Type"},"tracking_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tracking Url"},"is_active":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Is Active"},"publish_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Publish Status"},"sort_order":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sort Order"}},"type":"object","title":"RevShareOfferPatch"},"RevShareProviderIn":{"properties":{"name":{"type":"string","title":"Name"},"company":{"type":"string","title":"Company"},"email":{"type":"string","title":"Email"},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website"},"contact_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Name"},"commission_pct":{"type":"integer","title":"Commission Pct","default":20},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["name","company","email"],"title":"RevShareProviderIn"},"RoleChangeIn":{"properties":{"role":{"type":"string","maxLength":20,"minLength":2,"title":"Role"}},"type":"object","required":["role"],"title":"RoleChangeIn"},"SSOConfigBody":{"properties":{"provider":{"type":"string","title":"Provider"},"client_id":{"type":"string","title":"Client Id"},"client_secret":{"type":"string","title":"Client Secret","default":""},"domain":{"type":"string","title":"Domain","default":""},"discovery_url":{"type":"string","title":"Discovery Url","default":""},"enabled":{"type":"boolean","title":"Enabled","default":true}},"type":"object","required":["provider","client_id"],"title":"SSOConfigBody"},"SalesHomePrefIn":{"properties":{"home":{"type":"string","maxLength":16,"minLength":1,"title":"Home"}},"type":"object","required":["home"],"title":"SalesHomePrefIn"},"SalesLayoutPrefIn":{"properties":{"enabled":{"type":"boolean","title":"Enabled"}},"type":"object","required":["enabled"],"title":"SalesLayoutPrefIn"},"SalesTargetUpsertIn":{"properties":{"user_id":{"type":"integer","title":"User Id"},"period_month":{"anyOf":[{"type":"string","maxLength":7},{"type":"null"}],"title":"Period Month"},"quota_leads":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Quota Leads"},"quota_pipeline_value":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Quota Pipeline Value"},"quota_activities":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Quota Activities"}},"type":"object","required":["user_id"],"title":"SalesTargetUpsertIn"},"SamlConfigBody":{"properties":{"idp_metadata_url":{"type":"string","title":"Idp Metadata Url","default":""},"idp_entity_id":{"type":"string","title":"Idp Entity Id","default":""},"idp_sso_url":{"type":"string","title":"Idp Sso Url","default":""},"fallback_email_login":{"type":"boolean","title":"Fallback Email Login","default":true}},"type":"object","title":"SamlConfigBody"},"SavedReplyIn":{"properties":{"title":{"type":"string","maxLength":100,"minLength":1,"title":"Title"},"body":{"type":"string","maxLength":4000,"minLength":1,"title":"Body"},"shortcut":{"anyOf":[{"type":"string","maxLength":30},{"type":"null"}],"title":"Shortcut"}},"type":"object","required":["title","body"],"title":"SavedReplyIn"},"ScimTokenBody":{"properties":{"description":{"type":"string","title":"Description","default":""}},"type":"object","title":"ScimTokenBody"},"SegmentIn":{"properties":{"name":{"type":"string","maxLength":80,"minLength":1,"title":"Name"},"filters":{"type":"object","title":"Filters"}},"type":"object","required":["name"],"title":"SegmentIn"},"SequenceCreateIn":{"properties":{"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"},"steps":{"items":{},"type":"array","title":"Steps"},"enrollment_rules":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Enrollment Rules"}},"type":"object","required":["name"],"title":"SequenceCreateIn"},"SequenceEnrollmentIn":{"properties":{"enrollment_rules":{"type":"object","title":"Enrollment Rules"}},"type":"object","title":"SequenceEnrollmentIn"},"SequenceStartIn":{"properties":{"sequence_id":{"type":"integer","title":"Sequence Id"}},"type":"object","required":["sequence_id"],"title":"SequenceStartIn"},"ServiceInquiryPayload":{"properties":{"contact_name":{"type":"string","title":"Contact Name"},"contact_email":{"type":"string","title":"Contact Email"},"message":{"type":"string","title":"Message","default":""}},"type":"object","required":["contact_name","contact_email"],"title":"ServiceInquiryPayload"},"ServiceReviewPayload":{"properties":{"rating":{"type":"integer","title":"Rating"},"comment":{"type":"string","title":"Comment","default":""}},"type":"object","required":["rating"],"title":"ServiceReviewPayload"},"SessionPolicyBody":{"properties":{"max_age_seconds":{"type":"integer","minimum":300.0,"title":"Max Age Seconds","default":604800},"inactivity_timeout_seconds":{"type":"integer","minimum":0.0,"title":"Inactivity Timeout Seconds","default":0}},"type":"object","title":"SessionPolicyBody"},"SessionPolicyExtendedIn":{"properties":{"idle_timeout_minutes":{"type":"integer","minimum":5.0,"title":"Idle Timeout Minutes","default":30},"max_session_hours":{"type":"integer","minimum":1.0,"title":"Max Session Hours","default":8},"max_concurrent_sessions":{"type":"integer","minimum":1.0,"title":"Max Concurrent Sessions","default":5},"ip_lock_enabled":{"type":"boolean","title":"Ip Lock Enabled","default":false}},"type":"object","title":"SessionPolicyExtendedIn"},"SettingsIn":{"properties":{"values":{"type":"object","title":"Values"}},"type":"object","title":"SettingsIn"},"SignalApiKeyCreateIn":{"properties":{"workspace_id":{"type":"integer","title":"Workspace Id"},"name":{"type":"string","title":"Name","default":""},"rate_limit_per_day":{"type":"integer","title":"Rate Limit Per Day","default":200}},"type":"object","required":["workspace_id"],"title":"SignalApiKeyCreateIn"},"SignalExchangeIngestIn":{"properties":{"network_source_key":{"type":"string","maxLength":64,"minLength":2,"title":"Network Source Key"},"signal_type":{"type":"string","maxLength":64,"minLength":2,"title":"Signal Type"},"title":{"type":"string","maxLength":500,"minLength":4,"title":"Title"},"body":{"type":"string","maxLength":4000,"title":"Body","default":""},"company_hint":{"type":"string","maxLength":200,"title":"Company Hint","default":""},"price_cents":{"anyOf":[{"type":"integer","maximum":5000.0,"minimum":500.0},{"type":"null"}],"title":"Price Cents"},"expires_days":{"type":"integer","maximum":90.0,"minimum":1.0,"title":"Expires Days","default":30},"external_signal_id":{"type":"string","maxLength":200,"title":"External Signal Id","default":""},"publisher_workspace_id":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Publisher Workspace Id"}},"type":"object","required":["network_source_key","signal_type","title"],"title":"SignalExchangeIngestIn"},"SignalExchangePublishIn":{"properties":{"signal_type":{"type":"string","maxLength":64,"minLength":2,"title":"Signal Type"},"title":{"type":"string","maxLength":500,"minLength":4,"title":"Title"},"body":{"type":"string","maxLength":4000,"title":"Body","default":""},"company_hint":{"type":"string","maxLength":200,"title":"Company Hint","default":""},"price_cents":{"anyOf":[{"type":"integer","maximum":5000.0,"minimum":500.0},{"type":"null"}],"title":"Price Cents"},"expires_days":{"type":"integer","maximum":90.0,"minimum":1.0,"title":"Expires Days","default":30}},"type":"object","required":["signal_type","title"],"title":"SignalExchangePublishIn"},"SignalMktListingIn":{"properties":{"category":{"type":"string","title":"Category"},"title_de":{"type":"string","title":"Title De"},"title_en":{"type":"string","title":"Title En"},"title_zh":{"type":"string","title":"Title Zh"},"desc_de":{"type":"string","title":"Desc De","default":""},"desc_en":{"type":"string","title":"Desc En","default":""},"desc_zh":{"type":"string","title":"Desc Zh","default":""},"price_per_signal_cents":{"type":"integer","title":"Price Per Signal Cents","default":2000},"min_bundle":{"type":"integer","title":"Min Bundle","default":5},"sort_order":{"type":"integer","title":"Sort Order","default":0}},"type":"object","required":["category","title_de","title_en","title_zh"],"title":"SignalMktListingIn"},"SignalMktOrderIn":{"properties":{"listing_id":{"type":"string","title":"Listing Id"},"signal_count":{"type":"integer","title":"Signal Count"}},"type":"object","required":["listing_id","signal_count"],"title":"SignalMktOrderIn"},"SnoozeIn":{"properties":{"days":{"type":"integer","maximum":60.0,"minimum":1.0,"title":"Days","default":3}},"type":"object","title":"SnoozeIn"},"StageIn":{"properties":{"stage":{"type":"string","maxLength":20,"minLength":2,"title":"Stage"}},"type":"object","required":["stage"],"title":"StageIn"},"StakeholderBody":{"properties":{"name":{"type":"string","title":"Name"},"role":{"type":"string","title":"Role","default":"stakeholder"},"email":{"type":"string","title":"Email","default":""},"note":{"type":"string","title":"Note","default":""},"contact_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Contact Id"}},"type":"object","required":["name"],"title":"StakeholderBody"},"StoreCheckoutIn":{"properties":{"product_key":{"type":"string","maxLength":120,"minLength":2,"title":"Product Key"},"email":{"type":"string","maxLength":240,"title":"Email","default":""}},"type":"object","required":["product_key"],"title":"StoreCheckoutIn"},"StoreOrderCompleteIn":{"properties":{"order_id":{"type":"integer","exclusiveMinimum":0.0,"title":"Order Id"},"paypal_order_id":{"type":"string","maxLength":160,"title":"Paypal Order Id","default":""}},"type":"object","required":["order_id"],"title":"StoreOrderCompleteIn"},"StoreProductIn":{"properties":{"product_key":{"type":"string","maxLength":120,"minLength":2,"title":"Product Key"},"email":{"type":"string","maxLength":240,"title":"Email","default":""}},"type":"object","required":["product_key"],"title":"StoreProductIn"},"StripeCheckoutIn":{"properties":{"success_url":{"type":"string","maxLength":2000,"title":"Success Url","default":""},"cancel_url":{"type":"string","maxLength":2000,"title":"Cancel Url","default":""}},"type":"object","title":"StripeCheckoutIn"},"StripePortalIn":{"properties":{"return_url":{"type":"string","maxLength":2000,"title":"Return Url","default":""}},"type":"object","title":"StripePortalIn"},"SubscriptionOut":{"properties":{"subscription_id":{"type":"string","title":"Subscription Id"},"approval_url":{"type":"string","title":"Approval Url"}},"type":"object","required":["subscription_id","approval_url"],"title":"SubscriptionOut"},"SupersetGuestTokenIn":{"properties":{"workspace_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Workspace Id"},"scope_user_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Scope User Id"},"scope_mode":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Scope Mode"}},"type":"object","title":"SupersetGuestTokenIn"},"TeamCommentIn":{"properties":{"body":{"type":"string","maxLength":4000,"minLength":1,"title":"Body"},"contact_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Contact Id"},"company_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Company Id"},"deal_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Deal Id"},"lead_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Lead Id"}},"type":"object","required":["body"],"title":"TeamCommentIn"},"TourSeenIn":{"properties":{"tip_key":{"type":"string","maxLength":40,"minLength":1,"title":"Tip Key"}},"type":"object","required":["tip_key"],"title":"TourSeenIn"},"TradeDocumentIn":{"properties":{"document_type":{"type":"string","title":"Document Type"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"status":{"type":"string","title":"Status","default":"missing"},"reference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reference"}},"type":"object","required":["document_type"],"title":"TradeDocumentIn"},"TradeMilestoneIn":{"properties":{"milestone_type":{"type":"string","title":"Milestone Type"},"label":{"type":"string","title":"Label"},"status":{"type":"string","title":"Status","default":"pending"},"due_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Due Date"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"type":"object","required":["milestone_type","label"],"title":"TradeMilestoneIn"},"TradeMilestonePatchIn":{"properties":{"status":{"type":"string","title":"Status"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"type":"object","required":["status"],"title":"TradeMilestonePatchIn"},"TradeOpsIn":{"properties":{"purchase_order_no":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Purchase Order No"},"supplier_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Supplier Name"},"supplier_contact":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Supplier Contact"},"incoterm":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Incoterm"},"origin_country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Origin Country"},"destination_country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Destination Country"},"shipment_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Shipment Status"},"customs_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customs Status"},"payment_milestone_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payment Milestone Status"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","title":"TradeOpsIn"},"TranslationMemoryIn":{"properties":{"source_lang":{"type":"string","maxLength":12,"minLength":2,"title":"Source Lang"},"target_lang":{"type":"string","maxLength":12,"minLength":2,"title":"Target Lang"},"source_text":{"type":"string","maxLength":2000,"minLength":1,"title":"Source Text"},"preferred_text":{"type":"string","maxLength":2000,"minLength":1,"title":"Preferred Text"},"contact_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Contact Id"},"context":{"type":"string","maxLength":240,"title":"Context","default":""}},"type":"object","required":["source_lang","target_lang","source_text","preferred_text"],"title":"TranslationMemoryIn"},"TrelloFeedbackIn":{"properties":{"title":{"type":"string","maxLength":200,"minLength":3,"title":"Title"},"description":{"type":"string","maxLength":8000,"minLength":5,"title":"Description"},"category":{"type":"string","enum":["feature","bug","requirement","other"],"title":"Category","default":"feature"}},"type":"object","required":["title","description"],"title":"TrelloFeedbackIn"},"UpgradeRequestIn":{"properties":{"contact_email":{"type":"string","maxLength":200,"minLength":3,"title":"Contact Email"},"plan":{"type":"string","pattern":"^(starter|pro|enterprise)$","title":"Plan","default":"pro"},"message":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Message"}},"type":"object","required":["contact_email"],"title":"UpgradeRequestIn"},"ValidateScopesIn":{"properties":{"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"}},"type":"object","required":["scopes"],"title":"ValidateScopesIn"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"VaultStoreIn":{"properties":{"key":{"type":"string","maxLength":128,"title":"Key"},"value":{"type":"string","maxLength":4096,"title":"Value"}},"type":"object","required":["key","value"],"title":"VaultStoreIn"},"WaCheckIn":{"properties":{"message_body":{"type":"string","maxLength":4096,"title":"Message Body"}},"type":"object","required":["message_body"],"title":"WaCheckIn"},"WaTemplateComplianceIn":{"properties":{"name":{"type":"string","maxLength":120,"title":"Name"},"category":{"type":"string","maxLength":32,"title":"Category"},"language":{"type":"string","maxLength":8,"title":"Language","default":"en"},"body":{"type":"string","maxLength":4096,"title":"Body"}},"type":"object","required":["name","category","body"],"title":"WaTemplateComplianceIn"},"WaTemplateIn":{"properties":{"name":{"type":"string","maxLength":60,"minLength":1,"title":"Name"},"category":{"type":"string","title":"Category","default":"MARKETING"},"language":{"type":"string","title":"Language","default":"en"},"body":{"type":"string","maxLength":1024,"minLength":1,"title":"Body"}},"type":"object","required":["name","body"],"title":"WaTemplateIn"},"WaTemplateSendIn":{"properties":{"lead_id":{"type":"integer","title":"Lead Id"},"template_id":{"type":"integer","title":"Template Id"}},"type":"object","required":["lead_id","template_id"],"title":"WaTemplateSendIn"},"WaTemplateStatusIn":{"properties":{"status":{"type":"string","maxLength":16,"title":"Status"},"reviewer_note":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Reviewer Note"}},"type":"object","required":["status"],"title":"WaTemplateStatusIn"},"WeChatLeadIn":{"properties":{"wechat_contact":{"type":"string","maxLength":120,"minLength":2,"title":"Wechat Contact"},"company":{"type":"string","maxLength":120,"minLength":2,"title":"Company"},"message":{"type":"string","maxLength":1000,"minLength":2,"title":"Message"},"campaign_label":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Campaign Label"}},"type":"object","required":["wechat_contact","company","message"],"title":"WeChatLeadIn"},"WeComApproveIn":{"properties":{"message_id":{"type":"integer","title":"Message Id"}},"type":"object","required":["message_id"],"title":"WeComApproveIn"},"WeComCheckIn":{"properties":{"message_body":{"type":"string","maxLength":4096,"title":"Message Body"}},"type":"object","required":["message_body"],"title":"WeComCheckIn"},"WeComDraftIn":{"properties":{"body":{"type":"string","maxLength":2000,"minLength":1,"title":"Body"},"body_lang":{"type":"string","maxLength":10,"title":"Body Lang","default":"zh"}},"type":"object","required":["body"],"title":"WeComDraftIn"},"WeComPipelineIn":{"properties":{"zh_text":{"type":"string","maxLength":4000,"minLength":1,"title":"Zh Text"},"target_lang":{"type":"string","maxLength":10,"title":"Target Lang","default":"en"},"company":{"type":"string","maxLength":200,"title":"Company","default":""}},"type":"object","required":["zh_text"],"title":"WeComPipelineIn"},"WeComPolicyIn":{"properties":{"forbidden_keywords":{"items":{"type":"string"},"type":"array","title":"Forbidden Keywords"},"required_disclaimer":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Required Disclaimer"},"is_active":{"type":"boolean","title":"Is Active","default":true}},"type":"object","title":"WeComPolicyIn"},"WebhookCreateIn":{"properties":{"name":{"type":"string","maxLength":160,"minLength":1,"title":"Name"},"url":{"type":"string","maxLength":2000,"minLength":8,"title":"Url"},"events":{"items":{"type":"string"},"type":"array","title":"Events"},"secret":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Secret"}},"type":"object","required":["name","url"],"title":"WebhookCreateIn"},"WebhookSimulateIn":{"properties":{"event_type":{"type":"string","maxLength":80,"minLength":1,"title":"Event Type"},"custom_payload":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Custom Payload"}},"type":"object","required":["event_type"],"title":"WebhookSimulateIn"},"WebhookVerifyIn":{"properties":{"payload":{"type":"string","title":"Payload"},"signature_header":{"type":"string","title":"Signature Header"},"timestamp_header":{"type":"string","title":"Timestamp Header"},"secret":{"type":"string","title":"Secret"}},"type":"object","required":["payload","signature_header","timestamp_header","secret"],"title":"WebhookVerifyIn"},"WhatsAppSendIn":{"properties":{"lead_id":{"type":"integer","title":"Lead Id"},"body":{"type":"string","maxLength":4096,"minLength":1,"title":"Body"}},"type":"object","required":["lead_id","body"],"title":"WhatsAppSendIn"},"WhatsappOpenIn":{"properties":{"contact_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Contact Id"},"lead_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Lead Id"},"phone":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Phone"},"draft_text":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Draft Text"},"source":{"type":"string","maxLength":40,"title":"Source","default":"ui"}},"type":"object","title":"WhatsappOpenIn"},"WorkflowAutomationsIn":{"properties":{"hot_lead_slack_analyze":{"type":"boolean","title":"Hot Lead Slack Analyze","default":false},"new_lead_analyze":{"type":"boolean","title":"New Lead Analyze","default":false},"stale_followup":{"type":"boolean","title":"Stale Followup","default":false}},"type":"object","title":"WorkflowAutomationsIn"},"WorkflowPermissionBody":{"properties":{"role":{"type":"string","title":"Role"},"can_edit_automations":{"type":"boolean","title":"Can Edit Automations"},"can_run_ai_actions":{"type":"boolean","title":"Can Run Ai Actions"}},"type":"object","required":["role","can_edit_automations","can_run_ai_actions"],"title":"WorkflowPermissionBody"},"WorkspaceAiAutomationIn":{"properties":{"auto_analyze_enabled":{"type":"boolean","title":"Auto Analyze Enabled","default":false},"auto_analyze_batch":{"type":"integer","maximum":25.0,"minimum":1.0,"title":"Auto Analyze Batch","default":8},"auto_draft_hot_enabled":{"type":"boolean","title":"Auto Draft Hot Enabled","default":false}},"type":"object","title":"WorkspaceAiAutomationIn"},"WorkspaceSecretsUpdateIn":{"properties":{"values":{"additionalProperties":{"type":"string"},"type":"object","title":"Values"}},"type":"object","title":"WorkspaceSecretsUpdateIn","description":"Map of env-style key → new value. Empty string removes a stored secret."},"ZapierActionContactIn":{"properties":{"name":{"type":"string","title":"Name"},"email":{"type":"string","title":"Email"},"company":{"type":"string","title":"Company","default":""},"phone":{"type":"string","title":"Phone","default":""},"source":{"type":"string","title":"Source","default":"zapier"}},"type":"object","required":["name","email"],"title":"ZapierActionContactIn"},"ZapierActionSignalIn":{"properties":{"domain":{"type":"string","title":"Domain"},"signal_type":{"type":"string","title":"Signal Type","default":"buying_intent"},"interest":{"type":"string","title":"Interest","default":"CRM"},"score":{"type":"integer","title":"Score","default":70},"company_name":{"type":"string","title":"Company Name","default":""},"source_url":{"type":"string","title":"Source Url","default":""}},"type":"object","required":["domain"],"title":"ZapierActionSignalIn"},"ZapierHookSubscribeIn":{"properties":{"hookUrl":{"type":"string","title":"Hookurl"},"event":{"type":"string","title":"Event"},"zapId":{"type":"string","title":"Zapid","default":""}},"type":"object","required":["hookUrl","event"],"title":"ZapierHookSubscribeIn"},"_AbTestIn":{"properties":{"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"},"url_a":{"type":"string","maxLength":500,"title":"Url A"},"url_b":{"type":"string","maxLength":500,"title":"Url B"},"split_pct":{"type":"integer","maximum":90.0,"minimum":10.0,"title":"Split Pct","default":50}},"type":"object","required":["name","url_a","url_b"],"title":"_AbTestIn"},"_AdScoutSearchIn":{"properties":{"query":{"type":"string","maxLength":200,"minLength":1,"title":"Query"},"country":{"type":"string","maxLength":2,"title":"Country","default":"DE"},"limit":{"type":"integer","maximum":50.0,"minimum":1.0,"title":"Limit","default":25}},"type":"object","required":["query"],"title":"_AdScoutSearchIn"},"_AdScoutToLeadIn":{"properties":{"result_id":{"type":"integer","exclusiveMinimum":0.0,"title":"Result Id"},"fit_score":{"anyOf":[{"type":"integer","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Fit Score"}},"type":"object","required":["result_id"],"title":"_AdScoutToLeadIn"},"_AffDeepLinkIn":{"properties":{"destination_url":{"type":"string","maxLength":500,"title":"Destination Url"},"product_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product Id"},"workspace_id":{"type":"integer","minimum":1.0,"title":"Workspace Id","default":1},"label":{"type":"string","maxLength":160,"title":"Label","default":""},"utm_source":{"type":"string","maxLength":100,"title":"Utm Source","default":""},"utm_medium":{"type":"string","maxLength":100,"title":"Utm Medium","default":""},"utm_campaign":{"type":"string","maxLength":100,"title":"Utm Campaign","default":""},"utm_content":{"type":"string","maxLength":100,"title":"Utm Content","default":""},"utm_term":{"type":"string","maxLength":100,"title":"Utm Term","default":""},"base_commission_bps":{"type":"integer","minimum":0.0,"title":"Base Commission Bps","default":1000}},"type":"object","required":["destination_url"],"title":"_AffDeepLinkIn"},"_AffProductIn":{"properties":{"workspace_id":{"type":"integer","title":"Workspace Id"},"name":{"type":"string","maxLength":200,"title":"Name"},"description":{"type":"string","maxLength":1000,"title":"Description","default":""},"destination_url":{"type":"string","maxLength":500,"title":"Destination Url"},"category":{"type":"string","maxLength":80,"title":"Category","default":""},"commission_type":{"type":"string","title":"Commission Type","default":"cpa"},"commission_bps":{"type":"integer","minimum":0.0,"title":"Commission Bps","default":1000},"image_url":{"type":"string","maxLength":500,"title":"Image Url","default":""}},"type":"object","required":["workspace_id","name","destination_url"],"title":"_AffProductIn"},"_AffiliateLinkIn":{"properties":{"destination_url":{"type":"string","title":"Destination Url"},"label":{"type":"string","title":"Label","default":""},"campaign_brief_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campaign Brief Id"},"contract_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contract Id"},"commission_bps":{"type":"integer","title":"Commission Bps","default":1000},"conversion_value_cents":{"type":"integer","title":"Conversion Value Cents","default":0}},"type":"object","required":["destination_url"],"title":"_AffiliateLinkIn"},"_AgentAutoAuctionIn":{"properties":{"signal_id":{"type":"string","title":"Signal Id"},"min_bid_usdc":{"type":"number","maximum":100000.0,"minimum":1.0,"title":"Min Bid Usdc","default":50.0},"duration_hours":{"type":"integer","maximum":720.0,"minimum":1.0,"title":"Duration Hours","default":72},"payment_token_symbol":{"type":"string","title":"Payment Token Symbol","default":"USDC"}},"type":"object","required":["signal_id"],"title":"_AgentAutoAuctionIn"},"_AiSourceSuggestIn":{"properties":{"icp_description":{"type":"string","maxLength":600,"title":"Icp Description","default":""}},"type":"object","title":"_AiSourceSuggestIn"},"_AiZoneIn":{"properties":{"ai_zone":{"type":"string","title":"Ai Zone","default":"global"},"ai_provider_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Provider Key"},"ai_tier":{"type":"string","title":"Ai Tier","default":"standard"}},"type":"object","title":"_AiZoneIn"},"_AlertCreateIn":{"properties":{"asset_class":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Asset Class"},"signal_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Signal Type"},"max_price_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Price Cents"}},"type":"object","title":"_AlertCreateIn"},"_ApifyLinkIn":{"properties":{"signal_id":{"type":"string","title":"Signal Id"},"lead_id":{"type":"integer","title":"Lead Id"},"score_boost":{"type":"integer","maximum":30.0,"minimum":0.0,"title":"Score Boost","default":10}},"type":"object","required":["signal_id","lead_id"],"title":"_ApifyLinkIn"},"_ApolloSyncIn":{"properties":{"signal_type":{"type":"string","title":"Signal Type"},"page":{"type":"integer","title":"Page","default":1},"per_page":{"type":"integer","title":"Per Page","default":25}},"type":"object","required":["signal_type"],"title":"_ApolloSyncIn"},"_ApplicationIn":{"properties":{"brief_id":{"type":"string","title":"Brief Id"},"message":{"type":"string","title":"Message","default":""}},"type":"object","required":["brief_id"],"title":"_ApplicationIn"},"_AttributionChannelCostIn":{"properties":{"channel":{"type":"string","maxLength":40,"title":"Channel"},"month":{"type":"string","pattern":"^\\d{4}-\\d{2}$","title":"Month"},"cost_eur":{"type":"number","minimum":0.0,"title":"Cost Eur"}},"type":"object","required":["channel","month","cost_eur"],"title":"_AttributionChannelCostIn"},"_AuctionNowPayCreateIn":{"properties":{"buyer_id":{"type":"string","title":"Buyer Id"},"pay_currency":{"type":"string","title":"Pay Currency","default":"USDTERC20"},"ipn_callback_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ipn Callback Url"}},"type":"object","required":["buyer_id"],"title":"_AuctionNowPayCreateIn"},"_AudienceInsightsIn":{"properties":{"platform":{"type":"string","maxLength":60,"title":"Platform"},"total_reach":{"type":"integer","minimum":0.0,"title":"Total Reach"},"avg_engagement_rate":{"type":"number","minimum":0.0,"title":"Avg Engagement Rate","default":0.0},"demographics":{"type":"object","title":"Demographics"}},"type":"object","required":["platform","total_reach"],"title":"_AudienceInsightsIn"},"_AudienceSnapshotIn":{"properties":{"platform":{"type":"string","maxLength":60,"title":"Platform","default":""},"total_reach":{"type":"integer","minimum":0.0,"title":"Total Reach","default":0},"demo_18_24":{"type":"integer","maximum":100.0,"minimum":0.0,"title":"Demo 18 24","default":0},"demo_25_34":{"type":"integer","maximum":100.0,"minimum":0.0,"title":"Demo 25 34","default":0},"demo_35_44":{"type":"integer","maximum":100.0,"minimum":0.0,"title":"Demo 35 44","default":0},"demo_45_plus":{"type":"integer","maximum":100.0,"minimum":0.0,"title":"Demo 45 Plus","default":0}},"type":"object","title":"_AudienceSnapshotIn"},"_AwinLinkCreateIn":{"properties":{"programme_id":{"type":"string","maxLength":20,"minLength":1,"title":"Programme Id"},"destination_url":{"type":"string","maxLength":2000,"minLength":10,"title":"Destination Url"},"label":{"type":"string","maxLength":100,"title":"Label","default":""}},"type":"object","required":["programme_id","destination_url"],"title":"_AwinLinkCreateIn"},"_BlockIpBody":{"properties":{"ip_cidr":{"type":"string","title":"Ip Cidr"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason","default":""}},"type":"object","required":["ip_cidr"],"title":"_BlockIpBody"},"_BlockchainAuctionIn":{"properties":{"min_bid_matic":{"type":"number","title":"Min Bid Matic"},"duration_hours":{"type":"integer","title":"Duration Hours","default":48},"seller_wallet":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Seller Wallet"}},"type":"object","required":["min_bid_matic"],"title":"_BlockchainAuctionIn"},"_BlockchainBidIn":{"properties":{"signal_id":{"type":"string","title":"Signal Id"},"bidder_address":{"type":"string","title":"Bidder Address"},"bid_wei":{"type":"string","title":"Bid Wei"},"tx_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tx Hash"}},"type":"object","required":["signal_id","bidder_address","bid_wei"],"title":"_BlockchainBidIn"},"_BlockchainRelayBidIn":{"properties":{"signal_id":{"type":"string","title":"Signal Id"},"payment_token":{"type":"string","title":"Payment Token"},"amount_wei":{"type":"string","title":"Amount Wei"},"bidder_address":{"type":"string","title":"Bidder Address"},"deadline":{"type":"integer","title":"Deadline"},"signature":{"type":"string","title":"Signature"}},"type":"object","required":["signal_id","payment_token","amount_wei","bidder_address","deadline","signature"],"title":"_BlockchainRelayBidIn"},"_BlockchainRelayBuyIn":{"properties":{"signal_id":{"type":"string","title":"Signal Id"},"buyer_address":{"type":"string","title":"Buyer Address"},"deadline":{"type":"integer","title":"Deadline"},"signature":{"type":"string","title":"Signature"}},"type":"object","required":["signal_id","buyer_address","deadline","signature"],"title":"_BlockchainRelayBuyIn"},"_BlogPostIn":{"properties":{"title":{"type":"string","title":"Title"},"slug":{"type":"string","title":"Slug"},"description":{"type":"string","title":"Description","default":""},"tags":{"items":{"type":"string"},"type":"array","title":"Tags","default":[]},"body_md":{"type":"string","title":"Body Md","default":""},"sprint":{"type":"string","title":"Sprint","default":""}},"type":"object","required":["title","slug"],"title":"_BlogPostIn"},"_BrandBriefIn":{"properties":{"brand_name":{"type":"string","title":"Brand Name"},"campaign_type":{"type":"string","title":"Campaign Type","default":"other"},"title":{"type":"string","title":"Title"},"description":{"type":"string","title":"Description","default":""},"target_platforms":{"items":{"type":"string"},"type":"array","title":"Target Platforms","default":[]},"target_audience":{"type":"string","title":"Target Audience","default":""},"budget_min_cents":{"type":"integer","title":"Budget Min Cents","default":0},"budget_max_cents":{"type":"integer","title":"Budget Max Cents","default":0},"region":{"type":"string","title":"Region","default":""},"deadline_date":{"type":"string","title":"Deadline Date","default":""},"kpi":{"type":"string","title":"Kpi","default":""}},"type":"object","required":["brand_name","title"],"title":"_BrandBriefIn"},"_BrandDomainIn":{"properties":{"domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domain"}},"type":"object","title":"_BrandDomainIn"},"_BriefFitIn":{"properties":{"categories":{"items":{"type":"string"},"type":"array","title":"Categories"},"target_audience":{"type":"string","maxLength":500,"title":"Target Audience","default":""}},"type":"object","title":"_BriefFitIn"},"_BudgetEstimateIn":{"properties":{"reach":{"type":"integer","minimum":0.0,"title":"Reach","default":10000},"pricing_model":{"type":"string","title":"Pricing Model","default":"flatrate"},"cpm_cents":{"type":"integer","minimum":0.0,"title":"Cpm Cents","default":200},"cpa_cents":{"type":"integer","minimum":0.0,"title":"Cpa Cents","default":1500},"flatrate_cents":{"type":"integer","minimum":0.0,"title":"Flatrate Cents","default":50000},"num_publishers":{"type":"integer","maximum":500.0,"minimum":1.0,"title":"Num Publishers","default":1}},"type":"object","title":"_BudgetEstimateIn"},"_CaseStudyIn":{"properties":{"title":{"type":"string","maxLength":200,"title":"Title"},"brand_name":{"type":"string","maxLength":120,"title":"Brand Name","default":""},"campaign_type":{"type":"string","maxLength":60,"title":"Campaign Type","default":""},"results_summary":{"type":"string","maxLength":1000,"title":"Results Summary","default":""},"reach_achieved":{"type":"integer","minimum":0.0,"title":"Reach Achieved","default":0},"engagement_rate":{"type":"number","minimum":0.0,"title":"Engagement Rate","default":0.0},"revenue_cents":{"type":"integer","minimum":0.0,"title":"Revenue Cents","default":0}},"type":"object","required":["title"],"title":"_CaseStudyIn"},"_ContentCommentIn":{"properties":{"comment":{"type":"string","maxLength":2000,"title":"Comment"}},"type":"object","required":["comment"],"title":"_ContentCommentIn"},"_ContentSubmissionIn":{"properties":{"brief_id":{"type":"string","title":"Brief Id"},"title":{"type":"string","maxLength":200,"title":"Title"},"content_url":{"type":"string","maxLength":500,"title":"Content Url"},"content_type":{"type":"string","maxLength":40,"title":"Content Type","default":"link"},"note":{"type":"string","maxLength":1000,"title":"Note","default":""}},"type":"object","required":["brief_id","title","content_url"],"title":"_ContentSubmissionIn"},"_ContractTransitionIn":{"properties":{"new_status":{"type":"string","title":"New Status"},"note":{"type":"string","title":"Note","default":""}},"type":"object","required":["new_status"],"title":"_ContractTransitionIn"},"_ConversionIn":{"properties":{"token":{"type":"string","title":"Token"},"conversion_type":{"type":"string","title":"Conversion Type","default":"sale"},"value_cents":{"type":"integer","title":"Value Cents","default":0},"order_ref":{"type":"string","title":"Order Ref","default":""},"postback_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Postback Hash"}},"type":"object","required":["token"],"title":"_ConversionIn"},"_CreditPackIn":{"properties":{"pack_id":{"type":"string","title":"Pack Id"},"success_url":{"type":"string","title":"Success Url","default":"/"},"cancel_url":{"type":"string","title":"Cancel Url","default":"/"}},"type":"object","required":["pack_id"],"title":"_CreditPackIn"},"_DeliverableIn":{"properties":{"campaign_id":{"type":"string","maxLength":120,"minLength":1,"title":"Campaign Id"},"dtype":{"type":"string","title":"Dtype","default":"post"},"title":{"type":"string","maxLength":200,"minLength":1,"title":"Title"}},"type":"object","required":["campaign_id","title"],"title":"_DeliverableIn"},"_DeliverableSubmitIn":{"properties":{"url":{"type":"string","maxLength":500,"title":"Url","default":""},"note":{"type":"string","maxLength":1000,"title":"Note","default":""}},"type":"object","title":"_DeliverableSubmitIn"},"_EarnAiBioIn":{"properties":{"platform":{"type":"string","maxLength":50,"title":"Platform","default":""},"niches":{"items":{"type":"string"},"type":"array","title":"Niches"},"followers_total":{"type":"integer","minimum":0.0,"title":"Followers Total","default":0}},"type":"object","title":"_EarnAiBioIn"},"_EarnAiSignalWhyIn":{"properties":{"signal_title":{"type":"string","maxLength":200,"title":"Signal Title"},"signal_type":{"type":"string","maxLength":50,"title":"Signal Type","default":""},"user_niches":{"items":{"type":"string"},"type":"array","title":"User Niches"}},"type":"object","required":["signal_title"],"title":"_EarnAiSignalWhyIn"},"_EarnHubApplyIn":{"properties":{"workspace_id":{"type":"integer","title":"Workspace Id"},"message":{"type":"string","maxLength":1000,"title":"Message","default":""}},"type":"object","required":["workspace_id"],"title":"_EarnHubApplyIn"},"_EarnHubProfileIn":{"properties":{"role":{"type":"string","title":"Role","default":"affiliate"},"account_type":{"type":"string","title":"Account Type","default":"personal"},"tax_id":{"type":"string","maxLength":50,"title":"Tax Id","default":""},"company_name":{"type":"string","maxLength":200,"title":"Company Name","default":""},"platform":{"type":"string","maxLength":60,"title":"Platform","default":""},"followers_total":{"type":"integer","minimum":0.0,"title":"Followers Total","default":0},"engagement_rate":{"type":"number","minimum":0.0,"title":"Engagement Rate","default":0.0},"niches":{"items":{"type":"string"},"type":"array","title":"Niches"},"bio":{"type":"string","maxLength":500,"title":"Bio","default":""},"website":{"type":"string","maxLength":300,"title":"Website","default":""},"social_links":{"additionalProperties":{"type":"string"},"type":"object","title":"Social Links"},"discoverable":{"type":"boolean","title":"Discoverable","default":true}},"type":"object","title":"_EarnHubProfileIn"},"_EarnLoginIn":{"properties":{"email":{"type":"string","title":"Email"},"password":{"type":"string","title":"Password"}},"type":"object","required":["email","password"],"title":"_EarnLoginIn"},"_EarnRegisterIn":{"properties":{"email":{"type":"string","title":"Email"},"password":{"type":"string","title":"Password"},"display_name":{"type":"string","maxLength":120,"title":"Display Name","default":""},"referral_code":{"type":"string","maxLength":20,"title":"Referral Code","default":""}},"type":"object","required":["email","password"],"title":"_EarnRegisterIn"},"_EarningsRecordIn":{"properties":{"campaign_id":{"type":"string","title":"Campaign Id"},"milestone":{"type":"string","maxLength":200,"title":"Milestone"},"amount_cents":{"type":"integer","minimum":0.0,"title":"Amount Cents"},"status":{"type":"string","title":"Status","default":"pending"}},"type":"object","required":["campaign_id","milestone","amount_cents"],"title":"_EarningsRecordIn"},"_FreelancerModeIn":{"properties":{"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"}},"type":"object","title":"_FreelancerModeIn"},"_GoalUpsertIn":{"properties":{"goal_type":{"type":"string","title":"Goal Type"},"target_eur":{"type":"number","title":"Target Eur","default":0.0},"target_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Target Count"},"period":{"type":"string","title":"Period","default":"monthly"},"period_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Period Key"}},"type":"object","required":["goal_type"],"title":"_GoalUpsertIn"},"_GuanxiReactivateDraftIn":{"properties":{"lead_id":{"type":"integer","title":"Lead Id"},"occasion":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Occasion"},"lang":{"type":"string","title":"Lang","default":"de"}},"type":"object","required":["lead_id"],"title":"_GuanxiReactivateDraftIn"},"_HunterSyncIn":{"properties":{"signal_type":{"type":"string","title":"Signal Type"},"page":{"type":"integer","title":"Page","default":1},"per_page":{"type":"integer","title":"Per Page","default":20}},"type":"object","required":["signal_type"],"title":"_HunterSyncIn"},"_InfBriefAnalyzeIn":{"properties":{"text":{"type":"string","maxLength":5000,"minLength":10,"title":"Text"}},"type":"object","required":["text"],"title":"_InfBriefAnalyzeIn"},"_InfBriefCompareIn":{"properties":{"brief_a":{"type":"string","maxLength":5000,"minLength":10,"title":"Brief A"},"brief_b":{"type":"string","maxLength":5000,"minLength":10,"title":"Brief B"}},"type":"object","required":["brief_a","brief_b"],"title":"_InfBriefCompareIn"},"_InfluencerProfileIn":{"properties":{"display_name":{"type":"string","title":"Display Name","default":""},"bio":{"type":"string","title":"Bio","default":""},"categories":{"items":{"type":"string"},"type":"array","title":"Categories","default":[]},"social_links":{"additionalProperties":{"type":"string"},"type":"object","title":"Social Links","default":{}},"primary_platform":{"type":"string","title":"Primary Platform","default":"instagram"},"followers_total":{"type":"integer","title":"Followers Total","default":0},"avg_engagement_rate":{"type":"number","title":"Avg Engagement Rate","default":0.0},"region":{"type":"string","title":"Region","default":""},"languages":{"items":{"type":"string"},"type":"array","title":"Languages","default":[]},"publisher_profile_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Publisher Profile Id"}},"type":"object","title":"_InfluencerProfileIn"},"_InvoiceIn":{"properties":{"campaign_id":{"type":"string","title":"Campaign Id"},"milestone":{"type":"string","maxLength":200,"title":"Milestone"},"net_amount_cents":{"type":"integer","minimum":0.0,"title":"Net Amount Cents"},"country_code":{"type":"string","maxLength":3,"title":"Country Code","default":"DE"},"is_business":{"type":"boolean","title":"Is Business","default":false},"company_name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Company Name"},"vat_id":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Vat Id"}},"type":"object","required":["campaign_id","milestone","net_amount_cents"],"title":"_InvoiceIn"},"_LfPromoteIn":{"properties":{"signal_id":{"type":"integer","title":"Signal Id"},"stage":{"type":"string","title":"Stage","default":"new"},"note":{"type":"string","title":"Note","default":""}},"type":"object","required":["signal_id"],"title":"_LfPromoteIn"},"_LinkedInPostIn":{"properties":{"article_id":{"type":"string","maxLength":50,"minLength":1,"title":"Article Id"},"lang":{"type":"string","pattern":"^(de|en|zh)$","title":"Lang","default":"de"},"tone":{"type":"string","pattern":"^(professional|conversational|data)$","title":"Tone","default":"professional"}},"type":"object","required":["article_id"],"title":"_LinkedInPostIn"},"_NewsletterSendIn":{"properties":{"to_email":{"type":"string","maxLength":320,"minLength":5,"title":"To Email"},"subject":{"type":"string","maxLength":200,"title":"Subject","default":""},"include_signals":{"type":"boolean","title":"Include Signals","default":true},"include_tools":{"type":"boolean","title":"Include Tools","default":true},"include_tools_count":{"type":"integer","maximum":3.0,"minimum":1.0,"title":"Include Tools Count","default":2},"custom_intro":{"type":"string","maxLength":400,"title":"Custom Intro","default":""}},"type":"object","required":["to_email"],"title":"_NewsletterSendIn"},"_NinjaPearSyncIn":{"properties":{"signal_type":{"type":"string","title":"Signal Type"},"page":{"type":"integer","title":"Page","default":1},"per_page":{"type":"integer","title":"Per Page","default":25}},"type":"object","required":["signal_type"],"title":"_NinjaPearSyncIn"},"_NowPayCreateIn":{"properties":{"signal_id":{"type":"string","title":"Signal Id"},"pay_currency":{"type":"string","title":"Pay Currency","default":"USDTERC20"},"ipn_callback_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ipn Callback Url"}},"type":"object","required":["signal_id"],"title":"_NowPayCreateIn"},"_NowPaySettingsIn":{"properties":{"api_key":{"type":"string","title":"Api Key"},"ipn_secret":{"type":"string","title":"Ipn Secret","default":""},"sandbox":{"type":"boolean","title":"Sandbox","default":false}},"type":"object","required":["api_key"],"title":"_NowPaySettingsIn"},"_OfferCreateIn":{"properties":{"title":{"type":"string","title":"Title","default":""},"quantity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quantity"},"unit_price_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Unit Price Cents"},"currency":{"type":"string","title":"Currency","default":"EUR"},"payment_terms":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payment Terms"},"inco_terms":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Inco Terms"},"delivery_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Delivery Days"},"valid_until":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Valid Until"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"deal_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Deal Id"},"lead_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Lead Id"}},"type":"object","title":"_OfferCreateIn"},"_OfferReviseIn":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"quantity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quantity"},"unit_price_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Unit Price Cents"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"payment_terms":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payment Terms"},"inco_terms":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Inco Terms"},"delivery_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Delivery Days"},"valid_until":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Valid Until"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"deal_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Deal Id"}},"type":"object","title":"_OfferReviseIn"},"_OfferUpdateIn":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"quantity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quantity"},"unit_price_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Unit Price Cents"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"payment_terms":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payment Terms"},"inco_terms":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Inco Terms"},"delivery_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Delivery Days"},"valid_until":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Valid Until"},"sent_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sent At"},"viewed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewed At"},"reaction":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reaction"},"follow_up_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Follow Up At"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","title":"_OfferUpdateIn"},"_OppSubscribeIn":{"properties":{"success_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Success Url"},"cancel_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cancel Url"}},"type":"object","title":"_OppSubscribeIn"},"_OutreachGenerateIn":{"properties":{"account_name":{"type":"string","maxLength":200,"title":"Account Name"},"signal_type":{"type":"string","maxLength":100,"title":"Signal Type","default":""},"why_relevant":{"type":"string","maxLength":500,"title":"Why Relevant","default":""},"domain":{"type":"string","maxLength":200,"title":"Domain","default":""},"channel":{"type":"string","maxLength":50,"title":"Channel","default":"email"}},"type":"object","required":["account_name"],"title":"_OutreachGenerateIn"},"_PaymentIn":{"properties":{"campaign_id":{"type":"string","title":"Campaign Id"},"amount_cents":{"type":"integer","minimum":0.0,"title":"Amount Cents"},"method":{"type":"string","title":"Method","default":"stripe"},"milestone":{"type":"string","maxLength":200,"title":"Milestone"},"metadata":{"type":"object","title":"Metadata"}},"type":"object","required":["campaign_id","amount_cents","milestone"],"title":"_PaymentIn"},"_PayoutRejectIn":{"properties":{"reason":{"type":"string","maxLength":500,"title":"Reason","default":""}},"type":"object","title":"_PayoutRejectIn"},"_PayoutRequestIn":{"properties":{"amount_cents":{"type":"integer","maximum":10000000.0,"minimum":5000.0,"title":"Amount Cents"},"method":{"type":"string","title":"Method","default":"bank_transfer"}},"type":"object","required":["amount_cents"],"title":"_PayoutRequestIn"},"_ProxycurlSyncIn":{"properties":{"signal_type":{"type":"string","title":"Signal Type"},"page":{"type":"integer","title":"Page","default":1},"per_page":{"type":"integer","title":"Per Page","default":25}},"type":"object","required":["signal_type"],"title":"_ProxycurlSyncIn"},"_PublisherListIn":{"properties":{"publisher_user_id":{"type":"integer","title":"Publisher User Id"},"status":{"type":"string","title":"Status"}},"type":"object","required":["publisher_user_id","status"],"title":"_PublisherListIn"},"_PublisherProfileIn":{"properties":{"handle":{"type":"string","title":"Handle"},"display_name":{"type":"string","title":"Display Name","default":""},"platforms":{"items":{"type":"string"},"type":"array","title":"Platforms","default":[]},"primary_platform":{"type":"string","title":"Primary Platform","default":"other"},"followers_total":{"type":"integer","title":"Followers Total","default":0},"avg_engagement_rate":{"type":"number","title":"Avg Engagement Rate","default":0.0},"niches":{"items":{"type":"string"},"type":"array","title":"Niches","default":[]},"region":{"type":"string","title":"Region","default":""},"languages":{"items":{"type":"string"},"type":"array","title":"Languages","default":[]},"rate_per_post_cents":{"type":"integer","title":"Rate Per Post Cents","default":0},"bio":{"type":"string","title":"Bio","default":""}},"type":"object","required":["handle"],"title":"_PublisherProfileIn"},"_PurchaseIn":{"properties":{"segment_id":{"type":"string","maxLength":120,"minLength":1,"title":"Segment Id"}},"type":"object","required":["segment_id"],"title":"_PurchaseIn"},"_PurchaseRateIn":{"properties":{"rating":{"type":"integer","title":"Rating"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment"}},"type":"object","required":["rating"],"title":"_PurchaseRateIn"},"_QuotaSetIn":{"properties":{"period":{"type":"string","title":"Period"},"quota_eur":{"type":"number","title":"Quota Eur"},"owner_user_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Owner User Id"}},"type":"object","required":["period","quota_eur"],"title":"_QuotaSetIn"},"_ReachRecordIn":{"properties":{"campaign_id":{"type":"string","title":"Campaign Id"},"impressions":{"type":"integer","minimum":0.0,"title":"Impressions"},"clicks":{"type":"integer","minimum":0.0,"title":"Clicks","default":0},"reach":{"type":"integer","minimum":0.0,"title":"Reach","default":0}},"type":"object","required":["campaign_id","impressions"],"title":"_ReachRecordIn"},"_RegisterAuctionIn":{"properties":{"signal_id":{"type":"string","title":"Signal Id"},"tx_hash":{"type":"string","title":"Tx Hash","default":""},"signal_title":{"type":"string","title":"Signal Title","default":""},"min_bid_usdc":{"type":"number","title":"Min Bid Usdc","default":0.0},"duration_hours":{"type":"integer","title":"Duration Hours","default":72},"seller_address":{"type":"string","title":"Seller Address","default":""},"payment_token":{"type":"string","title":"Payment Token","default":""}},"type":"object","required":["signal_id"],"title":"_RegisterAuctionIn"},"_RepQuotaIn":{"properties":{"user_id":{"type":"integer","title":"User Id"},"quota_eur":{"type":"number","title":"Quota Eur","default":0.0},"period":{"type":"string","title":"Period","default":"monthly"}},"type":"object","required":["user_id"],"title":"_RepQuotaIn"},"_RevenueAutoFulfillIn":{"properties":{"session_id":{"type":"string","title":"Session Id"},"tier_key":{"type":"string","title":"Tier Key"}},"type":"object","required":["session_id","tier_key"],"title":"_RevenueAutoFulfillIn"},"_RevenueAutoSubscribeIn":{"properties":{"tier_key":{"type":"string","title":"Tier Key"},"success_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Success Url"},"cancel_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cancel Url"}},"type":"object","required":["tier_key"],"title":"_RevenueAutoSubscribeIn"},"_RevenueGoalIn":{"properties":{"goal_type":{"type":"string","enum":["affiliate","crm","total"],"title":"Goal Type"},"target_eur":{"type":"number","maximum":1000000.0,"minimum":0.0,"title":"Target Eur"}},"type":"object","required":["goal_type","target_eur"],"title":"_RevenueGoalIn"},"_ReviewApplicationIn":{"properties":{"new_status":{"type":"string","title":"New Status"}},"type":"object","required":["new_status"],"title":"_ReviewApplicationIn"},"_ReviewIn":{"properties":{"inquiry_id":{"type":"string","maxLength":64,"minLength":1,"title":"Inquiry Id"},"rating":{"type":"integer","maximum":5.0,"minimum":1.0,"title":"Rating"},"comment":{"type":"string","maxLength":1000,"title":"Comment","default":""}},"type":"object","required":["inquiry_id","rating"],"title":"_ReviewIn"},"_SafetyFlagsIn":{"properties":{"publisher_user_id":{"type":"integer","title":"Publisher User Id"},"flags":{"items":{"type":"string"},"type":"array","title":"Flags"}},"type":"object","required":["publisher_user_id","flags"],"title":"_SafetyFlagsIn"},"_SegmentCreateIn":{"properties":{"name":{"type":"string","maxLength":80,"minLength":3,"title":"Name"},"description":{"type":"string","maxLength":400,"title":"Description","default":""},"criteria":{"type":"object","title":"Criteria"},"price_eur":{"type":"number","maximum":999.0,"minimum":9.0,"title":"Price Eur","default":49.0},"status":{"type":"string","pattern":"^(draft|listed)$","title":"Status","default":"draft"}},"type":"object","required":["name"],"title":"_SegmentCreateIn"},"_SignalBidIn":{"properties":{"bid_cents":{"type":"integer","title":"Bid Cents"}},"type":"object","required":["bid_cents"],"title":"_SignalBidIn"},"_SignalHubApplyIn":{"properties":{"message":{"type":"string","maxLength":1000,"title":"Message","default":""}},"type":"object","title":"_SignalHubApplyIn"},"_SignalHubBriefIn":{"properties":{"title":{"type":"string","maxLength":200,"title":"Title"},"description":{"type":"string","maxLength":2000,"title":"Description","default":""},"budget_cents":{"type":"integer","minimum":0.0,"title":"Budget Cents","default":0},"target_platforms":{"items":{"type":"string"},"type":"array","title":"Target Platforms"},"categories":{"items":{"type":"string"},"type":"array","title":"Categories"},"deliverables":{"type":"string","maxLength":1000,"title":"Deliverables","default":""},"deadline":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deadline"}},"type":"object","required":["title"],"title":"_SignalHubBriefIn"},"_SignalHubInquiryIn":{"properties":{"contact_name":{"type":"string","maxLength":160,"minLength":1,"title":"Contact Name"},"contact_email":{"type":"string","maxLength":254,"minLength":3,"title":"Contact Email"},"company_name":{"type":"string","maxLength":200,"title":"Company Name","default":""},"message":{"type":"string","maxLength":2000,"minLength":10,"title":"Message"},"brief_id":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Brief Id"},"website":{"type":"string","maxLength":200,"title":"Website","default":""}},"type":"object","required":["contact_name","contact_email","message"],"title":"_SignalHubInquiryIn"},"_SignalHubInquiryStatusIn":{"properties":{"status":{"type":"string","enum":["reviewing","accepted","declined","archived"],"title":"Status"}},"type":"object","required":["status"],"title":"_SignalHubInquiryStatusIn"},"_SignalHubLoginIn":{"properties":{"email":{"type":"string","title":"Email"},"password":{"type":"string","title":"Password"}},"type":"object","required":["email","password"],"title":"_SignalHubLoginIn"},"_SignalHubProfileIn":{"properties":{"role":{"type":"string","title":"Role","default":"publisher"},"account_type":{"type":"string","title":"Account Type","default":"business"},"company_name":{"type":"string","maxLength":200,"title":"Company Name","default":""},"tax_id":{"type":"string","maxLength":50,"title":"Tax Id","default":""},"platform":{"type":"string","maxLength":60,"title":"Platform","default":""},"followers_total":{"type":"integer","minimum":0.0,"title":"Followers Total","default":0},"engagement_rate":{"type":"number","minimum":0.0,"title":"Engagement Rate","default":0.0},"content_categories":{"items":{"type":"string"},"type":"array","title":"Content Categories"},"brand_name":{"type":"string","maxLength":200,"title":"Brand Name","default":""},"brand_website":{"type":"string","maxLength":300,"title":"Brand Website","default":""},"campaign_budget_range":{"type":"string","maxLength":50,"title":"Campaign Budget Range","default":""},"target_audience":{"items":{"type":"string"},"type":"array","title":"Target Audience"},"bio":{"type":"string","maxLength":500,"title":"Bio","default":""},"social_links":{"additionalProperties":{"type":"string"},"type":"object","title":"Social Links"},"discoverable":{"type":"boolean","title":"Discoverable","default":true},"linked_workspace_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Linked Workspace Id"}},"type":"object","title":"_SignalHubProfileIn"},"_SignalHubRegisterIn":{"properties":{"display_name":{"type":"string","title":"Display Name"},"email":{"type":"string","title":"Email"},"password":{"type":"string","title":"Password"}},"type":"object","required":["display_name","email","password"],"title":"_SignalHubRegisterIn"},"_SignalPublishIn":{"properties":{"signal_type":{"type":"string","title":"Signal Type"},"title":{"type":"string","title":"Title"},"body":{"type":"string","title":"Body","default":""},"company_hint":{"type":"string","title":"Company Hint","default":""},"price_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Price Cents"},"expires_days":{"type":"integer","title":"Expires Days","default":30},"listing_type":{"type":"string","title":"Listing Type","default":"fixed"},"auction_hours":{"type":"integer","title":"Auction Hours","default":48},"min_bid_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Min Bid Cents"},"asset_class":{"type":"string","title":"Asset Class","default":"general"},"trading_pair":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trading Pair"}},"type":"object","required":["signal_type","title"],"title":"_SignalPublishIn"},"_SignalSourceIn":{"properties":{"source_key":{"type":"string","title":"Source Key"},"label":{"type":"string","title":"Label"},"enabled":{"type":"boolean","title":"Enabled","default":true},"rate_limit_day":{"type":"integer","title":"Rate Limit Day","default":1000},"retention_days":{"type":"integer","title":"Retention Days","default":90}},"type":"object","required":["source_key","label"],"title":"_SignalSourceIn"},"_SignalStatusIn":{"properties":{"status":{"type":"string","title":"Status"}},"type":"object","required":["status"],"title":"_SignalStatusIn"},"_StyleGuideIn":{"properties":{"logo_url":{"type":"string","maxLength":500,"title":"Logo Url","default":""},"tone":{"type":"string","maxLength":200,"title":"Tone","default":""},"dos":{"items":{"type":"string"},"type":"array","title":"Dos"},"donts":{"items":{"type":"string"},"type":"array","title":"Donts"}},"type":"object","title":"_StyleGuideIn"},"_SupportTicketIn":{"properties":{"subject":{"type":"string","title":"Subject"},"message":{"type":"string","title":"Message"},"category":{"type":"string","title":"Category","default":"general"}},"type":"object","required":["subject","message"],"title":"_SupportTicketIn"},"_SupportUpdateIn":{"properties":{"status":{"type":"string","title":"Status"},"admin_note":{"type":"string","title":"Admin Note","default":""}},"type":"object","required":["status"],"title":"_SupportUpdateIn"},"_SuppressionIn":{"properties":{"domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domain"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"reason":{"type":"string","title":"Reason","default":"manual"}},"type":"object","title":"_SuppressionIn"},"_TemplateIn":{"properties":{"campaign_type":{"type":"string","title":"Campaign Type"},"html_body":{"type":"string","title":"Html Body"}},"type":"object","required":["campaign_type","html_body"],"title":"_TemplateIn"},"_V3CreateAuctionTokenIn":{"properties":{"signal_id":{"type":"string","title":"Signal Id"},"title":{"type":"string","title":"Title"},"body":{"type":"string","title":"Body","default":""},"seller_wallet":{"type":"string","title":"Seller Wallet"},"min_bid":{"type":"number","title":"Min Bid"},"token_address":{"type":"string","title":"Token Address"},"duration_hours":{"type":"integer","title":"Duration Hours","default":48}},"type":"object","required":["signal_id","title","seller_wallet","min_bid","token_address"],"title":"_V3CreateAuctionTokenIn"},"_V3ListTokenIn":{"properties":{"signal_id":{"type":"string","title":"Signal Id"},"title":{"type":"string","title":"Title"},"body":{"type":"string","title":"Body","default":""},"seller_wallet":{"type":"string","title":"Seller Wallet"},"price":{"type":"number","title":"Price"},"token_address":{"type":"string","title":"Token Address"}},"type":"object","required":["signal_id","title","seller_wallet","price","token_address"],"title":"_V3ListTokenIn"},"_V3TokenIn":{"properties":{"token_address":{"type":"string","title":"Token Address"},"symbol":{"type":"string","title":"Symbol"},"decimals":{"type":"integer","title":"Decimals","default":18}},"type":"object","required":["token_address","symbol"],"title":"_V3TokenIn"},"_WalletConnectIn":{"properties":{"wallet_address":{"type":"string","title":"Wallet Address"}},"type":"object","required":["wallet_address"],"title":"_WalletConnectIn"},"_WebhookSourceIn":{"properties":{"source_key":{"type":"string","title":"Source Key"},"provider":{"type":"string","title":"Provider","default":"generic"},"name":{"type":"string","title":"Name","default":""},"workspace_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Workspace Id"}},"type":"object","required":["source_key"],"title":"_WebhookSourceIn"},"app__main___ContractIn__1":{"properties":{"brief_id":{"type":"string","title":"Brief Id"},"publisher_id":{"type":"string","title":"Publisher Id"},"brand_name":{"type":"string","title":"Brand Name"},"publisher_display_name":{"type":"string","title":"Publisher Display Name","default":""},"publisher_handle":{"type":"string","title":"Publisher Handle","default":""},"title":{"type":"string","title":"Title","default":""},"campaign_type":{"type":"string","title":"Campaign Type","default":"other"},"target_platforms":{"items":{"type":"string"},"type":"array","title":"Target Platforms","default":[]},"deliverables":{"type":"string","title":"Deliverables","default":""},"deal_value_cents":{"type":"integer","title":"Deal Value Cents","default":0},"start_date":{"type":"string","title":"Start Date","default":""},"end_date":{"type":"string","title":"End Date","default":""},"custom_commission_bps":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Custom Commission Bps"},"notes":{"type":"string","title":"Notes","default":""},"match_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Match Id"}},"type":"object","required":["brief_id","publisher_id","brand_name"],"title":"_ContractIn"},"app__main___ContractIn__2":{"properties":{"campaign_id":{"type":"string","title":"Campaign Id"},"publisher_user_id":{"type":"integer","title":"Publisher User Id"},"title":{"type":"string","maxLength":200,"title":"Title"},"body_html":{"type":"string","title":"Body Html"}},"type":"object","required":["campaign_id","publisher_user_id","title","body_html"],"title":"_ContractIn"},"app__main___SignContractIn__1":{"properties":{"signer_role":{"type":"string","title":"Signer Role"}},"type":"object","required":["signer_role"],"title":"_SignContractIn"},"app__main___SignContractIn__2":{"properties":{"sign_token":{"type":"string","title":"Sign Token"}},"type":"object","required":["sign_token"],"title":"_SignContractIn"}}}}