Spam Detector

Spam filtration test with a percentage confidence score along with an explanation.

This API is ideal for developers working on content moderation tools, email filtering, and social media platforms. It automates the spam detection process, helping to maintain the quality and integrity of user-generated content. Use cases include moderating forum posts, filtering spam emails, and analyzing user comments for spammy content.

AI jobs involve two key steps:

  1. Submitting the AI job: Initiating the process by sending the job request.
  2. Monitoring and receiving results: Continuously checking the job status and obtaining the final output upon successful completion.


SharpAPI SOC 2 Type II

SharpAPI is now SOC 2 Type II compliant. You can check details at our Trust Center Portal.

Your data is your data. Learn how we protect it and comply with global privacy standards in our Data Handling and Compliance policy .

Step 1. Submit the AI Job request

Endpoint: POST - /api/v1/content/detect_spam

Attribute Type Mandatory Description
content String Yes Provide the content to check whether it is spam.

RESPONSE EXAMPLE:

{
  "status_url": "https://sharpapi.com/api/v1/content/translate/job/status/5de4887a-0dfd-49b6-8edb-9280e468c210",
  "job_id": "5de4887a-0dfd-49b6-8edb-9280e468c210"
}

Step 2. Monitor & Fetch AI Job Results

Endpoint: GET - /api/v1/content/detect_phones/job/status/:uuid

An endpoint is used to check on the progress of the requested API job.

RESULT EXAMPLE:

{
  "data": {
    "type": "api_job_result",
    "id": "f7d3eec2-7ba6-4104-9f30-ff418428de2c",
    "attributes": {
      "status": "success",
      "type": "content_detect_spam",
      "result": {
        "pass": false,
        "score": 85,
        "reason": "The message appears to be a solicitation for financial services, which is a common characteristic of spam."
      }
    }
  }
}