---
title: "Create a new spam report"
method: POST
path: "/spam_reports"
tags: ["Spam Report"]
---

# Create a new spam report

`POST /spam_reports`

## Request

- Base URL: `https://api.spamcheck.ai/api/v1`
- URL: `https://api.spamcheck.ai/api/v1/spam_reports`
- Auth: API key in header `Api-Key`

Creates a spam report to flag false positives or false negatives. The result and desired_outcome must be different (e.g., result=true/desired_outcome=false for a false positive).

## Request body

- SpamReportCreate
  - `ip` string
  - `email` string
  - `hashed_ip` string: Optional pre-hashed IP address for privacy-sensitive submissions.
  - `hashed_email` string: Optional pre-hashed email address for privacy-sensitive submissions.
  - `body` object, required
  - `result` boolean, required: The actual spam check result (true=spam, false=ham)
  - `desired_outcome` boolean, required: The desired outcome (true=spam, false=ham). Must be different from result.
  - `notes` string

## Response `201`

The spam report response

- SpamReport
  - `id` integer, required: The unique identifier of the spam report
  - `ip` string, required
  - `email` string, required
  - `hashed_ip` string
  - `hashed_email` string
  - `body` object, required
  - `result` boolean, required
  - `desired_outcome` boolean, required
  - `notes` string, required
  - `external_metadata` object, required

## Other responses

- `422`: Validation error (e.g., result and desired_outcome are the same)

---

[API](https://skmtc.dev/spamcheck/apis/spamcheckai-spam-filter-api.md) · [All operations](https://skmtc.dev/spamcheck/apis/spamcheckai-spam-filter-api/llms.txt) · [OpenAPI document](https://skmtc.dev/spamcheck/apis/spamcheckai-spam-filter-api/revisions/89a5041be448?raw)
