{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cloudmersive/json-schema/cloudmersive-spam-detection-advanced-request-schema.json",
  "title": "SpamDetectionAdvancedRequest",
  "description": "AI advanced spam detection request",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cloudmersive-spamdetection-api-openapi.yml#/components/schemas/SpamDetectionAdvancedRequest",
  "type": "object",
  "properties": {
    "InputString": {
      "description": "Input text string to detect spam against",
      "type": "string"
    },
    "Model": {
      "description": "Optional: Specify which AI model to use.  Possible choices are Normal and Advanced.  Default is Advanced.",
      "type": "string"
    },
    "AllowUnsolicitedSales": {
      "description": "True if unsolicited sales should be allowed, false otherwise",
      "type": "boolean"
    },
    "AllowPromotionalContent": {
      "description": "True if promotional content should be allowed, false otherwise",
      "type": "boolean"
    },
    "AllowPhishing": {
      "description": "True if phishing should be allowed, false otherwise",
      "type": "boolean"
    },
    "CustomPolicyID": {
      "description": "Apply a Custom Policy for Spam Enforcement by providing the ID; to create a Custom Policy, navigate to the Cloudmersive Management Portal and select Custom Policies.  Requires Managed Instance or Private Cloud",
      "type": "string"
    }
  },
  "additionalProperties": false
}