---
title: "Mark Spam"
method: POST
path: "/api/cs/tickets/{ticket_id}/spam"
tags: ["customer_service"]
---

# Mark Spam

`POST /api/cs/tickets/{ticket_id}/spam`

## Request

- Base URL: `https://api.pigeonly.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.pigeonly.com/api/cs/tickets/{ticket_id}/spam`
- Auth: none declared

Block the sender, close the ticket, hide it from every normal
surface -- see service.mark_ticket_spam's own docstring for the shared
suppress-then-close machinery this reuses (the same shape
/tickets/{id}/not-interested above already proved) and
migrations/0075_ticket_spam.sql for why hiding is a flag, not a status.

## Path parameters

- `ticket_id` string, uuid, required

## Request body

- MarkSpamRequest: Frederick, 2026-07-30: "I should just block that sender, and then close that ticket out and remove it from the queue." `scope` defaults to 'address' -- deliberately narrower than not_interested's domain default; a domain-wide block must be a choice the caller makes, never automatic.
  - `scope` string
  - `resolve_action_item_id` string, uuid, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os.md) - [All operations](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os/llms.txt) - [OpenAPI document](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os/revisions/14571c4b7007?raw)
