{"openapi":"3.1.0","info":{"title":"TradeCalcs API","version":"1.0.0"},"paths":{"/api/checkout/verify":{"get":{"summary":"Tc Checkout Verify","description":"Verify a Stripe Checkout Session for the thank-you page. Only TradeCalcs checkouts are\nacknowledged; anything else gets the same generic not_found (no shared-account leak).","operationId":"tc_checkout_verify_api_checkout_verify_get","parameters":[{"name":"session_id","in":"query","required":false,"schema":{"type":"string","default":"","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/checkout/session-login":{"post":{"summary":"Tc Checkout Session Login","description":"Issue a dashboard JWT after a verified paid TradeCalcs checkout. Same session_id as /verify.","operationId":"tc_checkout_session_login_api_checkout_session_login_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/checkout/guard":{"get":{"summary":"Tc Checkout Guard","description":"If the signed-in user already owns this product, send them to the dashboard.\nUnauthenticated requests get already_owns=false (no email lookup, no enumeration).","operationId":"tc_checkout_guard_api_checkout_guard_get","parameters":[{"name":"slug","in":"query","required":false,"schema":{"type":"string","default":"","title":"Slug"}},{"name":"calc","in":"query","required":false,"schema":{"type":"string","default":"","title":"Calc"}},{"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"}}}}}}},"/health":{"get":{"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/auth/signup":{"post":{"summary":"Signup","operationId":"signup_api_auth_signup_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignupRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/login":{"post":{"summary":"Login","operationId":"login_api_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/logout":{"post":{"summary":"Logout","operationId":"logout_api_auth_logout_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/verify":{"get":{"summary":"Verify Email","operationId":"verify_email_api_auth_verify_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/auth/forgot-password":{"post":{"summary":"Forgot Password","operationId":"forgot_password_api_auth_forgot_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordResetRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/reset-password":{"post":{"summary":"Reset Password","operationId":"reset_password_api_auth_reset_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordResetConfirm"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/me":{"get":{"summary":"Get Me","operationId":"get_me_api_me_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/products":{"get":{"summary":"List Products","operationId":"list_products_api_products_get","parameters":[{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"}},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/products/{product_id}":{"get":{"summary":"Get Product","operationId":"get_product_api_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/checkout":{"post":{"summary":"Create Checkout","operationId":"create_checkout_api_checkout_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/CheckoutRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/checkout/free":{"get":{"summary":"Claim Free Products","description":"Grant all free product entitlements to user.","operationId":"claim_free_products_api_checkout_free_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/stripe":{"post":{"summary":"Stripe Webhook","operationId":"stripe_webhook_webhooks_stripe_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/webhooks/internal":{"post":{"summary":"Internal Webhook","description":"Accept pre-verified events from the existing localhost Stripe router.","operationId":"internal_webhook_webhooks_internal_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/entitlements":{"get":{"summary":"List Entitlements","operationId":"list_entitlements_api_entitlements_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/entitlements/check/{key}":{"get":{"summary":"Check Entitlement","operationId":"check_entitlement_api_entitlements_check__key__get","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/markets":{"get":{"summary":"List Markets","operationId":"list_markets_api_markets_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/open/site-settings/{user_id}":{"get":{"summary":"Open Site Settings","description":"Public, non-secret market settings for a paid embed. No lead email.","operationId":"open_site_settings_api_open_site_settings__user_id__get","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","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/account/settings":{"get":{"summary":"Get Account Settings","operationId":"get_account_settings_api_account_settings_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Put Account Settings","operationId":"put_account_settings_api_account_settings_put","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountSettingsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/dashboard":{"get":{"summary":"Dashboard","operationId":"dashboard_api_dashboard_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/download/{product_id}":{"get":{"summary":"Download Product","description":"Serve widget/calculator file if user is entitled.","operationId":"download_product_api_download__product_id__get","parameters":[{"name":"product_id","in":"path","required":true,"schema":{"type":"string","title":"Product Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/embed/":{"get":{"summary":"Serve Embed Generator","description":"Serve the embed code generator page.","operationId":"serve_embed_generator_embed__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/embed":{"get":{"summary":"Serve Embed Generator","description":"Serve the embed code generator page.","operationId":"serve_embed_generator_embed_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/calc/{calc_id}":{"get":{"summary":"Serve Calculator","description":"Serve a calculator with white-label branding for iframe embedding.","operationId":"serve_calculator_calc__calc_id__get","parameters":[{"name":"calc_id","in":"path","required":true,"schema":{"type":"string","title":"Calc Id"}},{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}},{"name":"brand","in":"query","required":false,"schema":{"type":"string","default":"","title":"Brand"}},{"name":"color","in":"query","required":false,"schema":{"type":"string","default":"","title":"Color"}},{"name":"phone","in":"query","required":false,"schema":{"type":"string","default":"","title":"Phone"}},{"name":"webhook","in":"query","required":false,"schema":{"type":"string","default":"","title":"Webhook"}},{"name":"logo_url","in":"query","required":false,"schema":{"type":"string","default":"","title":"Logo Url"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sites":{"post":{"summary":"Create Site","operationId":"create_site_api_sites_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/SiteCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"List Sites","operationId":"list_sites_api_sites_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sites/{site_id}":{"put":{"summary":"Update Site","operationId":"update_site_api_sites__site_id__put","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string","title":"Site Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Site","operationId":"delete_site_api_sites__site_id__delete","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string","title":"Site Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sites/{site_id}/verify":{"post":{"summary":"Verify Site","operationId":"verify_site_api_sites__site_id__verify_post","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string","title":"Site Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sites/{site_id}/embed-tokens":{"post":{"summary":"Create Embed Token","operationId":"create_embed_token_api_sites__site_id__embed_tokens_post","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string","title":"Site Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"List Embed Tokens","operationId":"list_embed_tokens_api_sites__site_id__embed_tokens_get","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string","title":"Site Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sites/{site_id}/onboarding":{"post":{"summary":"Complete Onboarding","description":"Post-purchase onboarding: save the buyer's city/region, markup %, brand\ncolors + logo, then mint their unique embed token and return the snippet.","operationId":"complete_onboarding_api_sites__site_id__onboarding_post","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string","title":"Site Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sites/{site_id}/embed-snippet/rotate":{"post":{"summary":"Rotate Embed Snippet","description":"Explicit rotation: revoke the site's active tokens and mint a fresh snippet.\nThe raw token is only ever shown at mint time, so rotation is deliberate.","operationId":"rotate_embed_snippet_api_sites__site_id__embed_snippet_rotate_post","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string","title":"Site Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/trial/start":{"post":{"summary":"Trial Start","description":"Public: start a 14-day trial. One per email, ever.","operationId":"trial_start_api_trial_start_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/TrialStartRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/trial/status":{"get":{"summary":"Trial Status","operationId":"trial_status_api_trial_status_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/funnel/metrics":{"get":{"summary":"Funnel Metrics","description":"First-party TradeCalcs funnel; tenant leads are never TradeCalcs buyers.","operationId":"funnel_metrics_api_funnel_metrics_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/embed-tokens/{token_id}":{"delete":{"summary":"Revoke Embed Token","operationId":"revoke_embed_token_api_embed_tokens__token_id__delete","parameters":[{"name":"token_id","in":"path","required":true,"schema":{"type":"string","title":"Token Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/embed/widgets/{widget_key}.js":{"get":{"summary":"Serve Embed Widget","description":"Deliver an existing widget only to its licensed embedding website.","operationId":"serve_embed_widget_api_embed_widgets__widget_key__js_get","parameters":[{"name":"widget_key","in":"path","required":true,"schema":{"type":"string","title":"Widget Key"}},{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/embed/validate":{"post":{"summary":"Validate Embed Token","description":"Public endpoint - embedded calculators call this to validate their embed token.\n\ntc-auth.js posts {token, domain, referrer} from inside the tradecalcs iframe, so\nthe browser Origin is a tradecalcs host and the embedding page is the referrer.\nA third-party Origin is used directly (browsers do not let pages forge it).","operationId":"validate_embed_token_api_embed_validate_post","parameters":[{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","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":{"post":{"summary":"Capture Lead","description":"Public endpoint - captures a lead from an embedded calculator.","operationId":"capture_lead_api_leads_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadCaptureRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/event":{"post":{"summary":"Record Analytics Event","description":"Public endpoint - records a view/start/complete/lead event.","operationId":"record_analytics_event_api_analytics_event_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyticsEventRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/summary":{"get":{"summary":"Analytics Summary","description":"Aggregated funnel data per tool + site.","operationId":"analytics_summary_api_analytics_summary_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Days"}},{"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/analytics/public-dashboard":{"get":{"summary":"Public Analytics Dashboard","description":"Public aggregate stats — no PII, just counts per calculator.","operationId":"public_analytics_dashboard_api_analytics_public_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/bundles":{"get":{"summary":"List Bundles","description":"Public endpoint - returns vertical bundles with included products.","operationId":"list_bundles_api_bundles_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/checkout/bundle/{bundle_id}":{"post":{"summary":"Checkout Bundle","description":"Create a Stripe checkout for a vertical bundle.","operationId":"checkout_bundle_api_checkout_bundle__bundle_id__post","parameters":[{"name":"bundle_id","in":"path","required":true,"schema":{"type":"string","title":"Bundle Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/stats":{"get":{"summary":"Admin Stats","operationId":"admin_stats_api_admin_stats_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/users":{"get":{"summary":"Admin Users","operationId":"admin_users_api_admin_users_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"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/admin/users/{user_id}":{"get":{"summary":"Admin User Detail","operationId":"admin_user_detail_api_admin_users__user_id__get","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/entitlements/grant":{"post":{"summary":"Admin Grant Entitlement","operationId":"admin_grant_entitlement_api_admin_entitlements_grant_post","parameters":[{"name":"user_id","in":"query","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"key","in":"query","required":true,"schema":{"type":"string","title":"Key"}},{"name":"reason","in":"query","required":false,"schema":{"type":"string","default":"admin_override","title":"Reason"}},{"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/admin/entitlements/revoke":{"post":{"summary":"Admin Revoke Entitlement","operationId":"admin_revoke_entitlement_api_admin_entitlements_revoke_post","parameters":[{"name":"user_id","in":"query","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"key","in":"query","required":true,"schema":{"type":"string","title":"Key"}},{"name":"reason","in":"query","required":false,"schema":{"type":"string","default":"admin_revoke","title":"Reason"}},{"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/admin/leads":{"get":{"summary":"Admin Leads","operationId":"admin_leads_api_admin_leads_get","parameters":[{"name":"tier","in":"query","required":false,"schema":{"type":"string","default":"","title":"Tier"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"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/admin/webhook-deliveries":{"get":{"summary":"Admin Webhook Deliveries","operationId":"admin_webhook_deliveries_api_admin_webhook_deliveries_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":"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/admin/orders":{"get":{"summary":"Admin Orders","operationId":"admin_orders_api_admin_orders_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":"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/config":{"get":{"summary":"Get Config","description":"Public client config plus honest payment-capability flags.\n\nThe publishable key alone proves nothing: without STRIPE_SECRET_KEY every\n/api/checkout call raises and the buyer sees a 500. These flags let the\nstorefront disable Buy honestly instead of failing a customer, and they turn\nthemselves on the moment the credential is present.","operationId":"get_config_api_config_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/pipeline/stats":{"get":{"summary":"Pipeline Stats","operationId":"pipeline_stats_api_pipeline_stats_get","parameters":[{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Since"}},{"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/admin/seed-stripe":{"post":{"summary":"Admin Seed Stripe","description":"Create all paid products in Stripe.","operationId":"admin_seed_stripe_api_admin_seed_stripe_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/calculator-leads":{"post":{"summary":"Proxy Calculator Leads","description":"Proxy calculator lead submissions to the calculator leads API on port 8561.","operationId":"proxy_calculator_leads_api_calculator_leads_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/calculator-leads/stats":{"get":{"summary":"Proxy Calculator Stats","description":"Proxy calculator lead stats from the live calculator-leads service on port 8561.\n\n2026-10-02 re-fix (regression of 2026-09-04 8d3e706d16): the URL had a literal\nspace (\"127.0.0.1 :8561\") so it always failed and returned HTTP 200 with an\nerror body. The :8561 upstream is alive but the route is absent (404), so we\nnow raise 502 honestly instead of lying with a 200.","operationId":"proxy_calculator_stats_api_calculator_leads_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/subscribe":{"post":{"summary":"Proxy Subscribe","description":"Proxy email subscribe to tradecalcs_email_capture service (EMAIL_CAPTURE_BASE).","operationId":"proxy_subscribe_api_subscribe_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/subscribers/count":{"get":{"summary":"Proxy Subscriber Count","description":"Proxy subscriber count from :8481.","operationId":"proxy_subscriber_count_api_subscribers_count_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/subscribers/list":{"get":{"summary":"Proxy Subscriber List","description":"Proxy subscriber CSV export from :8481.","operationId":"proxy_subscriber_list_api_subscribers_list_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/leads/website":{"post":{"summary":"Capture Website Lead","description":"Captures leads from website contact/quote forms.","operationId":"capture_website_lead_api_leads_website_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebsiteLeadRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/portal/onboarding":{"get":{"summary":"Portal Onboarding","description":"Post-purchase onboarding wizard: city/region, markup, brand, embed code.","operationId":"portal_onboarding_portal_onboarding_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/portal":{"get":{"summary":"Portal Login","description":"Customer portal login/signup page.","operationId":"portal_login_portal_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/portal/":{"get":{"summary":"Portal Login","description":"Customer portal login/signup page.","operationId":"portal_login_portal__get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/portal/dashboard":{"get":{"summary":"Portal Dashboard","description":"Customer portal dashboard (auth via JS/localStorage).","operationId":"portal_dashboard_portal_dashboard_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/bundles":{"get":{"summary":"Bundles Alias","description":"Public alias for /api/bundles.","operationId":"bundles_alias_bundles_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/blog/{slug}":{"get":{"summary":"Serve Blog Post","operationId":"serve_blog_post_blog__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"}}}}}}},"/blog":{"get":{"summary":"List Blog Posts","operationId":"list_blog_posts_blog_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/quote/generate":{"post":{"summary":"Generate Quote","description":"Generate a PDF quote from calculator estimate data.","operationId":"generate_quote_api_quote_generate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuoteRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/quote/download/{quote_id}":{"get":{"summary":"Download Quote","description":"Download a generated PDF quote.","operationId":"download_quote_api_quote_download__quote_id__get","parameters":[{"name":"quote_id","in":"path","required":true,"schema":{"type":"string","title":"Quote Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/demo/{path}":{"get":{"summary":"Redirect Demo","operationId":"redirect_demo_demo__path__get","parameters":[{"name":"path","in":"path","required":true,"schema":{"type":"string","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/lead-opt-out":{"post":{"summary":"Tc Lead Opt Out","description":"One-click opt-out for TradeCalcs lead-finder drafts. Does not send mail.","operationId":"tc_lead_opt_out_api_lead_opt_out_post","parameters":[{"name":"t","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"T"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Tc Lead Opt Out","description":"One-click opt-out for TradeCalcs lead-finder drafts. Does not send mail.","operationId":"tc_lead_opt_out_api_lead_opt_out_get","parameters":[{"name":"t","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"T"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lead-opt-out":{"post":{"summary":"Tc Lead Opt Out","description":"One-click opt-out for TradeCalcs lead-finder drafts. Does not send mail.","operationId":"tc_lead_opt_out_lead_opt_out_post","parameters":[{"name":"t","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"T"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Tc Lead Opt Out","description":"One-click opt-out for TradeCalcs lead-finder drafts. Does not send mail.","operationId":"tc_lead_opt_out_lead_opt_out_get","parameters":[{"name":"t","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"T"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AccountSettingsRequest":{"properties":{"market_state":{"type":"string","title":"Market State","default":""},"market_metro":{"type":"string","title":"Market Metro","default":""},"city":{"type":"string","title":"City","default":""},"markup_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Markup Pct","default":0},"lead_email":{"type":"string","title":"Lead Email","default":""},"price_mode":{"type":"string","title":"Price Mode","default":"multiply"}},"type":"object","title":"AccountSettingsRequest"},"AnalyticsEventRequest":{"properties":{"tool_id":{"type":"string","title":"Tool Id"},"event_type":{"type":"string","title":"Event Type"},"referrer":{"type":"string","title":"Referrer","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","required":["tool_id","event_type"],"title":"AnalyticsEventRequest"},"CheckoutRequest":{"properties":{"product_ids":{"items":{"type":"string"},"type":"array","title":"Product Ids"},"plan":{"type":"string","title":"Plan","default":""},"vertical":{"type":"string","title":"Vertical","default":"contractor"},"requested_install_mode":{"type":"string","title":"Requested Install Mode","default":"hosted_widget"},"selected_calculators":{"type":"string","title":"Selected Calculators","default":"kitchen"},"lead_routing_mode":{"type":"string","title":"Lead Routing Mode","default":"tradecalcs_edge"},"sample_config":{"type":"string","title":"Sample Config","default":"contractor_demo.json"},"source_id":{"type":"string","title":"Source Id","default":"tc-001"},"lead_source_id":{"type":"string","title":"Lead Source Id","default":"tc-001"},"source_alias":{"type":"string","title":"Source Alias","default":"tradecalcs_pricing"},"offer_stage":{"type":"string","title":"Offer Stage","default":"trial_to_paid"}},"type":"object","required":["product_ids"],"title":"CheckoutRequest"},"FAQItem":{"properties":{"question":{"type":"string","title":"Question"},"answer":{"type":"string","title":"Answer"}},"type":"object","required":["question","answer"],"title":"FAQItem"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"LeadCaptureRequest":{"properties":{"tool_id":{"type":"string","title":"Tool Id","default":""},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"name":{"type":"string","title":"Name","default":""},"data":{"additionalProperties":true,"type":"object","title":"Data","default":{}},"idempotency_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency Key"},"brand":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand"},"calculator":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Calculator"},"estimate":{"anyOf":[{},{"type":"null"}],"title":"Estimate"},"lead":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Lead"},"meta":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Meta"},"start_trial":{"type":"boolean","title":"Start Trial","default":false}},"type":"object","title":"LeadCaptureRequest"},"LoginRequest":{"properties":{"email":{"type":"string","title":"Email"},"password":{"type":"string","title":"Password"}},"type":"object","required":["email","password"],"title":"LoginRequest"},"OnboardingRequest":{"properties":{"faq_items":{"anyOf":[{"items":{"$ref":"#/components/schemas/FAQItem"},"type":"array"},{"type":"null"}],"title":"Faq Items"},"city":{"type":"string","title":"City","default":""},"region":{"type":"string","title":"Region","default":""},"markup_pct":{"type":"number","title":"Markup Pct","default":0},"brand_color":{"type":"string","title":"Brand Color","default":""},"brand_accent":{"type":"string","title":"Brand Accent","default":""},"logo_url":{"type":"string","title":"Logo Url","default":""}},"type":"object","title":"OnboardingRequest"},"PasswordResetConfirm":{"properties":{"token":{"type":"string","title":"Token"},"new_password":{"type":"string","title":"New Password"}},"type":"object","required":["token","new_password"],"title":"PasswordResetConfirm"},"PasswordResetRequest":{"properties":{"email":{"type":"string","title":"Email"}},"type":"object","required":["email"],"title":"PasswordResetRequest"},"QuoteRequest":{"properties":{"calculator":{"type":"string","title":"Calculator","default":"general"},"customer_name":{"type":"string","title":"Customer Name","default":""},"customer_email":{"type":"string","title":"Customer Email","default":""},"customer_phone":{"type":"string","title":"Customer Phone","default":""},"customer_address":{"type":"string","title":"Customer Address","default":""},"estimate_low":{"type":"number","title":"Estimate Low","default":0},"estimate_high":{"type":"number","title":"Estimate High","default":0},"line_items":{"items":{},"type":"array","title":"Line Items","default":[]},"scope":{"type":"string","title":"Scope","default":""},"city":{"type":"string","title":"City","default":"San Diego"},"brand_name":{"type":"string","title":"Brand Name","default":"TradeCalcs"},"brand_phone":{"type":"string","title":"Brand Phone","default":"(858) 434-7166"},"brand_color":{"type":"string","title":"Brand Color","default":"#f97316"}},"type":"object","title":"QuoteRequest"},"SignupRequest":{"properties":{"email":{"type":"string","title":"Email"},"password":{"type":"string","title":"Password"},"name":{"type":"string","title":"Name","default":""}},"type":"object","required":["email","password"],"title":"SignupRequest"},"SiteCreateRequest":{"properties":{"domain":{"type":"string","title":"Domain"},"label":{"type":"string","title":"Label","default":""},"webhook_url":{"type":"string","title":"Webhook Url","default":""}},"type":"object","required":["domain"],"title":"SiteCreateRequest"},"SiteUpdateRequest":{"properties":{"faq_items":{"anyOf":[{"items":{"$ref":"#/components/schemas/FAQItem"},"type":"array"},{"type":"null"}],"title":"Faq Items"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"region":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region"},"markup_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Markup Pct"},"brand_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Color"},"brand_accent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Accent"},"logo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo Url"}},"type":"object","title":"SiteUpdateRequest"},"TrialStartRequest":{"properties":{"email":{"type":"string","title":"Email"},"name":{"type":"string","title":"Name","default":""},"source":{"type":"string","title":"Source","default":"email_gate"}},"type":"object","required":["email"],"title":"TrialStartRequest"},"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"},"WebsiteLeadRequest":{"properties":{"name":{"type":"string","title":"Name"},"phone":{"type":"string","title":"Phone","default":""},"email":{"type":"string","title":"Email","default":""},"service":{"type":"string","title":"Service","default":""},"city":{"type":"string","title":"City","default":""},"details":{"type":"string","title":"Details","default":""},"source":{"type":"string","title":"Source","default":"website"},"timestamp":{"type":"string","title":"Timestamp","default":""}},"type":"object","required":["name"],"title":"WebsiteLeadRequest"}}}}