Skip to main content
The Users & System API handles core platform operations, including real-time field executive GPS updates, mobile push notification tokens, role catalogs, project assignments, and manager-subordinate hierarchies.

Endpoints Summary


Mobile GPS Location Tracking

The BrokerOS mobile app runs an Android background task (location-tracking.ts) while sales executives and sourcing managers are on shift. Every 5 to 15 minutes, it posts updated coordinates.

Request Body

Request Example

Response Example


Register Push Notification Token

Called immediately after mobile login to bind the device’s Expo / Firebase Cloud Messaging (FCM) token to the user record for dispatching lead assignments and approval alerts.

Request Body


Get Subordinates (Team Hierarchy)

Returns all active staff reporting directly to the authenticated manager (where: { managerId: userId, status: 'ACTIVE' }). Used by Pre-Sales Managers and Sales Managers to view executive workloads and assign daily call targets.

Response Example


Get My Assigned Projects

Returns all projects mapped to the authenticated user via the ProjectAssignment table. This drives project dropdowns in the mobile app and web navigation.

Response Example


System Catalogs

List Roles

List Lead Sources