Skip to main content

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.

Header Parameters
X-User-Email email REQUIRED

Account email address, for authentication

X-API-Key string REQUIRED

API key owned by the user (email), for authentication

Request Body REQUIRED
comment string REQUIRED

The comment text to be evaluated for spam.

article_context_id uuid

Optional. UUID to identify the article context.

Responses
200

Successful response - returns JSON result from spam evaluation.

Schema OPTIONAL
reasoning string

Short explanation of why the comment was or was not considered spam.

confidence number

Confidence score (0-1) for the spam evaluation.

is_spam boolean

True if the comment is probably spam; false otherwise.

400

Bad Request - Missing or invalid parameters.

401

Unauthorized - Missing or incorrect authentication.