🛡️ Kotwal API Tester

Onboard New Tenant

POST /api/tenants

List All Tenants

GET /api/tenants

Edit Tenant

PUT /api/tenants/:id

Create AI Model

POST /api/ai-models

List AI Models

GET /api/ai-models

Edit AI Model

PUT /api/ai-models/:id

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