{"service":"AIFieldSupport API","version":"2.4.6","description":"Multi-tenant AI Field Support API with subscription management","features":["Multi-tenant data isolation","JWT authentication with tenant access lists","Smart tenant routing based on categories","Stripe subscription integration","Backward compatibility with legacy clients"],"endpoints":{"Authentication":["GET /auth/login - Azure B2C new user signup/login","GET /auth/enterprise/login - Enterprise SSO for existing organizations","GET /auth/me - Get current user info (requires JWT)","POST /auth/logout - Logout user session"],"AI Analysis":["POST /analyze - Analyze repair with AI","POST /analyze/compare - Compare multiple AI models","POST /analyze/smart - Settings-aware analysis","POST /analyze/details - Get additional repair details"],"Tenant Management":["GET /tenants - Get accessible tenants with subscription data","GET /sync/tenants - Get tenant sync status"],"Data Management":["GET /repairs - Get repairs (multi-tenant filtered)","POST /repairs - Create repair with smart tenant routing","PUT /repairs/:id/tenant - Move repair between tenants"],"Categories & Routing":["GET /categories - Get category routing rules","GET /categories/:category/tenants - Get available tenants for category"],"Sync":["POST /sync/exchange - Two-way sync (multi-tenant + legacy support)"],"Webhooks":["POST /webhooks/stripe - Stripe subscription lifecycle events"],"System":["GET /health - Health check","GET /hello - Hello world","GET /hello-claude - Claude AI greeting"]},"authentication":{"JWT Bearer Token":"Required for most endpoints","Multi-tenant support":"JWT contains tenantIds array and currentTenantId","Tenant switching":"Use x-tenant-id header or switch endpoints","Legacy compatibility":"Basic auth still supported for sync"}}