Email safety infrastructure

Detect spam before it reaches the inbox.

A lightweight machine-learning API that classifies email text and returns both the model prediction and probability values in a compact JSON response.

spam_email_classifier
Request
GET /spam_email_classifier?email=Congratulations%2C%20you%20won...
Responseapplication/json
{
  "prediction": 1,
  "probabilities": [
    0.0418,
    0.9582
  ]
}

One endpoint

Send email text to a single GET route and receive a small, predictable JSON payload.

Probability output

Use the predicted class together with the probability values returned by the model.

Minimal integration

No SDK required. Any application that can make an HTTP request can integrate with SafeMail.

Built for simple integration

From email text to classification.

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.