Cloudmersive Spam Detection API

Spam Detection operations of the Cloudmersive Spam Detection API — 5 operation(s) served from https://api.cloudmersive.com and authenticated with the Apikey header. One Cloudmersive API key grants access to every API in the portfolio.

Operations 5

POST /spam/detect/text-string Perform AI spam detection and classification against input text string #
POST /spam/detect/text-string/advanced Perform advanced AI spam detection and classification against input text string #
POST /spam/detect/form-submission/advanced Perform advanced AI spam detection and classification against a form submission #
POST /spam/detect/file Perform AI spam detection and classification on an input image or document #
POST /spam/detect/file/advanced Perform advanced AI spam detection and classification against input file #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/cloudmersive:cloudmersive-spamdetection-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

cloudmersive-spamdetection-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: spamapi Spam Detection API
  description: Easily and directly scan and block spam security threats in input.
  version: v1
servers:
- url: https://node24.cloudmersive.com
security:
- Apikey: []
tags:
- name: SpamDetection
paths:
  /spam/detect/text-string:
    post:
      tags:
      - SpamDetection
      summary: Perform AI spam detection and classification against input text string
      description: Analyzes input content as well as embedded URLs with AI deep learnign to detect spam, phishing and other unsafe content. Uses 25-75 API calls depending on model selected.
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/SpamDetectionResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/SpamDetectionResponse'
            text/json:
              schema:
                $ref: '#/components/schemas/SpamDetectionResponse'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SpamDetectionRequest'
          text/json:
            schema:
              $ref: '#/components/schemas/SpamDetectionRequest'
          application/*+json:
            schema:
              $ref: '#/components/schemas/SpamDetectionRequest'
        description: Spam detection request
      operationId: postSpamDetectTextString
      x-operation-id-source: derived
  /spam/detect/text-string/advanced:
    post:
      tags:
      - SpamDetection
      summary: Perform advanced AI spam detection and classification against input text string
      description: Analyzes input content as well as embedded URLs with AI deep learnign to detect spam, phishing and other unsafe content. Uses 25-100 API calls depending on model selected.
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/SpamDetectionAdvancedResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/SpamDetectionAdvancedResponse'
            text/json:
              schema:
                $ref: '#/components/schemas/SpamDetectionAdvancedResponse'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SpamDetectionAdvancedRequest'
          text/json:
            schema:
              $ref: '#/components/schemas/SpamDetectionAdvancedRequest'
          application/*+json:
            schema:
              $ref: '#/components/schemas/SpamDetectionAdvancedRequest'
        description: Spam detection request
      operationId: postSpamDetectTextStringAdvanced
      x-operation-id-source: derived
  /spam/detect/form-submission/advanced:
    post:
      tags:
      - SpamDetection
      summary: Perform advanced AI spam detection and classification against a form submission
      description: Analyzes form input content as well as embedded URLs with AI deep learnign to detect spam, phishing and other unsafe content. Uses 25-100 API calls depending on model selected.
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/SpamDetectionFormSubmissionAdvancedResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/SpamDetectionFormSubmissionAdvancedResponse'
            text/json:
              schema:
                $ref: '#/components/schemas/SpamDetectionFormSubmissionAdvancedResponse'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SpamDetectionAdvancedFormSubmissionRequest'
          text/json:
            schema:
              $ref: '#/components/schemas/SpamDetectionAdvancedFormSubmissionRequest'
          application/*+json:
            schema:
              $ref: '#/components/schemas/SpamDetectionAdvancedFormSubmissionRequest'
        description: Spam detection request
      operationId: postSpamDetectFormSubmissionAdvanced
      x-operation-id-source: derived
  /spam/detect/file:
    post:
      tags:
      - SpamDetection
      summary: Perform AI spam detection and classification on an input image or document
      description: Analyzes input content as well as embedded URLs with AI deep learning to detect spam, phishing and other unsafe content. Uses 100-125 API calls depending on model selected. Supported file formats include PDF, DOC, DOCX, XLS, XLSX, PPT, PPTX, HTML, EML, MSG, PNG, JPG, JPEG and WEBP.
      parameters:
      - in: header
        name: model
        description: Model to use; default setting is Advanced
        schema:
          type: string
          default: Advanced
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/SpamDetectionResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/SpamDetectionResponse'
            text/json:
              schema:
                $ref: '#/components/schemas/SpamDetectionResponse'
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                inputFile:
                  type: string
                  format: binary
      operationId: postSpamDetectFile
      x-operation-id-source: derived
  /spam/detect/file/advanced:
    post:
      tags:
      - SpamDetection
      summary: Perform advanced AI spam detection and classification against input file
      description: Analyzes input content as well as embedded URLs with AI deep learning to detect spam, phishing and other unsafe content. Uses 25-100 API calls depending on model selected. Supported file formats include PDF, DOC, DOCX, XLS, XLSX, PPT, PPTX, HTML, EML, MSG, PNG, JPG, JPEG and WEBP.
      parameters:
      - in: header
        name: model
        description: 'Optional: Specify which AI model to use.  Possible choices are Normal and Advanced.  Default is Advanced.'
        schema:
          type: string
          default: Advanced
      - in: header
        name: preprocessing
        description: 'Optional: Specify which preprocessing to Use.  Possible choices are None, Compatability and Auto.  Default is Auto.'
        schema:
          type: string
          default: Auto
      - in: header
        name: allowPhishing
        description: True if phishing should be allowed, false otherwise
        schema:
          type: boolean
          default: false
      - in: header
        name: allowUnsolicitedSales
        description: True if unsolicited sales should be allowed, false otherwise
        schema:
          type: boolean
          default: false
      - in: header
        name: allowPromotionalContent
        description: True if promotional content should be allowed, false otherwise
        schema:
          type: boolean
          default: true
      - in: header
        name: 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
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/SpamDetectionAdvancedResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/SpamDetectionAdvancedResponse'
            text/json:
              schema:
                $ref: '#/components/schemas/SpamDetectionAdvancedResponse'
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                inputFile:
                  type: string
                  format: binary
      operationId: postSpamDetectFileAdvanced
      x-operation-id-source: derived
components:
  schemas:
    SpamDetectionRequest:
      description: AI spam detection request
      type: object
      properties:
        InputString:
          description: Input text string to detect spam against
          type: string
          example: Get free crypto now!!!
        Model:
          description: 'Optional: Specify which AI model to use.  Possible choices are Normal and Advanced.  Default is Advanced.'
          type: string
          example: Advanced
      additionalProperties: false
    SpamDetectionAdvancedFormField:
      description: Form field submitted to run spam detection on
      type: object
      properties:
        FieldTitle:
          description: Title of the field
          type: string
          example: LeadCompanyName
        FieldValue:
          description: Value of the field
          type: string
          example: Acme, Inc.
      additionalProperties: false
    SpamDetectionAdvancedFormSubmissionRequest:
      description: AI advanced spam detection request
      type: object
      properties:
        InputFormFields:
          description: Form fields and values that you received in your form submission
          type: array
          items:
            $ref: '#/components/schemas/SpamDetectionAdvancedFormField'
        AllowUnsolicitedSales:
          description: True if unsolicited sales should be allowed, false otherwise
          type: boolean
          example: false
        AllowPromotionalContent:
          description: True if promotional content should be allowed, false otherwise
          type: boolean
          example: false
        AllowPhishing:
          description: True if phishing should be allowed, false otherwise
          type: boolean
          example: false
      additionalProperties: false
    SpamDetectionFormSubmissionAdvancedResponse:
      description: Result of detecting spam using AI
      type: object
      properties:
        CleanResult:
          description: True if the result is not spam (clean), and false otherwise
          type: boolean
        SpamRiskLevel:
          format: double
          description: Overall spam risk level between 0.0 and 1.0
          type: number
        ContainsSpam:
          description: True if the input text contains spam, false otherwise
          type: boolean
        ContainsUnsolicitedSales:
          description: True if the input text contains unsolicited sales, false otherwise
          type: boolean
        ContainsPromotionalContent:
          description: True if the input text contains promotional content, false otherwise
          type: boolean
        ContainsPhishingAttempt:
          description: True if the input text contains a phishing attempt, false otherwise
          type: boolean
        AnalysisRationale:
          description: Rationale for why the conclusion was formed
          type: string
      additionalProperties: false
    SpamDetectionResponse:
      description: Result of detecting spam using AI
      type: object
      properties:
        CleanResult:
          description: True if the result is not spam (clean), and false otherwise
          type: boolean
      additionalProperties: false
    SpamDetectionAdvancedResponse:
      description: Result of detecting spam using AI
      type: object
      properties:
        CleanResult:
          description: True if the result is not spam (clean), and false otherwise
          type: boolean
        SpamRiskLevel:
          format: double
          description: Overall spam risk level between 0.0 and 1.0
          type: number
        ContainsSpam:
          description: True if the input text contains spam, false otherwise
          type: boolean
        ContainsUnsolicitedSales:
          description: True if the input text contains unsolicited sales, false otherwise
          type: boolean
        ContainsPromotionalContent:
          description: True if the input text contains promotional content, false otherwise
          type: boolean
        ContainsPhishingAttempt:
          description: True if the input text contains a phishing attempt, false otherwise
          type: boolean
        AnalysisRationale:
          description: Rationale for why the conclusion was formed
          type: string
      additionalProperties: false
    SpamDetectionAdvancedRequest:
      description: AI advanced spam detection request
      type: object
      properties:
        InputString:
          description: Input text string to detect spam against
          type: string
          example: Buy bitcoin now!!!!
        Model:
          description: 'Optional: Specify which AI model to use.  Possible choices are Normal and Advanced.  Default is Advanced.'
          type: string
          example: Advanced
        AllowUnsolicitedSales:
          description: True if unsolicited sales should be allowed, false otherwise
          type: boolean
          example: false
        AllowPromotionalContent:
          description: True if promotional content should be allowed, false otherwise
          type: boolean
          example: false
        AllowPhishing:
          description: True if phishing should be allowed, false otherwise
          type: boolean
          example: false
        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
  securitySchemes:
    Apikey:
      type: apiKey
      name: Apikey
      in: header
      description: Apikey
x-provenance:
  method: harvested
  publisher: Cloudmersive
  source: https://api.cloudmersive.com/spam/v1/swagger.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)