Spam47 is a service that allows you to check if a given message is spam or not (ham), and train the service with new data.
GET /livez
Returns the status of the service.
POST /check
Checks if a given message is spam or not.
Request body:
{
"message": "Hello world",
"lang": "en"
}
Response:
{
"status": "spam",
"score": 0.9995
}
POST /train
Trains the service with a new message.
Request body:
{
"message": "Hello world",
"type": "ham",
"lang": "en"
}