The Organization Code is a required parameter that uniquely identifies your organization on the Nirvahak platform. It is typically entered during login or signup to load your organization’s settings.
Where to Enter the Organization Code
Users must enter the Organization Code on the login screen:
đź”— https://studio.nirvahak.com/login
This code is used to dynamically load branding, features, and configuration for the respective organization.
API Call to Fetch Organization Settings
When a user enters an organizationCode such as xyz. The frontend sends a request to fetch the organization’s specific settings. This is used to load branding, modules, and configurations before login.
API Request Format
GET https://server.nirvahak.com/studio/jsonp/getUserOrganizationSetting/studio?&organizationCode=xyz&callback=ng_jsonp_callback_0
API Parameter Breakdown
| Parameter | Type | Required | Description |
| /studio/jsonp/getUserOrganizationSetting/ | Path | Yes | Endpoint path used to access the organization settings API (includes route to method). |
| organizationCode=xyz | Query | Yes | The unique organization code provided by the user (e.g., abc, xyz) |
| callback=ng_jsonp_callback_0 | Query | Yes | JSONP callback function used in Angular for wrapping the JSON response |
Success Response (JSONP Format)
{
"status": "success",
"organizationName": "XYZ Corporation",
"branding": {
"logo": "https://xyz.nirvahak.com/assets/logo.png",
"themeColor": "#0A2345"
},
"modulesEnabled": ["appointments", "orders", "referrals"]
}
Error Response
{
"status": "error",
"message": "Invalid organization code"
}