---
title: "Check whether an email is spam"
method: POST
path: "/spam-check/is-spam"
tags: ["spam-check"]
---

# Check whether an email is spam

`POST /spam-check/is-spam`

## Request

- Base URL: `https://api.mailforge.ai/public`
- URL: `https://api.mailforge.ai/public/spam-check/is-spam`
- Auth: none declared

Returns true if the email content is similar to a known suspicious email.

## Request body

- SpamcheckCheckRequest
  - `body_html` string
  - `body_plain` string
  - `subject` string

## Response `200`

OK

- HttpIsSpamResponse
  - `is_spam` boolean

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `500`: Internal Server Error

---

[API](https://skmtc.dev/mailforge/apis/mailforge-api.md) - [All operations](https://skmtc.dev/mailforge/apis/mailforge-api/llms.txt) - [OpenAPI document](https://skmtc.dev/mailforge/apis/mailforge-api/revisions/7d2c137f9fc3?raw)
