{"message":"Financial Data API","version":"1.0.0","endpoints":{"authentication":{"POST /auth/register":"Register a new user","POST /auth/login":"Login and receive a JWT access token","POST /auth/forgot-password":"Generate a password reset token for a user email","POST /auth/reset-password":"Reset password using the generated reset token","GET /auth/me":"Get current authenticated user profile","POST /auth/refresh-token":"Issue a new JWT for an already-authenticated user (used by webhook token manager)","POST /auth/logout":"Write logout audit log and return success"},"financial_data":{"/finance/financial-data":"Get financial data from Moneycontrol/NSE"},"calculator":{"/calculator/calculate":"Calculate financial metrics","/calculator/companies":"Get all companies from database","/calculator/calculate/by-id":"Calculate metrics by document ID","/calculator/calculate/batch":"Calculate financial metrics for multiple companies","GET /calculator/export-ev-ebitda":"Export EV/EBITDA values to Excel file"},"projects":{"POST /projects/create":"Create a new project","GET /projects/list":"Get all projects","GET /projects/details/{project_id}":"Get specific project details","PUT /projects/update/{project_id}":"Update a project","DELETE /projects/delete/{project_id}":"Delete a project","GET /projects/companies/all":"Get all available companies","POST /projects/{project_id}/add-companies":"Add companies to project","POST /projects/{project_id}/remove-companies":"Remove companies from project","GET /projects/{project_id}/get-companies":"Get companies in a project"},"chatbot":{"POST /chatbot/ask":"Ask questions about stored company data with evidence and confidence","GET /chatbot/sessions":"List saved chatbot sessions for the current user","GET /chatbot/session/{session_id}":"Get chatbot interaction history for a session"},"sensitivity_analysis":{"POST /sensitivity/calculate/{company}":"Calculate and store EV sensitivity analysis","GET /sensitivity/data/{company}":"Get complete sensitivity analysis results","GET /sensitivity/year/{company}/{year}":"Get sensitivity analysis for specific year","GET /sensitivity/scenario/{company}?revenue_change_percent={percent}":"Get scenario comparison across years"},"grid_sensitivity_3d":{"POST /sensitivity/grid/calculate":"Calculate 3D grid sensitivity (125 scenarios) - manual inputs","POST /sensitivity/grid/calculate-auto/{company}":"Auto-calculate 3D grid sensitivity for ALL years","GET /sensitivity/grid/{company}/{year}":"Get 3D grid sensitivity with elasticity rankings"},"enhanced_sensitivity":{"POST /sensitivity/enhanced/calculate":"Enhanced sensitivity analysis (3 params: Revenue, EBITDA, IC) with direct cost methodology and sensitivity index","POST /sensitivity/enhanced/export-excel":"Export enhanced sensitivity analysis to Excel file"},"combined_sensitivity":{"POST /sensitivity/enhanced/combined/calculateCombined":"Combined sensitivity analysis (5 params: Revenue, EBITDA, IC, WACC, CAP) - Generates n^5 scenarios","POST /sensitivity/enhanced/combined/exportExcelCombined":"Export combined sensitivity analysis (5 params) to Excel file"},"wacc_sensitivity":{"POST /sensitivity/enhanced/wacc/calculateWACC":"WACC sensitivity analysis (4 params: Revenue, EBITDA, IC, WACC) - CAP stays constant - Generates n^4 scenarios","POST /sensitivity/enhanced/wacc/exportExcelWACC":"Export WACC sensitivity analysis to Excel file"},"cap_sensitivity":{"POST /sensitivity/enhanced/cap/calculateCAP":"CAP sensitivity analysis (4 params: Revenue, EBITDA, IC, CAP) - WACC stays constant - Generates n^4 scenarios","POST /sensitivity/enhanced/cap/exportExcelCAP":"Export CAP sensitivity analysis to Excel file"},"extraction":{"POST /finance/extract":"Unified extraction from web (Moneycontrol) or PDF sources","POST /finance/extract-segments":"Extract segment revenue data from PDF","GET /finance/company-data":"Get stored financial data from MongoDB"},"us_financial_data":{"POST /us/financial-data":"Get US company financial data from SEC EDGAR (input: company name)","GET /us/company/{company_name}":"Get stored US company data from MongoDB","GET /us/filing-urls/{company_name}":"Get SEC filing URLs (10-K, 10-Q)","GET /us/company-info/{company_name}":"Get US company information from SEC","GET /us/health":"Check SEC EDGAR service health"},"unified_api_v2":{"GET /v2/financial/project/{project_id}":"Get ALL companies' data for a project (primary endpoint)","GET /v2/financial/project/{project_id}/comparison":"Get comparison data for all project companies","GET /v2/financial/project/{project_id}/dashboard/{tab}":"Get dashboard with all competitors pre-loaded","GET /v2/financial/company/{company_name}":"Get unified financial data (single company)","GET /v2/financial/company/{company_name}/trend/{metric}":"Get trend analysis for a metric","POST /v2/financial/company/compare":"Compare company with competitors","GET /v2/financial/company/{company_name}/chart/{chart_id}":"Get single chart with config","GET /v2/financial/company/{company_name}/dashboard/{tab}":"Get all charts for a tab","GET /v2/financial/company/{company_name}/metric-cards":"Get KPI metric cards","POST /v2/financial/calculate":"Calculate metrics for raw data","GET /v2/financial/config/countries":"Get available countries","GET /v2/financial/config/{country_code}":"Get country configuration"},"market_data":{"POST /market-data/extract":"Extract market cap + LLM field extraction (Beta, Risk_Free_Rate, etc.)","GET /market-data/health":"Check market data service health"},"orchestration":{"POST /orchestration/analyze-company":"Complete end-to-end financial analysis workflow","GET /orchestration/health":"Check orchestration service health"}},"docs":"/docs","redoc":"/redoc"}