API Endpoints

Base URL: https://api.insightos.com

MethodPathDescription
POST/auth/loginAuthenticate and receive JWT token
POST/auth/registerCreate new account and workspace
GET/auth/meGet current user profile
GET/clientsList all clients in workspace
POST/clientsCreate a new client
GET/clients/:idGet client details
PATCH/clients/:idUpdate client
DELETE/clients/:idDelete client
GET/clients/:id/kpisGet daily KPI data
GET/clients/:id/kpis/summaryGet aggregated KPI summary with comparison
GET/clients/:id/kpis/exportExport KPI data as CSV
GET/clients/:id/reportsList client reports
POST/clients/:id/reports/weeklyGenerate weekly report
GET/clients/:id/alertsList alert rules for client
POST/clients/:id/alertsCreate alert rule
GET/clients/:id/goalsList KPI goals
POST/clients/:id/goalsCreate KPI goal
GET/clients/:id/insightsGet AI-powered insights
GET/clients/:id/benchmarksGet portfolio benchmarks
GET/clients/:id/recommendationsGet automated recommendations
GET/workspacesList workspaces
GET/workspaces/:id/membersList workspace members
GET/api-keysList API keys
POST/api-keysCreate API key
GET/webhooksList webhook endpoints
POST/webhooksCreate webhook endpoint
GET/usageGet workspace usage and limits
GET/healthHealth check (public)
GET/health/detailedDetailed health with DB/Redis status

Authentication

All endpoints except /auth/login, /auth/register, and /health require authentication via Bearer token or API key.

Authorization: Bearer <your-jwt-token>
X-API-Key: <your-api-key>

Need help? Contact support@insightos.com