Bot Butcher Classification API

Submit contact form data to Bot Butcher and receive a JSON classification result indicating whether the message is spam or legitimate. The AI model classifies each message within the context of your specific website, delivering context-aware spam detection for multi-tenant and enterprise applications. A message_id returned with each verdict can be used to retrieve the stored message and its classification later.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 2

POST / Classify a message as spam or legitimate #
GET /message/{message_id} Retrieve a previously classified message #

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/bot-butcher:bot-butcher-classification-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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

bot-butcher-classification-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Bot Butcher Classification API
  description: 'Bot Butcher is an AI-powered spam detection API that uses a fine-tuned large

    language model to classify contact form submissions as spam or legitimate

    messages within the context of a specific website.


    Submit a contact form message to the API root and receive a JSON body carrying

    a boolean `spam` verdict and a `message_id` that can be used to retrieve the

    stored message later.'
  version: 1.0.0
  contact:
    name: Bot Butcher
    url: https://botbutcher.com
  termsOfService: https://botbutcher.com/terms
  x-generated-from: documentation
  x-source-url: https://botbutcher.com/documentation
  x-provenance: Not published by Bot Butcher. Written by API Evangelist from the provider's own public API reference at https://botbutcher.com/documentation (fetched 2026-09-04, HTTP 200) and cross-checked against the provider's public Postman collection (https://www.postman.com/collections/24192121-47f4e172-5026-4788-b752-cbbc5488a03e). Every path, header, field, status code and example below appears verbatim in one of those two sources.
servers:
- url: https://api.botbutcher.com
  description: Production
security:
- ApiKeyAuth: []
tags:
- name: Classification
  description: Submit and retrieve classified messages.
paths:
  /:
    post:
      operationId: classifyMessage
      summary: Classify a message as spam or legitimate
      description: Submit contact form data to Bot Butcher and receive a JSON classification result. Supplying the root domain where the contact form lives boosts accuracy; omitting it reduces accuracy by roughly 6% but shares less data.
      tags:
      - Classification
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ClassificationRequest'
            examples:
              documented:
                summary: Example payload from the Bot Butcher documentation
                value:
                  message: The spammy message posted to your contact form.
                  domain: my-business-website.com
      responses:
        '200':
          description: Classification result
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ClassificationResult'
              examples:
                documented:
                  summary: Example response from the Bot Butcher documentation
                  value:
                    spam: true
                    message_id: 2383k0f-s5cPjaQBi1-87s10
                    status_code: 200
        '400':
          description: Malformed request. Returned when a JSON payload value or a required header is missing.
        '401':
          description: Unauthorized. Returned when authentication fails.
  /message/{message_id}:
    get:
      operationId: getMessage
      summary: Retrieve a previously classified message
      description: Retrieve a Message object previously submitted, by its unique identifier.
      tags:
      - Classification
      parameters:
      - name: message_id
        in: path
        required: true
        schema:
          type: string
        description: The unique identifier of the message to be retrieved.
        example: 8anb591P-76sn1pn-850fknj
      responses:
        '200':
          description: Stored message and classification result
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Message'
              examples:
                documented:
                  summary: Example response from the Bot Butcher documentation
                  value:
                    status_code: 200
                    timestamp: '2022-04-18T10:15:30Z'
                    message: I want to schedule an appointment to fix my car. Please call me.
                    spam: false
                    domain: local-car-dealership.com
                    metadata:
                      repair-order: 1234567
                      phone: '+13105555555'
        '400':
          description: Malformed request. Returned when the message_id is missing or unknown, or when a required header is missing.
        '401':
          description: Unauthorized. Returned when authentication fails.
components:
  schemas:
    Message:
      type: object
      properties:
        status_code:
          type: integer
          description: HTTP status code indicating the success or failure of the request.
        timestamp:
          type: string
          format: date-time
          description: ISO 8601 timestamp representing when the message was created.
        message:
          type: string
          description: The text content of the message.
        spam:
          type: boolean
          description: Indicates if the message is classified as spam (true) or not (false).
        domain:
          type: string
          description: The root domain where the contact form exists, when provided.
        metadata:
          type: object
          additionalProperties: true
          description: The optional data sent with the classify request, when provided.
    ClassificationRequest:
      type: object
      required:
      - message
      properties:
        message:
          type: string
          description: The text to classify as spam or not.
        domain:
          type: string
          description: The root domain where the contact form is located. Optional; boosts accuracy.
        metadata:
          type: object
          additionalProperties: true
          description: Any information you want stored with the request.
    ClassificationResult:
      type: object
      properties:
        spam:
          type: boolean
          description: Indicates if the message is classified as spam (true) or not (false).
        message_id:
          type: string
          description: A unique identifier for the message.
        status_code:
          type: integer
          description: HTTP status code indicating the success or failure of the request.
        notes:
          type: array
          description: Returned when a supplied domain is not a valid domain. Classification still occurs, with less accuracy.
          items:
            type: string
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: API key issued at https://botbutcher.com/get-started. The provider's Postman collection notes that each form has its own key.