Create Chat Model (Assign AI Model to Tenant)
POST /api/chat-models/public
List Chat Models
GET /api/chat-models/public
Edit Chat Model
PUT /api/chat-models/public/:id
Login
POST /api/auth/login
Register User (Protected - Admin Only)
POST /api/auth/register
Change Password (Protected)
POST /api/auth/change-password
Get Current User Info (Protected)
GET /api/auth/me
Refresh Token (Protected)
POST /api/auth/refresh
Detect PII (Protected)
POST /api/pii/detect/{high|medium|low}
Send Chat Message (Protected)
POST /api/chat
Get Chat Sessions (Protected)
GET /api/chat/sessions
Get Session Messages (Protected)
GET /api/chat/sessions/:sessionId
Get Billing Summary (Protected)
GET /api/billing
Aggregate Billing (Admin Only)
POST /api/billing/aggregate
Aggregate Monthly Billing (Admin Only)
POST /api/billing/aggregate/monthly
Dashboard Summary (Protected)
GET /api/dashboard/summary
User List (Protected)
GET /api/dashboard/users
Delete User (Protected - Admin Only)
DELETE /api/dashboard/users/:email
Alerts (Protected)
GET /api/dashboard/alerts
License & Users Info (Admin Only)
GET /api/auth/admin/license
Admin: Change User Password (Admin Only)
POST /api/auth/admin/change-password