HRMS Mobile API — integration guide
This site documents every HRMS.WebAPI endpoint the HRMS employee mobile app integrates with: what to send, what comes back, which errors to expect, and the business rules around each call.
How this documentation is built
- Field names, types, routes, auth rules and error messages are generated from the C# source of
HRMS.WebAPI(branchfeature/mobile-changes), not typed by hand.npm run extractre-reads the code, so the reference stays exact when the API changes. - Example values are illustrations. The JSON shape and field names are exact; the values (Priya Sharma, ₹ 58,240, …) are sample data.
- The explanations, flows and rules on each page were written after reading the controllers, services and stored procedures behind each endpoint.
Where to start
- Getting started: base URLs, headers, your first call.
- Conventions: the response envelope, camelCase JSON, enums, dates, the shared filter object.
- Authentication and session: login, token lifetime, forced password change, biometric re-login.
- Errors: how to read failures and what to show users.
- The API by section menu, which follows the app's tabs:
| Section | What it covers | Plan ref |
|---|---|---|
| Account and session | Login, change/forgot password, switch company, thought of the day | 2.1 |
| Home | Today's status, month summary, announcements, holidays, birthdays | 2.2 |
| Attendance | Clock in/out, geofence data, punches, calendar, missed-punch requests | 2.3 |
| Leave and requests | Leave, work from home, leave balance, holiday list | 2.4 |
| Other applications | Overtime, clarification, fuel allowance, compensation, extra pay, resignation | 2.4 |
| Team approvals | Approver inbox, approve/reject, team today | 2.8 |
| Pay and documents | Salary overview, payslips, documents, tax investments | 2.5 |
| Profile | My details, photo, trainings, assets, family, organisation chart | 2.6 |
| Communication | Notifications inbox, instructions, helpdesk, reminders | 2.7 |
| Lookups and settings | Enum lists, leave types, locations, projects, tenant settings | — |
Before you integrate
Read Server rules (who may see, create and approve what) and Known API gaps (things the design needs that the API does not do yet). Plan screens around them.
Priorities
Each endpoint is tagged P1 (first store release), P2 (second release) or P3 (later), following Plan/Mobile-App-Plan.md section 2.