Anti Spam
Decides if a comment is spam. The article context is optional, and if omitted the comment is evaluated for spam on its own, without context. The definition of spam is broad, from obvious commercial sales, through to probable malware (not checked, just signs of it in the comment, do not rely on this for security), through to SEO or link spam and much more.
First-pass screening: spam is decided by a fast first-pass screen alone; no comment gets a fuller assessment for spam. There are three outcomes. Spam (screen probability 0.85 or above): is_spam is true, confidence is the screen's probability, and reasoning is "Classified as spam by first-pass screening." Delete it. Suspected spam (0.50 up to 0.85): is_spam is false, suspected_spam is true, and suggestion holds a short message for the commenter. Send the comment back to its writer with the suggestion rather than deleting it: a real person can fix it, a spammer will not bother. Not spam (below 0.50): is_spam and suspected_spam are false, suggestion and reasoning are empty. If screening was unavailable the comment is answered as not spam with confidence 0 and reasoning "Not checked for spam: screening was unavailable.", and the check is not charged.
| Header Parameters |
|---|
X-User-Email email — REQUIREDAccount email address, for authentication |
X-API-Key string — REQUIREDAPI key owned by the user (email), for authentication |
| Request Body — REQUIRED |
|---|
comment string — REQUIREDThe comment text to be evaluated for spam. |
article_context_id uuidOptional. UUID to identify the article context. |
| Responses | ||||||
|---|---|---|---|---|---|---|
200Successful response - returns JSON result from spam evaluation.
| ||||||
400Bad Request - Missing or invalid parameters. | ||||||
401Unauthorized - Missing or incorrect authentication. |