Spam Check

Check if json is spam

post/spam/check

Request

  • Base URL: https://api.spamcheck.ai/api/v1
  • URL: https://api.spamcheck.ai/api/v1/spam/check
  • Auth: API key in header Api-Key

Request body

ipstring

IP address of the sender (must be a valid IPv4 or IPv6 address string)

emailstring

Email address to validate (must be a string)

email_validation_method'mx' | 'smtp'

The method to use for email validation. Defaults to 'mx'.

bodyobject required

The content to be checked for spam. Can contain any JSON object with form fields or message content.

contextstring

Business context for lead scoring. When provided along with score_threshold, enables lead scoring functionality.

score_thresholdinteger

Minimum score threshold for lead scoring (0-100). When provided along with context, enables lead scoring functionality.

Example request

{
  "ip": "192.168.1.1",
  "email": "user@example.com",
  "context": "We are a B2B SaaS company targeting enterprise customers with teams of 10+ developers",
  "score_threshold": 70
}

Response

The SpamCheckAI response is broken into the sections IP, email, and content. A spam score greater than 0.5 indicates spam. A true result for IP, email, risky_urls, or content spam should be considered spam.

idinteger required

The unique identifier of the spam check response

mark_as_incorrectstring uri required

URL to mark the log as incorrect

Changes

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