Spam-Detection

Get the likelihood that a message is spam

Adds an item to the system

post/checkspamv2

Request

  • Base URL
    https://api.chainfuel.com/v1
  • Auth
    none declared

Request body

entity_countinteger required
entity_typesstring[]
message_bodystring required
message_countinteger required
message_typestring required
seconds_since_user_joinednumber required
sender_telegram_idinteger required

Example request

{
  "entity_count": 3,
  "message_body": "Join my telegram group @spamgroup",
  "message_count": 100,
  "message_type": "forwarded",
  "seconds_since_user_joined": 5.23,
  "sender_telegram_id": 12098109283
}

Response

Likelihood that the message is spam

spamscorenumber required

Example response

{
  "spamscore": 2.5
}

Changes

No recorded changes to this operation across all 1 revision of this API.