One endpoint
Send email text to a single GET route and receive a small, predictable JSON payload.
A lightweight machine-learning API that classifies email text and returns both the model prediction and probability values in a compact JSON response.
{
"prediction": 1,
"probabilities": [
0.0418,
0.9582
]
}
Send email text to a single GET route and receive a small, predictable JSON payload.
Use the predicted class together with the probability values returned by the model.
No SDK required. Any application that can make an HTTP request can integrate with SafeMail.
The API transforms incoming text using the saved TF-IDF vectorizer, runs the trained logistic regression classifier, and returns the prediction together with predict_proba output.