{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cloudmersive/json-schema/cloudmersive-advanced-email-detection-request-schema.json",
  "title": "AdvancedEmailDetectionRequest",
  "description": "Request to detect phishing from an email",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cloudmersive-phishingdetection-api-openapi.yml#/components/schemas/AdvancedEmailDetectionRequest",
  "type": "object",
  "properties": {
    "FromEmailAddress": {
      "description": "Email address of the sender",
      "type": "string"
    },
    "ToEmailAddress": {
      "description": "Email address of the recipient",
      "type": "string"
    },
    "Subject": {
      "description": "Subject of the email",
      "type": "string"
    },
    "HtmlBody": {
      "description": "Body of the email in HTML, or text",
      "type": "string"
    },
    "AllowLowReputationSenders": {
      "description": "Allow email from low reputation senders and domains",
      "type": "boolean"
    },
    "AllowSanctioned": {
      "description": "True to allow sanctioned countries and certain known sanctioned entities, false otherwise (default)",
      "type": "boolean"
    },
    "CustomPolicyID": {
      "description": "Apply a Custom Policy for Phishing Enforcement by providing the ID; to create a Custom Policy,\nnavigate to the Cloudmersive Management Portal and select Custom Policies.\nRequires Managed Instance or Private Cloud",
      "type": "string"
    },
    "InputEmailFile": {
      "format": "byte",
      "description": "Optional: Input email file bytes (EML, PDF, etc.).  If not provided, HtmlBody will be used instead.",
      "type": "string"
    }
  },
  "additionalProperties": false
}