{"message":"SKU Matching Workflow API v2.0 with SMTP Configuration","version":"2.0.0","features":["Email processing with AI matching","Conversation context tracking","Clarification handling","Quote generation","Inventory management","SMTP configuration management","Email polling and monitoring","Automated email processing","User authentication with JWT tokens","Role-based access control"],"endpoints":{"email_processing":["/process-email (basic)","/process-email-with-context (enhanced)","/add-clarification-answers","/generate-final-quote"],"conversation_management":["/conversations","/conversations/{id}"],"inventory_management":["/inventory","/add-inventory","/search","/upload-eie-csv","/export-inventory"],"smtp_configuration":["/smtp-configs (POST/GET)","/smtp-configs/{tenant_id} (GET/PUT/DELETE)","/smtp-configs/test-connection","/polling-configs (POST/GET)","/polling-configs/test-connection"],"email_service":["/email-service/start","/email-service/stop","/email-service/status"],"authentication":["/organisations (POST) - Create organisation and first admin user (public)","/auth/register (POST) - Public registration (user role only)","/auth/login (POST) - Login with email/password","/auth/facebook/callback (GET) - Meta Facebook Login for Business OAuth callback (see meta_facebook module)","/auth/facebook/whatsapp/phone (PUT) - WhatsApp onboarding phone (E.164) storage before Embedded Signup registration","/auth/facebook/whatsapp/register (POST) - WhatsApp Tech Program: register sender, create subaccount if needed","/auth/facebook/whatsapp/senders (POST/GET) - Add sender or list senders","/auth/facebook/whatsapp/senders/{sid}/status (GET) - Sender status","/auth/facebook/whatsapp/templates (POST/GET) - Save/list template Content SIDs for tenant","/auth/facebook/whatsapp/messages/send (POST) - Send WhatsApp text (Twilio)","/auth/facebook/whatsapp/messages (GET) - List messages for a peer (query: peer)","/auth/facebook/whatsapp/conversations (GET) - Conversation summaries from stored messages","/auth/facebook/whatsapp/webhooks/inbound|status (POST) - Twilio webhooks (persist / update status)","/auth/refresh (POST) - Refresh access token using refresh token","/auth/logout (POST) - Logout and revoke refresh token","/auth/logout-all (POST) - Logout from all devices","/auth/me (GET/PATCH) - Get/update current user profile","/auth/users (GET) - Manager/Admin only"],"authentication_admin":["/auth/admin/create-user (POST) - Admin only","/auth/admin/users/{id}/role (PUT) - Admin only","/auth/admin/users/{id} (DELETE) - Admin only"],"system":["/stats","/update-confidence-thresholds"]},"docs":"/docs"}