# SpendWise > SpendWise is a modern, premium personal finance and budget manager designed for Indian users. It supports Rupee-native expense tracking, budgeting, category insights (categorizing expenses into Needs and Wants), AI forensic analysis, offline PWA capability, and shared group expense splitting. ## Key Features - **Rupee-First Expense Tracking**: Log daily expenses quickly with custom descriptions, categories (Needs vs. Wants), subcategories, and attachment uploads. - **Budgeting & Alerts**: Define monthly spend boundaries and receive intelligent alerts when threshold limits are breached. - **Bento Dashboard Analytics**: Clear interactive charts and breakdowns visualizing expense structures and cash flows. - **AI Forensic Analysis**: Automated reports analyzing your transactions to highlight saving zones and wasteful spending. - **Group Expense Splitting**: Set up groups, invite roommates/friends, log joint expenses, and calculate optimal settlement balances instantly. - **Progressive Web App (PWA)**: Works completely offline with automated local storage caching and server syncing when connectivity resumes. ## Public Pages Directory - [Home Page](https://thespendwise.vercel.app): Main landing page detailing the features and setup. - [Features Page](https://thespendwise.vercel.app/features): Detailed review of all app capabilities. - [How It Works](https://thespendwise.vercel.app/how-it-works): Tutorial on onboarding, budget setup, and PWA installation. - [FAQs Page](https://thespendwise.vercel.app/faq): Frequently asked questions on security, pricing, and exports. - [Contact Page](https://thespendwise.vercel.app/contact): Feedback submission and customer support. - [Status Page](https://thespendwise.vercel.app/status): Real-time application system status and health indicator. - [Privacy Policy](https://thespendwise.vercel.app/privacy): Details on data protection and user privacy rights. - [Terms of Service](https://thespendwise.vercel.app/terms): Usage terms and legal agreements. - [Sitemap](https://thespendwise.vercel.app/sitemap.xml): Search engine index file. ## Product Documentation & Guides - [Getting Started](https://thespendwise.vercel.app/docs/getting-started): Welcome to SpendWise! This guide will walk you through the essential steps to set up your account and start managing you... - [Category Insights](https://thespendwise.vercel.app/docs/category-insights): Overview SpendWise features a flexible category system designed to accommodate both standardized and personalized expe... - [AI Forensic Analysis](https://thespendwise.vercel.app/docs/ai-forensic-analysis): Overview Forensic Analysis is SpendWise's intelligent AIpowered feature that analyzes your complete financial history... - [Visual Reports](https://thespendwise.vercel.app/docs/visual-reports): What Are Visual Reports? Visual Reports turn your spending data into easytounderstand charts and graphs. Instead of lo... - [Managing Expenses](https://thespendwise.vercel.app/docs/managing-expenses): What Are Expenses? Expenses are money you spend on things. When you buy groceries, pay rent, or go to a movie, that's... - [Managing Income](https://thespendwise.vercel.app/docs/managing-income): What is Income? Income is money you earn. When you get paid from your job, freelance work, or any other source, that... - [System Settings ](https://thespendwise.vercel.app/docs/system-settings): What Are System Settings? System Settings is where you customize how SpendWise works for you. You can change your budg... - [Account & Security ](https://thespendwise.vercel.app/docs/account-security): What Is Account & Security? Account & Security is where you manage your SpendWise account information, enable extra se... - [Sage AI - The SpendWise chatbot](https://thespendwise.vercel.app/docs/sage-ai-the-spendwise-chatbot): Welcome to Sage AI, the intelligent assistant built into SpendWise. Sage AI helps you understand your finances, answer q... - [Sage AI Query Guide](https://thespendwise.vercel.app/docs/sage-ai-query-guide): Sage (formerly the SpendWise chatbot) is your personal financial assistant powered by the v3 engine. It understands natu... - [How to Make a Monthly Budget That Actually Fits Your Life](https://thespendwise.vercel.app/docs/monthly-budgeting-guide): A monthly budget is a plan that gives every rupee of your takehome pay a job before the month spends it for you. This gu... - [The 50/30/20 Rule Explained for Indian Salaries](https://thespendwise.vercel.app/docs/50-30-20-budgeting-guide): The 50/30/20 rule splits your aftertax income into three buckets — 50% needs, 30% wants, 20% savings — and gives salarie... - [How to Track Your Expenses (and Actually Keep the Habit)](https://thespendwise.vercel.app/docs/expense-tracking-guide): Expense tracking is the habit of recording what you spend and reviewing it regularly, so your budget is based on reality... ## Developer & API Integration Guide SpendWise exposes a RESTful API. All private routes require OAuth session authentication (NextAuth). ### Authentication - Authentication is handled via session cookies. - All non-public API calls must possess a valid authenticated session. - Client-provided `userId` fields are ignored; endpoints enforce scoping based on session-bound user IDs. ### Primary API Endpoints #### User Management - `GET /api/user/me`: Fetches authenticated user profile, limit settings, and currency. - `PATCH /api/user/settings`: Updates `expenseMode`, `monthlyLimit`, and currency details. #### Expenses API - `POST /api/expenses`: Logs a new expense (JSON body: `amount`, `categoryType`, `subcategory`, `title`, `note`, `expenseDate`). - `GET /api/expenses`: Returns paginated user expenses. Supports filters: `page`, `limit`, `categoryType`, `startDate`, `endDate`, `search`. - `GET /api/expenses/:id`: Fetches details of a single expense. - `PATCH /api/expenses/:id`: Updates details of an expense. - `DELETE /api/expenses/:id`: Deletes a logged expense. #### Categories API - `GET /api/categories`: Fetches available categories divided by Needs/Wants. - `POST /api/categories`: Adds a custom user category. #### Income API - `POST /api/income`: Adds an income transaction. - `GET /api/income`: Lists income history. #### Reports & Dashboard API - `GET /api/dashboard`: Returns key KPIs: current monthly spending, balance, and limits. - `GET /api/reports/monthly?month=YYYY-MM`: Provides structured monthly insights and category breakdowns. #### System Utilities - `GET /api/health`: Returns standard health state `{"status": "ok"}`.