---
title: "Get the likelihood that a message is spam"
method: POST
path: "/checkspamv2"
tags: ["Spam-Detection"]
---

# Get the likelihood that a message is spam

`POST /checkspamv2`

## Request

- Base URL: `https://api.chainfuel.com/v1`
- URL: `https://api.chainfuel.com/v1/checkspamv2`
- Auth: none declared

Adds an item to the system

## Request body

- SpamCheckPayloadv2
  - `entity_count` integer, required
  - `entity_types` string[]
  - `message_body` string, required
  - `message_count` integer, required
  - `message_type` string, required
  - `seconds_since_user_joined` number, required
  - `sender_telegram_id` integer, required

## Response `200`

Likelihood that the message is spam

- Spamscore
  - `spamscore` number, required

## Other responses

- `400`: invalid input, object invalid

---

[API](https://skmtc.dev/chainfuel/apis/chainfuel-spam-detector.md) - [All operations](https://skmtc.dev/chainfuel/apis/chainfuel-spam-detector/llms.txt) - [OpenAPI document](https://skmtc.dev/chainfuel/apis/chainfuel-spam-detector/revisions/8b2d22386600?raw)
