{"success":true,"message":"Sommos API is running","version":"1.0.0","environment":"production","timestamp":"2026-09-20T05:00:09.409Z","endpoints":{"auth":{"POST /api/auth/verify-token":"Verify Firebase ID token","GET /api/auth/me":"Get current user (Protected)","GET /api/auth/user/:uid":"Get user by UID (Protected)","POST /api/auth/user/:uid/claims":"Set user claims (Admin only)","POST /api/auth/user/:uid/revoke-tokens":"Revoke user tokens (Admin only)","PATCH /api/auth/user/:uid/status":"Update user status (Admin only)"},"private":{"GET /api/private/profile":"Get user profile (Protected)","GET /api/private/admin":"Get admin data (Admin only)","GET /api/private/user-data":"Get user data (Protected)","POST /api/private/resource":"Create resource (Protected)","PUT /api/private/resource/:id":"Update resource (Protected)"},"config":{"GET /api/config/app":"Get app configuration","GET /api/config/dashboard":"Get dashboard configuration","GET /api/config/features":"Get feature flags","GET /api/config/all":"Get all configurations","POST /api/config/recreate":"Recreate configurations (Dev only)"},"otp":{"POST /api/otp/send-code":"Send OTP code via email, WhatsApp, or SMS","POST /api/otp/verify-code":"Verify OTP code and return JWT token"},"user":{"GET /api/user/me":"Get current user information (JWT required)","PATCH /api/user/profile":"Update user profile (JWT required)","POST /api/user/refresh-token":"Refresh JWT token (JWT required)","GET /api/user/:id":"Get user by ID (Admin only)","PATCH /api/user/:id/status":"Update user status (Admin only)"},"saving-plan":{"GET /api/saving-plan":"Get all saving plans (Supervisor only)","GET /api/saving-plan/:id":"Get saving plan by ID (Supervisor only)","POST /api/saving-plan":"Create new saving plan (Supervisor only)","PUT /api/saving-plan/:id":"Update saving plan (Supervisor only)","DELETE /api/saving-plan/:id":"Delete saving plan and references (Supervisor only)"},"scheduler":{"GET /api/scheduler/status":"Get scheduler service status (Protected)","GET /api/scheduler/tasks":"Get all scheduled tasks (Protected)","GET /api/scheduler/tasks/:taskName/status":"Get specific task status (Protected)","POST /api/scheduler/tasks/:taskName/trigger":"Manually trigger a task (Protected)"},"commerces":{"POST /api/commerces":"Create new commerce with files (Admin only)","GET /api/commerces":"Get all commerces with optional filters (Public)","GET /api/commerces/:id":"Get commerce by ID (Public)","PUT /api/commerces/:id":"Update commerce with files (Admin only)","DELETE /api/commerces/:id":"Delete commerce (Admin only)","GET /api/commerces/:id/logo":"Download commerce logo (Public)","GET /api/commerces/:id/logo/view":"View commerce logo inline for <img> tags (Public)","GET /api/commerces/:id/catalogo":"Download commerce catalog (Public)","GET /api/commerces/:id/catalogo/view":"View commerce catalog inline in browser (Public)"},"leads":{"POST /api/leads":"Register a new lead from the public web form (static token required)","GET /api/leads":"Get all leads (SUPERVISOR only)","GET /api/leads/history":"Download all leads as CSV (SUPERVISOR only)"},"system":{"GET /health":"Health check endpoint"}}}