CHRYSOLYTE FIRMCONTROL

API Gateway — All services accessible from one place

How to authenticate

  1. Open Auth Service → POST /login
  2. Enter director credentials and execute
  3. Copy the access_token from the response
  4. Open any service docs below → click Authorize → paste the token
  5. All protected endpoints are now unlocked

Services

Auth

Auth Service

Login, logout, refresh, user management. 8 roles: director, accountant, design, office, supervisor, projectmanager, consultant, client.

/api/auth/docs — :4001
Audit

Audit Service

Immutable event log. POST via X-Service-Key (internal only). GET requires director JWT. No update or delete — ever.

/api/audit/docs — :4002
Core

Projects Service

Projects, milestones, activities, weighted progress, site reports, consultant instructions, procurement, stores, drawings, RFIs, safety, quality.

/api/projects/docs — :8000
HR

People Service

Staff profiles, project assignments, attendance (Saturday blocked), 9-metric KPI scores, wages, leave requests, welfare issuances.

/api/people/docs — :8001
Core

Notifications Service

Email notifications — 11 templates: report alerts, instruction overdue, stock low, milestone late, wage due, payment overdue, safety incidents.

/api/notifications/docs — :8002
Finance

Finance Service

Transactions, budgets, invoices. Director + accountant access only. Dashboard: contract value, collections, costs, margins.

/api/finance/docs — :8003
CTRL

FIRMCONTROL Service

CEO dashboard, board analysis, announcements (public), client portal, background jobs: instruction overdue, milestone late, stock low, wages due.

/api/firmcontrol/docs — :8006