{"openapi":"3.1.0","info":{"title":"PowerFile Web Portal","description":"Client portal for PowerFile PPTX/DOCX/PDF automation services","version":"1.0.0"},"paths":{"/":{"get":{"tags":["Home"],"summary":"Home","description":"Home page - landing page for PowerFile web portal","operationId":"home__get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/about":{"get":{"tags":["Home"],"summary":"About","description":"About page - information about PowerFile platform","operationId":"about_about_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/pricing":{"get":{"summary":"Pricing","description":"Show pricing plans page with active campaign","operationId":"pricing_pricing_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/contact":{"get":{"tags":["Home"],"summary":"Contact","description":"Contact page - contact information and forms","operationId":"contact_contact_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"post":{"tags":["Home"],"summary":"Contact Submit","description":"Process contact form submission.\n\nSends an email notification to the admin with the contact form details.","operationId":"contact_submit_contact_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_contact_submit_contact_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/team/{team_id}":{"get":{"tags":["Home"],"summary":"Get Team Details","description":"Get detailed information about a specific team type for modal display\n\nArgs:\n    team_id: The team identifier (e.g., 'sales', 'compliance', 'marketing')\n    \nReturns:\n    Team details including title, why it's useful, workflow, and benefits","operationId":"get_team_details_api_team__team_id__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"}}}}}}},"/why-powerfile":{"get":{"tags":["Home"],"summary":"Why Powerfile","description":"Product overview for PowerFile document automation workflows.","operationId":"why_powerfile_why_powerfile_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/compare/why-powerfile":{"get":{"tags":["Home"],"summary":"Compare Why Powerfile","description":"Why PowerFile — generic competitor comparison landing page","operationId":"compare_why_powerfile_compare_why_powerfile_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/compare/aspose-alternative":{"get":{"tags":["Home"],"summary":"Compare Aspose Redirect","description":"Redirect old Aspose comparison URL to generic comparison page","operationId":"compare_aspose_redirect_compare_aspose_alternative_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/auth/login":{"get":{"tags":["Authentication"],"summary":"Login Page","description":"Login page","operationId":"login_page_auth_login_get","parameters":[{"name":"next","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Authentication"],"summary":"Login","description":"Process login form - accepts either username or email","operationId":"login_auth_login_post","requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_login_auth_login_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/register":{"get":{"tags":["Authentication"],"summary":"Register Page","description":"Registration page","operationId":"register_page_auth_register_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"post":{"tags":["Authentication"],"summary":"Register","description":"Process registration form","operationId":"register_auth_register_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_register_auth_register_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/verify-email":{"get":{"tags":["Authentication"],"summary":"Verify Email","description":"Verify a user's email address using the token from the verification link.","operationId":"verify_email_auth_verify_email_get","parameters":[{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/logout":{"get":{"tags":["Authentication"],"summary":"Logout","description":"Logout user and clear session","operationId":"logout_auth_logout_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/auth/forgot-password":{"get":{"tags":["Authentication"],"summary":"Forgot Password Page","description":"Forgot password page","operationId":"forgot_password_page_auth_forgot_password_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"post":{"tags":["Authentication"],"summary":"Forgot Password","description":"Process forgot password form","operationId":"forgot_password_auth_forgot_password_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_forgot_password_auth_forgot_password_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/studios/":{"get":{"tags":["Studios"],"summary":"Studios Home","description":"PowerFile Studios main home page with all three studios\n\nRequires authentication - redirects to login if not authenticated","operationId":"studios_home_studios__get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/pptx_studio/":{"get":{"tags":["PPTX Studio"],"summary":"Demo Home","description":"PPTX Studio - unified interface with extraction and generation in one page\nDefault view shows extraction tab","operationId":"demo_home_pptx_studio__get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/pptx_studio/extraction":{"get":{"tags":["PPTX Studio"],"summary":"Extraction Redirect","description":"Redirect /extraction to main page with anchor fragment for bookmarkability","operationId":"extraction_redirect_pptx_studio_extraction_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"head":{"tags":["PPTX Studio"],"summary":"Extraction Redirect","description":"Redirect /extraction to main page with anchor fragment for bookmarkability","operationId":"extraction_redirect_pptx_studio_extraction_head","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/pptx_studio/generation":{"get":{"tags":["PPTX Studio"],"summary":"Generation Redirect","description":"Redirect /generation to main page with anchor fragment for bookmarkability","operationId":"generation_redirect_pptx_studio_generation_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"head":{"tags":["PPTX Studio"],"summary":"Generation Redirect","description":"Redirect /generation to main page with anchor fragment for bookmarkability","operationId":"generation_redirect_pptx_studio_generation_head","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/pptx_studio/extract":{"get":{"tags":["PPTX Studio"],"summary":"Extract Redirect","description":"Legacy route - redirect to new unified interface with extraction tab","operationId":"extract_redirect_pptx_studio_extract_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"tags":["PPTX Studio"],"summary":"Extract Demo","description":"Forward an extraction request to the PPTX API Server and stream back one ZIP.\n\nArchitecture: Webapp -> API Server -> PPTExtractor -> ZIP -> browser\n\nOne API request returns the ZIP and the API deletes its working files after\nsending, so nothing is stored server-side once this request finishes. Summary statistics\nare returned in the URL-encoded JSON ``X-Extract-Meta`` response header.","operationId":"extract_demo_pptx_studio_extract_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_extract_demo_pptx_studio_extract_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"head":{"tags":["PPTX Studio"],"summary":"Extract Redirect","description":"Legacy route - redirect to new unified interface with extraction tab","operationId":"extract_redirect_pptx_studio_extract_head","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/pptx_studio/generate/download":{"get":{"tags":["PPTX Studio"],"summary":"Download Generated File","description":"Download a generated file from persistent storage\nDirect file serving (no API proxy needed)","operationId":"download_generated_file_pptx_studio_generate_download_get","parameters":[{"name":"path","in":"query","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"}}}}}}},"/pptx_studio/generate":{"get":{"tags":["PPTX Studio"],"summary":"Generate Removed","description":"Generation page route removed - redirects to unified interface\nRaises 404 Not Found since the /pptx_studio/generate page has been deprecated","operationId":"generate_removed_pptx_studio_generate_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"post":{"tags":["PPTX Studio"],"summary":"Generate Demo","description":"Unified presentation generation endpoint - handles both regular generation and regeneration\n\nModes:\n1. Demo Generation: Create sample presentations (comprehensive, charts, tables, text)\n2. Data Generation: Create sample data files (input_data, config_data)\n3. Custom Generation: Generate from input_data_file (JSON/CSV/YAML)\n4. Regeneration: Generate from extracted data (shapes_type_*.json/yaml/toml/csv or ZIP archives)\n\nAuto-detects mode based on uploaded files:\n- shapes_type_*.{json,yaml,toml,csv} files → Regeneration mode\n- .zip files with shapes_type_* files → Regeneration mode  \n- Regular .json/.csv/.yaml files → Custom generation mode\n- No data files → Demo generation mode\n\nSupports template selection from gallery via template_name parameter\nor direct upload via template_file parameter","operationId":"generate_demo_pptx_studio_generate_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_generate_demo_pptx_studio_generate_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pptx_studio/generate_placeholder":{"get":{"tags":["PPTX Studio"],"summary":"Generate Placeholder Page","description":"Advanced Generate Features Placeholder Page\nPlanning and roadmap for user-friendly PPTX generation features","operationId":"generate_placeholder_page_pptx_studio_generate_placeholder_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/pptx_studio/regenerate":{"get":{"tags":["PPTX Studio"],"summary":"Regenerate Demo Page","description":"Redirect to unified generate page\nRegenerate functionality has been merged into /pptx_studio/generate","operationId":"regenerate_demo_page_pptx_studio_regenerate_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"post":{"tags":["PPTX Studio"],"summary":"Regenerate Demo","description":"Redirect POST requests to unified generate endpoint\nRegenerate functionality has been merged into /pptx_studio/generate","operationId":"regenerate_demo_pptx_studio_regenerate_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_regenerate_demo_pptx_studio_regenerate_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pptx_studio/charts":{"get":{"tags":["PPTX Studio"],"summary":"Charts Demo Page","description":"Chart generation demo page","operationId":"charts_demo_page_pptx_studio_charts_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/pptx_studio/templates":{"get":{"tags":["PPTX Studio"],"summary":"Templates Page","description":"PPTX templates management page - DISABLED\n\nTemplate uploading is currently disabled to conserve server storage.\nBuilt-in templates are still available for use in the Generate function.","operationId":"templates_page_pptx_studio_templates_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"post":{"tags":["PPTX Studio"],"summary":"Upload Template","description":"Upload and manage PPTX templates\n\nSupports (matching template_command.py CLI):\n- Simple template upload and storage\n- Automatic naming from filename or custom name\n- Optional preparation for replace function (renames objects with proper prefixes)\n- Optional optimization (none, development, distribution, images_only)\n- Custom optimization settings (JSON properties or config file path)\n\nFiles are saved to: data/templates/<user_id>/<filename>","operationId":"upload_template_pptx_studio_templates_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_template_pptx_studio_templates_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pptx_studio/templates/api/list":{"get":{"tags":["PPTX Studio"],"summary":"List Templates Json","description":"JSON endpoint for listing available templates\nUsed by generate and regenerate pages to populate template dropdowns","operationId":"list_templates_json_pptx_studio_templates_api_list_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/pptx_studio/templates/delete":{"post":{"tags":["PPTX Studio"],"summary":"Delete Template","description":"Delete a template from the user's templates directory\n\nDeletes from: data/templates/<user_id>/<template_name>","operationId":"delete_template_pptx_studio_templates_delete_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_delete_template_pptx_studio_templates_delete_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pptx_studio/extract/clear":{"post":{"tags":["PPTX Studio"],"summary":"Clear Extracted Files","description":"Delete the extraction output directory and all its files","operationId":"clear_extracted_files_pptx_studio_extract_clear_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_clear_extracted_files_pptx_studio_extract_clear_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pptx_studio/api/preview":{"post":{"tags":["PPTX Studio"],"summary":"Generate Preview","description":"Generate a preview PPTX file and convert to images\nReturns slide images as base64 JSON","operationId":"generate_preview_pptx_studio_api_preview_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_generate_preview_pptx_studio_api_preview_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/docx_studio/":{"get":{"tags":["DOCX Studio"],"summary":"Studio Home","description":"DOCX Studio - unified single-page app with extraction and generation tabs","operationId":"studio_home_docx_studio__get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/docx_studio/extraction":{"get":{"tags":["DOCX Studio"],"summary":"Extraction Redirect","description":"Redirect to unified studio page with extraction tab","operationId":"extraction_redirect_docx_studio_extraction_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/docx_studio/generation":{"get":{"tags":["DOCX Studio"],"summary":"Generation Redirect","description":"Redirect to unified studio page with generation tab","operationId":"generation_redirect_docx_studio_generation_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/docx_studio/extract":{"get":{"tags":["DOCX Studio"],"summary":"Extract Redirect","description":"Legacy redirect to unified studio page with extraction tab","operationId":"extract_redirect_docx_studio_extract_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"post":{"tags":["DOCX Studio"],"summary":"Extract Docx","description":"Forward extraction request to DOCX API Server (Microservices Pattern)\n\nArchitecture: Webapp → DOCX API Server (Port 8002) → DOCXExtractor → Results","operationId":"extract_docx_docx_studio_extract_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_extract_docx_docx_studio_extract_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/docx_studio/generate":{"get":{"tags":["DOCX Studio"],"summary":"Generate Redirect","description":"Legacy redirect to unified studio page with generation tab","operationId":"generate_redirect_docx_studio_generate_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"post":{"tags":["DOCX Studio"],"summary":"Generate Docx","description":"Generate DOCX documents using direct library imports (same pattern as PPTX Studio).\nNo HTTP call to docxgen-api — avoids SERVICE_AUTH_TOKEN mismatch across services.\n\nHandles:\n- Demo modes (paragraph, chart, table): Generate showcase DOCX files\n- Input data mode: Generate sample data files (JSON/YAML/TOML/CSV)\n- Standard modes: Generate DOCX from uploaded data file or template\n- from_extracted mode: Regenerate DOCX from extracted JSON + original DOCX\n- PDF conversion: Generate DOCX then convert to PDF via LibreOffice","operationId":"generate_docx_docx_studio_generate_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_generate_docx_docx_studio_generate_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/docx_studio/templates":{"get":{"tags":["DOCX Studio"],"summary":"Templates Page","description":"Word document templates page - DISABLED\n\nTemplate uploading is currently disabled to conserve server storage.\nBuilt-in templates are still available for use in the Generate function.","operationId":"templates_page_docx_studio_templates_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/docx_studio/extract/download/{filename}":{"get":{"tags":["DOCX Studio"],"summary":"Download Extracted File","description":"Proxy file download to DOCX API Server","operationId":"download_extracted_file_docx_studio_extract_download__filename__get","parameters":[{"name":"filename","in":"path","required":true,"schema":{"type":"string","title":"Filename"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pdf_studio/":{"get":{"tags":["PDF Studio"],"summary":"Studio Home","description":"PDF Studio - unified single-page app with extraction, generation, and conversion tabs\nAll features marked as Coming Soon","operationId":"studio_home_pdf_studio__get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/pdf_studio/extraction":{"get":{"tags":["PDF Studio"],"summary":"Extraction Redirect","description":"Redirect to unified studio page with extraction tab","operationId":"extraction_redirect_pdf_studio_extraction_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/pdf_studio/generation":{"get":{"tags":["PDF Studio"],"summary":"Generation Redirect","description":"Redirect to unified studio page with generation tab","operationId":"generation_redirect_pdf_studio_generation_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/pdf_studio/conversion":{"get":{"tags":["PDF Studio"],"summary":"Conversion Redirect","description":"Redirect to unified studio page with conversion tab","operationId":"conversion_redirect_pdf_studio_conversion_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/pdf_studio/extract":{"get":{"tags":["PDF Studio"],"summary":"Extract Redirect","description":"Legacy redirect to unified studio page with extraction tab","operationId":"extract_redirect_pdf_studio_extract_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/pdf_studio/generate":{"get":{"tags":["PDF Studio"],"summary":"Generate Redirect","description":"Legacy redirect to unified studio page with generation tab","operationId":"generate_redirect_pdf_studio_generate_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/pdf_studio/convert":{"get":{"tags":["PDF Studio"],"summary":"Convert Redirect","description":"Legacy redirect to unified studio page with conversion tab","operationId":"convert_redirect_pdf_studio_convert_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/docs/":{"get":{"tags":["Documentation"],"summary":"Docs Main Home","description":"Main documentation page showing all studios","operationId":"docs_main_home_docs__get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/docs/pptx_studio":{"get":{"tags":["Documentation"],"summary":"Pp Studio Home","description":"PPTX Studio documentation home page","operationId":"pp_studio_home_docs_pptx_studio_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/docs/pptx_studio/getting-started":{"get":{"tags":["Documentation"],"summary":"Pp Studio Getting Started","description":"Getting started documentation","operationId":"pp_studio_getting_started_docs_pptx_studio_getting_started_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/docs/pptx_studio/api":{"get":{"tags":["Documentation"],"summary":"Pp Studio Api Docs","description":"API documentation page","operationId":"pp_studio_api_docs_docs_pptx_studio_api_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/docs/pptx_studio/extraction":{"get":{"tags":["Documentation"],"summary":"Extract Docs","description":"Extract documentation page","operationId":"extract_docs_docs_pptx_studio_extraction_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/docs/pptx_studio/generate":{"get":{"tags":["Documentation"],"summary":"Generate Docs","description":"Generate documentation page","operationId":"generate_docs_docs_pptx_studio_generate_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/docs/pptx_studio/regenerate":{"get":{"tags":["Documentation"],"summary":"Regenerate Docs","description":"Redirect to unified generate documentation\nRegenerate functionality has been merged into Generate","operationId":"regenerate_docs_docs_pptx_studio_regenerate_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/docs/pptx_studio/templates":{"get":{"tags":["Documentation"],"summary":"Templates Docs","description":"Templates documentation page","operationId":"templates_docs_docs_pptx_studio_templates_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/docs/pptx_studio/sdks":{"get":{"tags":["Documentation"],"summary":"Sdks Docs","description":"SDKs and libraries documentation","operationId":"sdks_docs_docs_pptx_studio_sdks_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/docs/docx_studio":{"get":{"tags":["Documentation"],"summary":"Pw Studio Home","description":"DOCX Studio documentation home page","operationId":"pw_studio_home_docs_docx_studio_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/docs/docx_studio/extraction":{"get":{"tags":["Documentation"],"summary":"Pw Studio Extraction Docs","description":"DOCX Studio extraction documentation page","operationId":"pw_studio_extraction_docs_docs_docx_studio_extraction_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/docs/docx_studio/generation":{"get":{"tags":["Documentation"],"summary":"Pw Studio Generation Docs","description":"DOCX Studio generation documentation page","operationId":"pw_studio_generation_docs_docs_docx_studio_generation_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/docs/pdf_studio":{"get":{"tags":["Documentation"],"summary":"Pdf Studio Home","description":"PDF Studio documentation home (coming soon)","operationId":"pdf_studio_home_docs_pdf_studio_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/careers":{"get":{"tags":["Careers"],"summary":"Careers Page","description":"Careers page showing open positions and company information","operationId":"careers_page_careers_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/careers/{position_id}":{"get":{"tags":["Careers"],"summary":"Position Detail","description":"Detailed position page with application information","operationId":"position_detail_careers__position_id__get","parameters":[{"name":"position_id","in":"path","required":true,"schema":{"type":"string","title":"Position Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/profile/":{"get":{"tags":["Profile"],"summary":"Profile Page","description":"User profile page with actual usage statistics from database","operationId":"profile_page_profile__get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/profile/edit":{"get":{"tags":["Profile"],"summary":"Edit Profile Page","description":"Edit profile page","operationId":"edit_profile_page_profile_edit_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"post":{"tags":["Profile"],"summary":"Update Profile","description":"Update user profile","operationId":"update_profile_profile_edit_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_update_profile_profile_edit_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/profile/security":{"get":{"tags":["Profile"],"summary":"Security Page","description":"Security settings page with real user data","operationId":"security_page_profile_security_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/profile/verify-code":{"post":{"tags":["Profile"],"summary":"Verify Code","description":"Verify account via 6-digit code entered on the security page.\nThe code was sent to the user's email during registration or via resend.","operationId":"verify_code_profile_verify_code_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_verify_code_profile_verify_code_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/profile/resend-verification":{"post":{"tags":["Profile"],"summary":"Resend Verification","description":"Resend a new verification code to the user's email.\nInvalidates any previous unused codes.","operationId":"resend_verification_profile_resend_verification_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_resend_verification_profile_resend_verification_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/profile/change-password":{"post":{"tags":["Profile"],"summary":"Change Password","description":"Change user password","operationId":"change_password_profile_change_password_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_change_password_profile_change_password_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/profile/billing":{"get":{"tags":["Profile"],"summary":"Billing Page","description":"Billing and subscription page with DCU-based usage data","operationId":"billing_page_profile_billing_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/profile/usage":{"get":{"tags":["Profile"],"summary":"Usage Page","description":"Usage statistics page with real data from database","operationId":"usage_page_profile_usage_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/profile/api-keys":{"get":{"tags":["Profile"],"summary":"Api Keys Page","description":"API Keys management page with user's API keys and usage tracking","operationId":"api_keys_page_profile_api_keys_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/profile/api-keys/generate":{"post":{"tags":["Profile"],"summary":"Generate Api Key","description":"Generate a new API key for the user","operationId":"generate_api_key_profile_api_keys_generate_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_generate_api_key_profile_api_keys_generate_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/profile/api-keys/revoke/{key_id}":{"post":{"tags":["Profile"],"summary":"Revoke Api Key","description":"Revoke an API key","operationId":"revoke_api_key_profile_api_keys_revoke__key_id__post","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"string","title":"Key Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/profile/api-keys/delete/{key_id}":{"post":{"tags":["Profile"],"summary":"Delete Api Key","description":"Permanently delete an API key","operationId":"delete_api_key_profile_api_keys_delete__key_id__post","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"string","title":"Key Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/profile/delete-account":{"post":{"tags":["Profile"],"summary":"Delete Account","description":"Delete user account and all related data\nRequires password confirmation for security","operationId":"delete_account_profile_delete_account_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_delete_account_profile_delete_account_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/":{"get":{"tags":["Admin","Admin Dashboard"],"summary":"Admin Dashboard","operationId":"admin_dashboard_admin__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/dashboard":{"get":{"tags":["Admin","Admin Dashboard"],"summary":"Admin Dashboard Alt","description":"Alternative route for /admin/dashboard","operationId":"admin_dashboard_alt_admin_dashboard_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/api/stats":{"get":{"tags":["Admin","Admin Dashboard"],"summary":"Get Stats","description":"Dashboard statistics (JSON API).","operationId":"get_stats_admin_api_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/users/":{"get":{"tags":["Admin","Admin Users"],"summary":"Users Page","operationId":"users_page_admin_users__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/users/api/list":{"get":{"tags":["Admin","Admin Users"],"summary":"List Users","description":"Paginated user list with usage stats.","operationId":"list_users_admin_users_api_list_get","parameters":[{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"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"}}}}}}},"/admin/users/api/management":{"get":{"tags":["Admin","Admin Users"],"summary":"Management List Users","description":"Enhanced user management list with access controls and last month usage.\n\nOptimized: uses LEFT JOIN aggregations so the entire page is fetched in\n2 queries (count + data) instead of 2*N+2 queries (one pair per user).","operationId":"management_list_users_admin_users_api_management_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Per Page"}},{"name":"search","in":"query","required":false,"schema":{"type":"string","maxLength":200,"default":"","title":"Search"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/users/api/monthly/{username}":{"get":{"tags":["Admin","Admin Users"],"summary":"Monthly Breakdown","description":"Per-month usage breakdown for a user.","operationId":"monthly_breakdown_admin_users_api_monthly__username__get","parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string","title":"Username"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/users/api/detail/{username}":{"get":{"tags":["Admin","Admin Users"],"summary":"User Detail","description":"Detailed stats for a single user.","operationId":"user_detail_admin_users_api_detail__username__get","parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string","title":"Username"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/users/api/export/csv":{"get":{"tags":["Admin","Admin Users"],"summary":"Export Csv","description":"Export all users with stats as CSV.","operationId":"export_csv_admin_users_api_export_csv_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/users/api/toggle-active":{"post":{"tags":["Admin","Admin Users"],"summary":"Toggle Active","description":"Toggle user is_active status.","operationId":"toggle_active_admin_users_api_toggle_active_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/users/api/toggle-premium":{"post":{"tags":["Admin","Admin Users"],"summary":"Toggle Premium","description":"Toggle user is_premium status.","operationId":"toggle_premium_admin_users_api_toggle_premium_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/users/api/toggle-verified":{"post":{"tags":["Admin","Admin Users"],"summary":"Toggle Verified","description":"Toggle user is_verified status.","operationId":"toggle_verified_admin_users_api_toggle_verified_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/users/api/toggle-admin":{"post":{"tags":["Admin","Admin Users"],"summary":"Toggle Admin","description":"Toggle user is_admin status.","operationId":"toggle_admin_admin_users_api_toggle_admin_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/users/api/reset-dcu":{"post":{"tags":["Admin","Admin Users"],"summary":"Reset Dcu","description":"Reset DCU usage for current month by deleting usage_logs records and updating user balance.","operationId":"reset_dcu_admin_users_api_reset_dcu_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/storage/":{"get":{"tags":["Admin","Admin Storage"],"summary":"Storage Page","description":"Storage analytics page","operationId":"storage_page_admin_storage__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/storage/api/stats":{"get":{"tags":["Admin","Admin Storage"],"summary":"Storage Stats","description":"Get storage statistics (JSON API)","operationId":"storage_stats_admin_storage_api_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/storage/api/breakdown":{"get":{"tags":["Admin","Admin Storage"],"summary":"Storage Breakdown","description":"Get detailed storage breakdown by folder","operationId":"storage_breakdown_admin_storage_api_breakdown_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/analytics/":{"get":{"tags":["Admin","Admin Analytics"],"summary":"Analytics Page","operationId":"analytics_page_admin_analytics__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/analytics/api/usage-trends":{"get":{"tags":["Admin","Admin Analytics"],"summary":"Usage Trends","description":"Usage trends over time.","operationId":"usage_trends_admin_analytics_api_usage_trends_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":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/analytics/api/top-users":{"get":{"tags":["Admin","Admin Analytics"],"summary":"Top Users","description":"Top users by API call volume — single aggregate query, no N+1.\nperiod: 'today' | 'week' (default) | 'all'","operationId":"top_users_admin_analytics_api_top_users_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":10,"title":"Limit"}},{"name":"period","in":"query","required":false,"schema":{"type":"string","pattern":"^(today|week|all)$","default":"week","title":"Period"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/analytics/api/operation-stats":{"get":{"tags":["Admin","Admin Analytics"],"summary":"Operation Stats","description":"Operation stats from usage_logs, respects period filter.","operationId":"operation_stats_admin_analytics_api_operation_stats_get","parameters":[{"name":"period","in":"query","required":false,"schema":{"type":"string","pattern":"^(today|week|all)$","default":"week","title":"Period"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/analytics/api/overview":{"get":{"tags":["Admin","Admin Analytics"],"summary":"Get Usage Overview","operationId":"get_usage_overview_admin_analytics_api_overview_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/analytics/api/online-users":{"get":{"tags":["Admin","Admin Analytics"],"summary":"Get Online Users","description":"Get count of users currently online (active within last N minutes).\n\nArgs:\n    minutes: Time window in minutes (default 15, max 1440/24 hours)","operationId":"get_online_users_admin_analytics_api_online_users_get","parameters":[{"name":"minutes","in":"query","required":false,"schema":{"type":"integer","maximum":1440,"minimum":1,"default":15,"title":"Minutes"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/analytics/api/users":{"get":{"tags":["Admin","Admin Analytics"],"summary":"Get User Usage","description":"Paginated user usage stats — single JOIN query, no N+1.\nperiod: 'today' | 'week' (default) | 'all'","operationId":"get_user_usage_admin_analytics_api_users_get","parameters":[{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"search","in":"query","required":false,"schema":{"type":"string","maxLength":200,"default":"","title":"Search"}},{"name":"period","in":"query","required":false,"schema":{"type":"string","pattern":"^(today|week|all)$","default":"week","title":"Period"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/analytics/api/export/csv":{"get":{"tags":["Admin","Admin Analytics"],"summary":"Export Usage Csv","operationId":"export_usage_csv_admin_analytics_api_export_csv_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/analytics/api/daily-activity":{"get":{"tags":["Admin","Admin Analytics"],"summary":"Get Daily Activity","operationId":"get_daily_activity_admin_analytics_api_daily_activity_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":90,"minimum":1,"default":7,"title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/database/":{"get":{"tags":["Admin","Admin Database"],"summary":"Database Page","description":"Database management page","operationId":"database_page_admin_database__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/database/api/databases":{"get":{"tags":["Admin","Admin Database"],"summary":"List Databases","description":"Return the unified database and its tables with column metadata.","operationId":"list_databases_admin_database_api_databases_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/database/api/tables/{db_name}/{table_name}":{"get":{"tags":["Admin","Admin Database"],"summary":"Get Table Data","description":"Return paginated rows for a given table.","operationId":"get_table_data_admin_database_api_tables__db_name___table_name__get","parameters":[{"name":"db_name","in":"path","required":true,"schema":{"type":"string","title":"Db Name"}},{"name":"table_name","in":"path","required":true,"schema":{"type":"string","title":"Table Name"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/database/api/metadata/tables":{"get":{"tags":["Admin","Admin Database"],"summary":"List Table Metadata","description":"Get comprehensive table information with sizes and row counts.","operationId":"list_table_metadata_admin_database_api_metadata_tables_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/database/api/metadata/columns/{table_name}":{"get":{"tags":["Admin","Admin Database"],"summary":"Get Table Columns Metadata","description":"Get detailed column information for a specific table.","operationId":"get_table_columns_metadata_admin_database_api_metadata_columns__table_name__get","parameters":[{"name":"table_name","in":"path","required":true,"schema":{"type":"string","title":"Table Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/database/api/metadata/stats":{"get":{"tags":["Admin","Admin Database"],"summary":"Get Db Stats Endpoint","description":"Get overall database statistics.","operationId":"get_db_stats_endpoint_admin_database_api_metadata_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/database/api/metadata/query":{"post":{"tags":["Admin","Admin Database"],"summary":"Execute Metadata Query","description":"Execute a read-only query against metadata_schema or information_schema.\n\nIMPORTANT: Only SELECT queries against metadata schemas are allowed.\nThis prevents accidental or malicious data modification while enabling\nadmin analytics and monitoring.\n\nBody:\n    {\n        \"query\": \"SELECT * FROM metadata_schema.table_info LIMIT 10\",\n        \"params\": []  # optional query parameters\n    }","operationId":"execute_metadata_query_admin_database_api_metadata_query_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/database/api/access/users":{"get":{"tags":["Admin","Admin Database"],"summary":"Access List Users","description":"List users with access-management fields.","operationId":"access_list_users_admin_database_api_access_users_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Per Page"}},{"name":"search","in":"query","required":false,"schema":{"type":"string","maxLength":200,"default":"","title":"Search"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/database/api/access/toggle-active":{"post":{"tags":["Admin","Admin Database"],"summary":"Toggle User Active","operationId":"toggle_user_active_admin_database_api_access_toggle_active_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/database/api/access/toggle-admin":{"post":{"tags":["Admin","Admin Database"],"summary":"Toggle User Admin","operationId":"toggle_user_admin_admin_database_api_access_toggle_admin_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/database/api/access/toggle-premium":{"post":{"tags":["Admin","Admin Database"],"summary":"Toggle User Premium","operationId":"toggle_user_premium_admin_database_api_access_toggle_premium_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/database/api/access/toggle-verified":{"post":{"tags":["Admin","Admin Database"],"summary":"Toggle User Verified","operationId":"toggle_user_verified_admin_database_api_access_toggle_verified_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/database/api/sql/execute":{"post":{"tags":["Admin","Admin Database"],"summary":"Execute Sql","description":"Execute a read-only SQL query.","operationId":"execute_sql_admin_database_api_sql_execute_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/database/api/audit":{"get":{"tags":["Admin","Admin Database"],"summary":"Get Audit Logs","operationId":"get_audit_logs_admin_database_api_audit_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Per Page"}},{"name":"category","in":"query","required":false,"schema":{"type":"string","maxLength":50,"default":"","title":"Category"}},{"name":"action","in":"query","required":false,"schema":{"type":"string","maxLength":100,"default":"","title":"Action"}},{"name":"search","in":"query","required":false,"schema":{"type":"string","maxLength":200,"default":"","title":"Search"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/database/api/audit/summary":{"get":{"tags":["Admin","Admin Database"],"summary":"Get Audit Summary","operationId":"get_audit_summary_admin_database_api_audit_summary_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/database/api/db-stats":{"get":{"tags":["Admin","Admin Database"],"summary":"Get Db Stats","description":"Return DB size, table count, and row counts.","operationId":"get_db_stats_admin_database_api_db_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/database/api/backup/{db_name}":{"get":{"tags":["Admin","Admin Database"],"summary":"Download Backup","description":"Download the SQLite database file. Not available in PostgreSQL mode.","operationId":"download_backup_admin_database_api_backup__db_name__get","parameters":[{"name":"db_name","in":"path","required":true,"schema":{"type":"string","title":"Db Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/database/api/export/{db_name}/{table_name}":{"get":{"tags":["Admin","Admin Database"],"summary":"Export Table","description":"Export a table as CSV or JSON.","operationId":"export_table_admin_database_api_export__db_name___table_name__get","parameters":[{"name":"db_name","in":"path","required":true,"schema":{"type":"string","title":"Db Name"}},{"name":"table_name","in":"path","required":true,"schema":{"type":"string","title":"Table Name"}},{"name":"fmt","in":"query","required":false,"schema":{"type":"string","pattern":"^(csv|json)$","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/database/api/vacuum/{db_name}":{"post":{"tags":["Admin","Admin Database"],"summary":"Vacuum Database","description":"Run VACUUM to reclaim disk space.","operationId":"vacuum_database_admin_database_api_vacuum__db_name__post","parameters":[{"name":"db_name","in":"path","required":true,"schema":{"type":"string","title":"Db Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/notifications/":{"get":{"tags":["Admin","Admin Notifications"],"summary":"Notifications Page","description":"Admin notifications management page.","operationId":"notifications_page_admin_notifications__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/notifications/send":{"post":{"tags":["Admin","Admin Notifications"],"summary":"Send Notification","description":"Create a system notification and send emails to matching users.","operationId":"send_notification_admin_notifications_send_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_send_notification_admin_notifications_send_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/notifications/api/detail/{notif_id}":{"get":{"tags":["Admin","Admin Notifications"],"summary":"Notification Detail","description":"Return JSON detail for a specific notification including send log.","operationId":"notification_detail_admin_notifications_api_detail__notif_id__get","parameters":[{"name":"notif_id","in":"path","required":true,"schema":{"type":"integer","title":"Notif Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/notifications/api/stats":{"get":{"tags":["Admin","Admin Notifications"],"summary":"Notification Stats","description":"Dashboard-level stats for the notifications page.","operationId":"notification_stats_admin_notifications_api_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/notifications/test-email":{"post":{"tags":["Admin","Admin Notifications"],"summary":"Test Email","description":"Send a test email to verify email configuration is working.","operationId":"test_email_admin_notifications_test_email_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_test_email_admin_notifications_test_email_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/notifications/email-config":{"get":{"tags":["Admin","Admin Notifications"],"summary":"Email Config","description":"Return current email configuration status (no secrets).","operationId":"email_config_admin_notifications_email_config_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/chatbot/chat":{"post":{"tags":["Chatbot","chatbot"],"summary":"Chat","description":"Send a message to the chatbot and get a response\n\nArgs:\n    request: ChatRequest with user message and optional conversation state\n    \nReturns:\n    ChatResponse with chatbot response and updated state\n    \nExample:\n    Request body:\n    {\n        \"message\": \"Hello\",\n        \"conversation_state\": \"greeting\"\n    }\n    \n    Response:\n    {\n        \"response\": \"Hello! How can I help?\",\n        \"category\": \"greeting\",\n        \"confidence\": 1.0,\n        \"is_faq\": false,\n        \"conversation_state\": \"greeting_done\",\n        \"ask_followup\": false\n    }","operationId":"chat_api_chatbot_chat_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chatbot/health":{"get":{"tags":["Chatbot","chatbot","chatbot"],"summary":"Health","description":"Health check endpoint for chatbot service\n\nReturns:\n    Health status","operationId":"health_api_chatbot_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/billing/checkout-session":{"post":{"tags":["Billing"],"summary":"Create Checkout Session","description":"Create a Stripe Checkout Session for the Limited-Time Offer.\n\nAuthentication: required (session cookie / JWT — set by AuthMiddleware).\nClient-supplied price IDs and amounts are never accepted.\n\nReturns\n-------\n200  ``{\"checkout_url\": \"<Stripe hosted page URL>\"}``\n401  not authenticated\n403  plan inactive\n409  user already has limited_offer\n502  Stripe API error\n503  server not configured / plan missing","operationId":"create_checkout_session_api_billing_checkout_session_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/billing/webhook":{"post":{"tags":["Billing"],"summary":"Stripe Webhook","description":"Receive Stripe webhook events with signature verification.\n\nThis endpoint intentionally records verified events only. It does not\nmutate subscriptions or DCU balances in Step 6.","operationId":"stripe_webhook_api_billing_webhook_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/billing/success":{"get":{"tags":["Billing"],"summary":"Billing Success","description":"Post-checkout landing page.\n\nDoes NOT activate a subscription or mutate any DCU data.\nSubscription activation is handled by the Stripe webhook (Step 6).","operationId":"billing_success_billing_success_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/pptx/api/{path}":{"delete":{"tags":["PPTX API Proxy","PPTX API Proxy"],"summary":"Pptx Api Proxy","description":"Proxy requests to the internal PPTX API service.","operationId":"pptx_api_proxy_pptx_api__path__delete","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"}}}}}},"post":{"tags":["PPTX API Proxy","PPTX API Proxy"],"summary":"Pptx Api Proxy","description":"Proxy requests to the internal PPTX API service.","operationId":"pptx_api_proxy_pptx_api__path__delete","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"}}}}}},"get":{"tags":["PPTX API Proxy","PPTX API Proxy"],"summary":"Pptx Api Proxy","description":"Proxy requests to the internal PPTX API service.","operationId":"pptx_api_proxy_pptx_api__path__delete","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"}}}}}},"options":{"tags":["PPTX API Proxy","PPTX API Proxy"],"summary":"Pptx Api Proxy","description":"Proxy requests to the internal PPTX API service.","operationId":"pptx_api_proxy_pptx_api__path__delete","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"}}}}}},"patch":{"tags":["PPTX API Proxy","PPTX API Proxy"],"summary":"Pptx Api Proxy","description":"Proxy requests to the internal PPTX API service.","operationId":"pptx_api_proxy_pptx_api__path__delete","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"}}}}}},"put":{"tags":["PPTX API Proxy","PPTX API Proxy"],"summary":"Pptx Api Proxy","description":"Proxy requests to the internal PPTX API service.","operationId":"pptx_api_proxy_pptx_api__path__delete","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"}}}}}},"head":{"tags":["PPTX API Proxy","PPTX API Proxy"],"summary":"Pptx Api Proxy","description":"Proxy requests to the internal PPTX API service.","operationId":"pptx_api_proxy_pptx_api__path__delete","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"}}}}}}},"/docx/api/{path}":{"delete":{"tags":["DOCX API Proxy","DOCX API Proxy"],"summary":"Docx Api Proxy","description":"Proxy requests to the internal DOCX API service.","operationId":"docx_api_proxy_docx_api__path__delete","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"}}}}}},"post":{"tags":["DOCX API Proxy","DOCX API Proxy"],"summary":"Docx Api Proxy","description":"Proxy requests to the internal DOCX API service.","operationId":"docx_api_proxy_docx_api__path__delete","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"}}}}}},"get":{"tags":["DOCX API Proxy","DOCX API Proxy"],"summary":"Docx Api Proxy","description":"Proxy requests to the internal DOCX API service.","operationId":"docx_api_proxy_docx_api__path__delete","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"}}}}}},"options":{"tags":["DOCX API Proxy","DOCX API Proxy"],"summary":"Docx Api Proxy","description":"Proxy requests to the internal DOCX API service.","operationId":"docx_api_proxy_docx_api__path__delete","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"}}}}}},"patch":{"tags":["DOCX API Proxy","DOCX API Proxy"],"summary":"Docx Api Proxy","description":"Proxy requests to the internal DOCX API service.","operationId":"docx_api_proxy_docx_api__path__delete","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"}}}}}},"put":{"tags":["DOCX API Proxy","DOCX API Proxy"],"summary":"Docx Api Proxy","description":"Proxy requests to the internal DOCX API service.","operationId":"docx_api_proxy_docx_api__path__delete","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"}}}}}},"head":{"tags":["DOCX API Proxy","DOCX API Proxy"],"summary":"Docx Api Proxy","description":"Proxy requests to the internal DOCX API service.","operationId":"docx_api_proxy_docx_api__path__delete","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"}}}}}}},"/pdf/api/{path}":{"delete":{"tags":["PDF API Proxy","PDF API Proxy"],"summary":"Pdf Api Proxy","description":"Proxy requests to the internal PDF API service.","operationId":"pdf_api_proxy_pdf_api__path__delete","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"}}}}}},"post":{"tags":["PDF API Proxy","PDF API Proxy"],"summary":"Pdf Api Proxy","description":"Proxy requests to the internal PDF API service.","operationId":"pdf_api_proxy_pdf_api__path__delete","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"}}}}}},"get":{"tags":["PDF API Proxy","PDF API Proxy"],"summary":"Pdf Api Proxy","description":"Proxy requests to the internal PDF API service.","operationId":"pdf_api_proxy_pdf_api__path__delete","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"}}}}}},"options":{"tags":["PDF API Proxy","PDF API Proxy"],"summary":"Pdf Api Proxy","description":"Proxy requests to the internal PDF API service.","operationId":"pdf_api_proxy_pdf_api__path__delete","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"}}}}}},"patch":{"tags":["PDF API Proxy","PDF API Proxy"],"summary":"Pdf Api Proxy","description":"Proxy requests to the internal PDF API service.","operationId":"pdf_api_proxy_pdf_api__path__delete","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"}}}}}},"put":{"tags":["PDF API Proxy","PDF API Proxy"],"summary":"Pdf Api Proxy","description":"Proxy requests to the internal PDF API service.","operationId":"pdf_api_proxy_pdf_api__path__delete","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"}}}}}},"head":{"tags":["PDF API Proxy","PDF API Proxy"],"summary":"Pdf Api Proxy","description":"Proxy requests to the internal PDF API service.","operationId":"pdf_api_proxy_pdf_api__path__delete","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-keys":{"get":{"summary":"Redirect Api Keys","description":"Redirect old /api-keys to new /profile/api-keys location","operationId":"redirect_api_keys_api_keys_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api-keys/{path}":{"get":{"summary":"Redirect Api Keys Subpaths","description":"Redirect old /api-keys subpaths to new /profile/api-keys location","operationId":"redirect_api_keys_subpaths_api_keys__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"}}}}}}},"/health":{"get":{"summary":"Health Check","operationId":"health_check_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/privacy":{"get":{"summary":"Privacy","description":"Show privacy policy page","operationId":"privacy_privacy_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/terms":{"get":{"summary":"Terms","description":"Show terms of service page","operationId":"terms_terms_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"Body_change_password_profile_change_password_post":{"properties":{"current_password":{"type":"string","title":"Current Password"},"new_password":{"type":"string","title":"New Password"},"confirm_password":{"type":"string","title":"Confirm Password"}},"type":"object","required":["current_password","new_password","confirm_password"],"title":"Body_change_password_profile_change_password_post"},"Body_clear_extracted_files_pptx_studio_extract_clear_post":{"properties":{"dir":{"type":"string","title":"Dir"}},"type":"object","required":["dir"],"title":"Body_clear_extracted_files_pptx_studio_extract_clear_post"},"Body_contact_submit_contact_post":{"properties":{"name":{"type":"string","title":"Name"},"email":{"type":"string","title":"Email"},"message":{"type":"string","title":"Message"}},"type":"object","required":["name","email","message"],"title":"Body_contact_submit_contact_post"},"Body_delete_account_profile_delete_account_post":{"properties":{"password":{"type":"string","title":"Password"}},"type":"object","required":["password"],"title":"Body_delete_account_profile_delete_account_post"},"Body_delete_template_pptx_studio_templates_delete_post":{"properties":{"template_name":{"type":"string","title":"Template Name"}},"type":"object","required":["template_name"],"title":"Body_delete_template_pptx_studio_templates_delete_post"},"Body_extract_demo_pptx_studio_extract_post":{"properties":{"files":{"items":{"type":"string","format":"binary"},"type":"array","title":"Files"},"mode":{"type":"string","title":"Mode","default":"detailed"},"shape_filter":{"type":"string","title":"Shape Filter","default":""},"file_format":{"type":"string","title":"File Format","default":"json"}},"type":"object","required":["files"],"title":"Body_extract_demo_pptx_studio_extract_post"},"Body_extract_docx_docx_studio_extract_post":{"properties":{"files":{"items":{"type":"string","format":"binary"},"type":"array","title":"Files"},"mode":{"type":"string","title":"Mode","default":"detailed"},"file_format":{"type":"string","title":"File Format","default":"json"},"extract_tables":{"type":"boolean","title":"Extract Tables","default":true},"extract_metadata":{"type":"boolean","title":"Extract Metadata","default":true},"extract_media":{"type":"boolean","title":"Extract Media","default":false},"extract_embeddings":{"type":"boolean","title":"Extract Embeddings","default":false},"extract_charts":{"type":"boolean","title":"Extract Charts","default":false}},"type":"object","required":["files"],"title":"Body_extract_docx_docx_studio_extract_post"},"Body_forgot_password_auth_forgot_password_post":{"properties":{"email":{"type":"string","title":"Email"}},"type":"object","required":["email"],"title":"Body_forgot_password_auth_forgot_password_post"},"Body_generate_api_key_profile_api_keys_generate_post":{"properties":{"key_name":{"type":"string","title":"Key Name","default":"API Key"}},"type":"object","title":"Body_generate_api_key_profile_api_keys_generate_post"},"Body_generate_demo_pptx_studio_generate_post":{"properties":{"mode":{"type":"string","title":"Mode","default":"comprehensive"},"source":{"type":"string","title":"Source","default":"upload"},"optimization_mode":{"type":"string","title":"Optimization Mode","default":"development"},"json_config":{"type":"string","title":"Json Config","default":""},"file_format":{"type":"string","title":"File Format","default":"json"},"output_file":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Output File"},"template_file":{"anyOf":[{"type":"string","format":"binary"},{"type":"null"}],"title":"Template File"},"template_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Template Name"},"data_file":{"anyOf":[{"type":"string","format":"binary"},{"type":"null"}],"title":"Data File"},"input_data_file":{"anyOf":[{"type":"string","format":"binary"},{"type":"null"}],"title":"Input Data File"},"extracted_data_files":{"anyOf":[{"items":{"type":"string","format":"binary"},"type":"array"},{"type":"null"}],"title":"Extracted Data Files"},"adjust_slides":{"type":"boolean","title":"Adjust Slides","default":true},"enable_charts":{"type":"boolean","title":"Enable Charts","default":true}},"type":"object","title":"Body_generate_demo_pptx_studio_generate_post"},"Body_generate_docx_docx_studio_generate_post":{"properties":{"mode":{"type":"string","title":"Mode","default":"comprehensive"},"source":{"type":"string","title":"Source","default":"upload"},"data_file":{"anyOf":[{"type":"string","format":"binary"},{"type":"null"}],"title":"Data File"},"template_file":{"anyOf":[{"type":"string","format":"binary"},{"type":"null"}],"title":"Template File"},"extracted_template":{"anyOf":[{"type":"string","format":"binary"},{"type":"null"}],"title":"Extracted Template"},"extracted_data":{"anyOf":[{"type":"string","format":"binary"},{"type":"null"}],"title":"Extracted Data"},"file_format":{"type":"string","title":"File Format","default":"docx"},"output_file":{"type":"string","title":"Output File","default":"generated_document.docx"},"optimization_level":{"type":"string","title":"Optimization Level","default":"balanced"}},"type":"object","title":"Body_generate_docx_docx_studio_generate_post"},"Body_generate_preview_pptx_studio_api_preview_post":{"properties":{"mode":{"type":"string","title":"Mode"}},"type":"object","required":["mode"],"title":"Body_generate_preview_pptx_studio_api_preview_post"},"Body_login_auth_login_post":{"properties":{"username_or_email":{"type":"string","title":"Username Or Email"},"password":{"type":"string","title":"Password"},"next_url":{"type":"string","title":"Next Url","default":"/"}},"type":"object","required":["username_or_email","password"],"title":"Body_login_auth_login_post"},"Body_regenerate_demo_pptx_studio_regenerate_post":{"properties":{"template_file":{"anyOf":[{"type":"string","format":"binary"},{"type":"null"}],"title":"Template File"},"template_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Template Name"},"extracted_data_files":{"anyOf":[{"items":{"type":"string","format":"binary"},"type":"array"},{"type":"null"}],"title":"Extracted Data Files"},"adjust_slides":{"type":"boolean","title":"Adjust Slides","default":true},"enable_charts":{"type":"boolean","title":"Enable Charts","default":true}},"type":"object","title":"Body_regenerate_demo_pptx_studio_regenerate_post"},"Body_register_auth_register_post":{"properties":{"email":{"type":"string","title":"Email"},"username":{"type":"string","title":"Username"},"password":{"type":"string","title":"Password"},"confirm_password":{"type":"string","title":"Confirm Password"},"full_name":{"type":"string","title":"Full Name","default":""},"company":{"type":"string","title":"Company","default":""},"user_type":{"type":"string","title":"User Type","default":""},"country":{"type":"string","title":"Country","default":""},"city":{"type":"string","title":"City","default":""}},"type":"object","required":["email","username","password","confirm_password"],"title":"Body_register_auth_register_post"},"Body_resend_verification_profile_resend_verification_post":{"properties":{"next":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next"}},"type":"object","title":"Body_resend_verification_profile_resend_verification_post"},"Body_send_notification_admin_notifications_send_post":{"properties":{"subject":{"type":"string","title":"Subject"},"message":{"type":"string","title":"Message"},"notification_type":{"type":"string","title":"Notification Type","default":"info"},"recipient_filter":{"type":"string","title":"Recipient Filter","default":"all"}},"type":"object","required":["subject","message"],"title":"Body_send_notification_admin_notifications_send_post"},"Body_test_email_admin_notifications_test_email_post":{"properties":{"to_email":{"type":"string","title":"To Email"}},"type":"object","required":["to_email"],"title":"Body_test_email_admin_notifications_test_email_post"},"Body_update_profile_profile_edit_post":{"properties":{"full_name":{"type":"string","title":"Full Name"},"company":{"type":"string","title":"Company","default":""},"phone":{"type":"string","title":"Phone","default":""},"timezone":{"type":"string","title":"Timezone","default":"UTC"},"notifications_email":{"type":"boolean","title":"Notifications Email","default":false},"notifications_api":{"type":"boolean","title":"Notifications Api","default":false}},"type":"object","required":["full_name"],"title":"Body_update_profile_profile_edit_post"},"Body_upload_template_pptx_studio_templates_post":{"properties":{"template_file":{"type":"string","format":"binary","title":"Template File"},"template_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Template Name"},"prepare_for_replace":{"type":"boolean","title":"Prepare For Replace","default":false},"optimization_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Optimization Mode"},"custom_settings":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Custom Settings"}},"type":"object","required":["template_file"],"title":"Body_upload_template_pptx_studio_templates_post"},"Body_verify_code_profile_verify_code_post":{"properties":{"verification_code":{"type":"string","title":"Verification Code"},"next":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next"}},"type":"object","required":["verification_code"],"title":"Body_verify_code_profile_verify_code_post"},"ChatRequest":{"properties":{"message":{"type":"string","maxLength":1000,"minLength":1,"title":"Message","description":"User message or question"},"conversation_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conversation State","description":"Track conversation state (greeting, answered, followup)"}},"type":"object","required":["message"],"title":"ChatRequest","description":"Chat request from user","example":{"conversation_state":"question","message":"How do I extract data from PowerPoint?"}},"ChatResponse":{"properties":{"response":{"type":"string","title":"Response","description":"Chatbot response message"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category","description":"FAQ category if matched"},"confidence":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Confidence","description":"Confidence score of match (0-1)"},"is_faq":{"type":"boolean","title":"Is Faq","description":"Whether response is from FAQ database"},"question":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Question","description":"Original FAQ question if matched"},"conversation_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conversation State","description":"Updated conversation state for tracking"},"ask_followup":{"type":"boolean","title":"Ask Followup","description":"Whether to ask if customer needs anything else","default":false}},"type":"object","required":["response","confidence","is_faq"],"title":"ChatResponse","description":"Chat response from chatbot","example":{"category":"extraction","confidence":0.85,"is_faq":true,"question":"How do I extract data from PowerPoint?","response":"To extract data from PPTX:\n1. Go to PPTX Studio\n2. Click 'Extract' tab..."}},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}