Problem
The spam detection system currently only works through its own UI, so other applications, bots, or services can't programmatically use the classifier.
Proposed Solution
Expose a REST API endpoint (e.g., POST /classify) that accepts a message string and returns the classification (Spam / Smishing / Offensive / Ham) along with a confidence score. Include API key-based authentication and basic rate limiting so it can be safely used by external developers.
Acceptance Criteria
Problem
The spam detection system currently only works through its own UI, so other applications, bots, or services can't programmatically use the classifier.
Proposed Solution
Expose a REST API endpoint (e.g.,
POST /classify) that accepts a message string and returns the classification (Spam / Smishing / Offensive / Ham) along with a confidence score. Include API key-based authentication and basic rate limiting so it can be safely used by external developers.Acceptance Criteria
/classifyendpoint accepts text input and returns label + confidence score