{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cloudmersive/json-schema/cloudmersive-phishing-detection-advanced-request-schema.json",
  "title": "PhishingDetectionAdvancedRequest",
  "description": "AI advanced phishing detection request",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cloudmersive-phishingdetection-api-openapi.yml#/components/schemas/PhishingDetectionAdvancedRequest",
  "type": "object",
  "properties": {
    "InputString": {
      "description": "Input text string to detect phishing against",
      "type": "string"
    },
    "TextType": {
      "description": "Optional: Type of text being analyzed. Must be one of: \"TextMessage\", \"UserMessage\", \"SalesLead\", \"EmailMessage\", \"SupportCase\", \"AppMessage\", \"Other\".",
      "type": "string"
    },
    "Model": {
      "description": "Optional: Specify which AI model to use.  Possible choices are Normal and Advanced.  Default is Advanced.",
      "type": "string"
    },
    "AllowUnsolicitedSales": {
      "description": "Optional: True if unsolicited sales should be allowed, false otherwise. Defaults to true.",
      "type": "boolean"
    },
    "AllowPromotionalContent": {
      "description": "Optional: True if promotional content should be allowed, false otherwise. Defaults to true.",
      "type": "boolean"
    },
    "AllowWebUrls": {
      "description": "Optional: True if web URLs should be allowed in the input text, false otherwise. Defaults to true. When false, input containing URLs (including homoglyph URLs and spaced-out URLs) will be flagged as not clean.",
      "type": "boolean"
    },
    "AllowPhoneNumbers": {
      "description": "Optional: True if phone numbers should be allowed in the input text, false otherwise. Defaults to true. When false, input containing phone numbers (including homoglyph digits and spaced-out or spelled-out workarounds) will be flagged as not clean.",
      "type": "boolean"
    },
    "AllowEmailAddresses": {
      "description": "Optional: True if email addresses should be allowed in the input text, false otherwise. Defaults to true. When false, input containing email addresses (including homoglyph characters and obfuscated workarounds like \"danny at somedomaine [DOT] com\") will be flagged as not clean.",
      "type": "boolean"
    },
    "ProvideUrlAnalysis": {
      "description": "Optional: True to perform deep URL analysis on any URLs detected in the text. When enabled, if the initial AI scan detects URLs, a second AI call enumerates them and each URL is individually analyzed for phishing. Defaults to true.",
      "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"
    },
    "ProvideAnalysisRationale": {
      "description": "Optional: Set to true to include an analysis rationale in the response explaining why the content was or was not flagged.  Default is true.",
      "type": "boolean"
    },
    "FromName": {
      "description": "Optional: Name of the sender",
      "type": "string"
    },
    "ToName": {
      "description": "Optional: Name of the recipient",
      "type": "string"
    },
    "FromPhoneNumber": {
      "description": "Optional: Phone number of the sender",
      "type": "string"
    },
    "ToPhoneNumber": {
      "description": "Optional: Phone number of the recipient",
      "type": "string"
    },
    "FromEmailAddress": {
      "description": "Optional: Email address of the sender",
      "type": "string"
    },
    "ToEmailAddress": {
      "description": "Optional: Email address of the recipient",
      "type": "string"
    }
  },
  "additionalProperties": false
}