{"title":"BrainSAIT Healthcare Platform API","version":"2.0.0","description":"Comprehensive healthcare management API with AI agent integration","baseUrl":"https://brainsait-masterlinc.fadil.workers.dev","endpoints":{"authentication":{"POST /api/auth/login":"User authentication","POST /api/auth/register":"User registration","POST /api/auth/logout":"User logout","GET /api/auth/profile":"Get user profile","PUT /api/auth/profile":"Update user profile"},"agents":{"GET /api/agents":"List available AI agents","POST /api/agents/{agent}/chat":"Chat with specific agent","GET /api/agents/{agent}/status":"Get agent health status","POST /api/agents/orchestrate":"Orchestrate multi-agent workflow"},"claims":{"POST /api/claims/submit":"Submit insurance claim","GET /api/claims/{id}":"Get claim details","PUT /api/claims/{id}":"Update claim","GET /api/claims":"List user claims","POST /api/claims/{id}/documents":"Upload claim documents"},"authorization":{"POST /api/auth/eligibility":"Check patient eligibility","POST /api/auth/prior-auth":"Submit prior authorization","GET /api/auth/prior-auth/{id}":"Get authorization status","POST /api/auth/requirements":"Check authorization requirements"},"patients":{"POST /api/patients":"Create patient record","GET /api/patients/{id}":"Get patient details","PUT /api/patients/{id}":"Update patient record","GET /api/patients":"List patients","POST /api/patients/{id}/observations":"Add patient observation"},"payments":{"GET /api/payments/plans":"List subscription plans","POST /api/payments/subscribe":"Create subscription","GET /api/payments/subscription":"Get current subscription","POST /api/payments/cancel":"Cancel subscription"},"dashboard":{"GET /api/dashboard/metrics":"Get dashboard metrics","GET /api/dashboard/insights":"Get AI-powered insights","GET /api/dashboard/notifications":"Get user notifications"},"chat":{"POST /api/chat/rooms":"Create chat room","GET /api/chat/rooms":"List chat rooms","GET /api/chat/rooms/{id}":"Get room details","GET /api/chat/rooms/{id}/messages":"Get room messages","POST /api/chat/rooms/{id}/messages":"Send message","POST /api/chat/rooms/{id}/join":"Join room","GET /api/chat/connect/{roomId}":"Get WebSocket connection info"},"appointments":{"POST /api/appointments":"Schedule appointment","GET /api/appointments":"List appointments","GET /api/appointments/{id}":"Get appointment details","PUT /api/appointments/{id}":"Update appointment","PUT /api/appointments/{id}/status":"Update appointment status","GET /api/appointments/providers/{id}/availability":"Check provider availability"},"telehealth":{"POST /api/telehealth/sessions":"Start telehealth session","POST /api/telehealth/sessions/{id}/join":"Join telehealth session","POST /api/telehealth/sessions/{id}/leave":"Leave telehealth session","GET /api/telehealth/sessions/{id}":"Get session details","PUT /api/telehealth/sessions/{id}/settings":"Update session settings","GET /api/telehealth/signaling/{id}":"WebRTC signaling (WebSocket)"},"notifications":{"GET /api/notifications":"Get user notifications","POST /api/notifications":"Create notification","PUT /api/notifications/{id}/read":"Mark notification as read","PUT /api/notifications/read-all":"Mark all notifications as read","PUT /api/notifications/{id}/archive":"Archive notification","DELETE /api/notifications/{id}":"Delete notification","GET /api/notifications/settings":"Get notification preferences","PUT /api/notifications/settings":"Update notification preferences"},"demo":{"GET /api/demo/scenarios":"List available demo scenarios","POST /api/demo/sessions":"Start demo session for healthcare provider","GET /api/demo/sessions/{id}":"Get demo session status","POST /api/demo/sessions/{id}/execute/{scenarioId}/{stepId}":"Execute demo step","GET /api/demo/sessions/{id}/report":"Generate demo report"}},"authentication":{"type":"Bearer Token","description":"Include JWT token in Authorization header: Bearer <token>"},"examples":{"login":{"method":"POST","url":"/api/auth/login","body":{"email":"user@example.com","password":"password123"}},"chat":{"method":"POST","url":"/api/agents/healthlinc/chat","headers":{"Authorization":"Bearer <token>","X-Language":"en"},"body":{"message":"What are the latest vital signs for patient 123?","patientId":"123"}}}}