{"activeVersionTag":"latest","latestAvailableVersionTag":"latest","collection":{"info":{"_postman_id":"eaca26c0-1192-42db-87da-dcbf5cf4052d","name":"IdeaForge MERN SaaS API","description":"# IdeaForge MERN SaaS API\n\n**IdeaForge** is a full-stack MERN SaaS productivity platform that helps teams manage projects, tasks, meetings, notifications, and analytics — all in one place. The backend is built with **Node.js**, **Express.js**, **MongoDB/Mongoose**, **JWT cookie-based authentication**, and supports **Google OAuth** for third-party sign-in and productivity integrations (Gmail, Google Calendar).\n\n---\n\n## Base URL\n\n| Environment | URL |\n|---|---|\n| Production | `https://crmideaforge.onrender.com` |\n\nAll endpoints are prefixed with `/api`. Set the `baseUrl` collection variable to `https://crmideaforge.onrender.com` before running requests.\n\n---\n\n## Authentication\n\nIdeaForge uses **HTTP-only JWT cookies** for session management.\n\n- **Register** (`POST /api/users`) or **Login** (`POST /api/users/login`) sets a cookie named `jwt` automatically in your browser or Postman cookie jar.\n- All **protected routes** require this cookie to be present. Postman sends it automatically once set.\n- **In Postman:** Run **Register User** or **Login User** first. The `jwt` cookie will be stored and sent with all subsequent requests automatically.\n- To end a session, call **Logout User** (`POST /api/users/logout`), which clears the cookie.\n\n> **Note:** Google Gmail and Google Calendar routes additionally require the user to have completed **Google OAuth sign-in** via `GET /api/auth/google` before use.\n\n---\n\n## Collection Variables\n\nThe following variables are defined at the collection level. Copy IDs from create/list responses and paste them into your Postman environment or collection variables:\n\n| Variable | Description |\n|---|---|\n| `baseUrl` | Base URL of the API (e.g. `https://crmideaforge.onrender.com`) |\n| `projectId` | ID of a project — copy from Create Project or List Projects response |\n| `taskId` | ID of a task — copy from Create Task or List Tasks response |\n| `teamId` | ID of a team — copy from Create Team or List My Teams response |\n| `meetingId` | ID of a meeting — copy from Create Meeting or List Meetings response |\n| `notificationId` | ID of a notification — copy from List Notifications response |\n| `memberUserId` | User ID of a team member — copy from team member list response |\n\n---\n\n## Recommended Testing Order\n\nFollow this sequence for a smooth end-to-end test run:\n\n1. **Health Check** — Verify the API is live\n2. **Register User** or **Login User** — Establish your session (sets `jwt` cookie)\n3. **Create Project** — Save the returned `_id` as `projectId`\n4. **Create Task** — Save the returned `_id` as `taskId`\n5. **Create Meeting** — Save the returned `_id` as `meetingId`\n6. **Create Team** — Save the returned `_id` as `teamId`\n7. **Dashboard Stats / Reports** — View aggregated analytics\n8. **Global Search** — Test cross-entity search\n9. **Notifications** — List and mark notifications as read\n10. **Google OAuth** *(optional)* — Sign in with Google, then test Gmail and Calendar routes\n\n---\n\n## Feature Groups\n\nThis collection is organized into 11 folders:\n\n| Folder | Description |\n|---|---|\n| **Health** | API liveness check |\n| **Authentication** | Register, login, profile, logout |\n| **Google OAuth** | Google sign-in and OAuth debug |\n| **Projects** | Full CRUD for projects |\n| **Tasks** | Full CRUD for tasks with filters |\n| **Meetings** | Full CRUD for meetings |\n| **Teams** | Team management and member roles |\n| **Dashboard & Reports** | Aggregated stats and report data |\n| **Notifications** | List and mark notifications |\n| **Search** | Global cross-entity search |\n| **Google Productivity** | Gmail and Google Calendar integration |\n\n---\n\n## Evaluation Notes\n\nThis API collection demonstrates the following capabilities:\n\n- **CRUD Operations** — Full create, read, update, and delete across Projects, Tasks, Meetings, and Teams\n- **Authentication** — Secure HTTP-only JWT cookie-based login and registration\n- **Protected Routes** — All core endpoints require an active session cookie\n- **MongoDB Relationships** — Tasks reference Projects and Teams; Meetings reference Teams; Notifications reference Users\n- **Team Role Access Control** — Member roles can be updated per team, enabling role-aware collaboration\n- **Third-Party OAuth Integration** — Google OAuth 2.0 for sign-in, Gmail access, and Google Calendar integration\n- **Deployment Readiness** — Hosted on Render at `https://crmideaforge.onrender.com` with a production-ready configuration\n\n> This collection is structured for evaluator review. Each folder groups related endpoints logically, and every request includes descriptive documentation, example payloads, and expected responses.","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","isPublicCollection":false,"owner":"50839203","team":12206622,"collectionId":"eaca26c0-1192-42db-87da-dcbf5cf4052d","publishedId":"2sBXqKoKkY","public":true,"publicUrl":"https://documenter-api.postman.tech/view/50839203/2sBXqKoKkY","privateUrl":"https://go.postman.co/documentation/50839203-eaca26c0-1192-42db-87da-dcbf5cf4052d","customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"documentationLayout":"classic-double-column","customisation":{"metaTags":[{"name":"description","value":"Complete REST API documentation for IdeaForge, a full-stack MERN SaaS productivity and CRM-style workspace.\n\nIdeaForge provides APIs for user authentication, Google OAuth, projects, tasks, teams, meetings, notifications, dashboard analytics, reports, global search, Gmail integration, and Google Calendar integration.\n\nT"},{"name":"title","value":"IdeaForge MERN SaaS API Documentation"}],"appearance":{"default":"light","themes":[{"name":"dark","logo":null,"colors":{"top-bar":"212121","right-sidebar":"303030","highlight":"FF6C37"}},{"name":"light","logo":null,"colors":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"}}]}},"version":"8.10.1","publishDate":"2026-05-02T05:14:41.000Z","activeVersionTag":"latest","documentationTheme":"light","metaTags":{"title":"IdeaForge MERN SaaS API Documentation","description":"Complete REST API documentation for IdeaForge, a full-stack MERN SaaS productivity and CRM-style workspace.\n\nIdeaForge provides APIs for user authentication, Google OAuth, projects, tasks, teams, meetings, notifications, dashboard analytics, reports, global search, Gmail integration, and Google Calendar integration.\n\nT"},"logos":{"logoLight":null,"logoDark":null}},"statusCode":200},"environments":[],"user":{"authenticated":false,"permissions":{"publish":false}},"run":{"button":{"js":"https://run.pstmn.io/button.js","css":"https://run.pstmn.io/button.css"}},"web":"https://www.getpostman.com/","team":{"logo":"https://res.cloudinary.com/postman/image/upload/t_team_logo_pubdoc/v1/team/87278512029117939852a822531965e7572d952a7d8728d65284d1307b3e3830","favicon":""},"isEnvFetchError":false,"languages":"[{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"HttpClient\"},{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"RestSharp\"},{\"key\":\"curl\",\"label\":\"cURL\",\"variant\":\"cURL\"},{\"key\":\"dart\",\"label\":\"Dart\",\"variant\":\"http\"},{\"key\":\"go\",\"label\":\"Go\",\"variant\":\"Native\"},{\"key\":\"http\",\"label\":\"HTTP\",\"variant\":\"HTTP\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"OkHttp\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"Unirest\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"Fetch\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"jQuery\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"XHR\"},{\"key\":\"c\",\"label\":\"C\",\"variant\":\"libcurl\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Axios\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Native\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Request\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Unirest\"},{\"key\":\"objective-c\",\"label\":\"Objective-C\",\"variant\":\"NSURLSession\"},{\"key\":\"ocaml\",\"label\":\"OCaml\",\"variant\":\"Cohttp\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"cURL\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"Guzzle\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"HTTP_Request2\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"pecl_http\"},{\"key\":\"powershell\",\"label\":\"PowerShell\",\"variant\":\"RestMethod\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"http.client\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"Requests\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"httr\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"RCurl\"},{\"key\":\"ruby\",\"label\":\"Ruby\",\"variant\":\"Net::HTTP\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"Httpie\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"wget\"},{\"key\":\"swift\",\"label\":\"Swift\",\"variant\":\"URLSession\"}]","languageSettings":[{"key":"csharp","label":"C#","variant":"HttpClient"},{"key":"csharp","label":"C#","variant":"RestSharp"},{"key":"curl","label":"cURL","variant":"cURL"},{"key":"dart","label":"Dart","variant":"http"},{"key":"go","label":"Go","variant":"Native"},{"key":"http","label":"HTTP","variant":"HTTP"},{"key":"java","label":"Java","variant":"OkHttp"},{"key":"java","label":"Java","variant":"Unirest"},{"key":"javascript","label":"JavaScript","variant":"Fetch"},{"key":"javascript","label":"JavaScript","variant":"jQuery"},{"key":"javascript","label":"JavaScript","variant":"XHR"},{"key":"c","label":"C","variant":"libcurl"},{"key":"nodejs","label":"NodeJs","variant":"Axios"},{"key":"nodejs","label":"NodeJs","variant":"Native"},{"key":"nodejs","label":"NodeJs","variant":"Request"},{"key":"nodejs","label":"NodeJs","variant":"Unirest"},{"key":"objective-c","label":"Objective-C","variant":"NSURLSession"},{"key":"ocaml","label":"OCaml","variant":"Cohttp"},{"key":"php","label":"PHP","variant":"cURL"},{"key":"php","label":"PHP","variant":"Guzzle"},{"key":"php","label":"PHP","variant":"HTTP_Request2"},{"key":"php","label":"PHP","variant":"pecl_http"},{"key":"powershell","label":"PowerShell","variant":"RestMethod"},{"key":"python","label":"Python","variant":"http.client"},{"key":"python","label":"Python","variant":"Requests"},{"key":"r","label":"R","variant":"httr"},{"key":"r","label":"R","variant":"RCurl"},{"key":"ruby","label":"Ruby","variant":"Net::HTTP"},{"key":"shell","label":"Shell","variant":"Httpie"},{"key":"shell","label":"Shell","variant":"wget"},{"key":"swift","label":"Swift","variant":"URLSession"}],"languageOptions":[{"label":"C# - HttpClient","value":"csharp - HttpClient - C#"},{"label":"C# - RestSharp","value":"csharp - RestSharp - C#"},{"label":"cURL - cURL","value":"curl - cURL - cURL"},{"label":"Dart - http","value":"dart - http - Dart"},{"label":"Go - Native","value":"go - Native - Go"},{"label":"HTTP - HTTP","value":"http - HTTP - HTTP"},{"label":"Java - OkHttp","value":"java - OkHttp - Java"},{"label":"Java - Unirest","value":"java - Unirest - Java"},{"label":"JavaScript - Fetch","value":"javascript - Fetch - JavaScript"},{"label":"JavaScript - jQuery","value":"javascript - jQuery - JavaScript"},{"label":"JavaScript - XHR","value":"javascript - XHR - JavaScript"},{"label":"C - libcurl","value":"c - libcurl - C"},{"label":"NodeJs - Axios","value":"nodejs - Axios - NodeJs"},{"label":"NodeJs - Native","value":"nodejs - Native - NodeJs"},{"label":"NodeJs - Request","value":"nodejs - Request - NodeJs"},{"label":"NodeJs - Unirest","value":"nodejs - Unirest - NodeJs"},{"label":"Objective-C - NSURLSession","value":"objective-c - NSURLSession - Objective-C"},{"label":"OCaml - Cohttp","value":"ocaml - Cohttp - OCaml"},{"label":"PHP - cURL","value":"php - cURL - PHP"},{"label":"PHP - Guzzle","value":"php - Guzzle - PHP"},{"label":"PHP - HTTP_Request2","value":"php - HTTP_Request2 - PHP"},{"label":"PHP - pecl_http","value":"php - pecl_http - PHP"},{"label":"PowerShell - RestMethod","value":"powershell - RestMethod - PowerShell"},{"label":"Python - http.client","value":"python - http.client - Python"},{"label":"Python - Requests","value":"python - Requests - Python"},{"label":"R - httr","value":"r - httr - R"},{"label":"R - RCurl","value":"r - RCurl - R"},{"label":"Ruby - Net::HTTP","value":"ruby - Net::HTTP - Ruby"},{"label":"Shell - Httpie","value":"shell - Httpie - Shell"},{"label":"Shell - wget","value":"shell - wget - Shell"},{"label":"Swift - URLSession","value":"swift - URLSession - Swift"}],"layoutOptions":[{"value":"classic-single-column","label":"Single Column"},{"value":"classic-double-column","label":"Double Column"}],"versionOptions":[],"environmentOptions":[{"value":"0","label":"No Environment"}],"canonicalUrl":"https://documenter.gw.postman.com/view/metadata/2sBXqKoKkY"}