---
title: "Close a ticket as spam (agent verdict)"
method: PUT
path: "/tickets/{ticketId}/close-as-spam"
tags: ["Ticket"]
---

# Close a ticket as spam (agent verdict)

`PUT /tickets/{ticketId}/close-as-spam`

CLOSE a ticket as spam (agent/MCP verdict): sets the done status, flags +
archives it into the Spam review queue, and suppresses every
customer-facing follow-up — no CSAT, no notifications, no knowledge
extraction. Unlike the manual `PUT {ticketId}/spam` above it does NOT
block the contact: agent verdicts stay recoverable (a genuine customer
reply un-flags the ticket). Used by the Gleap MCP's close_ticket
(asSpam) and the classic close_as_spam tool.

## Path parameters

- `ticketId` string, required

## Headers

- `project` string, required

## Request body

- CloseTicketAsSpamDto
  - `reason` string — Short internal justification shown in the activity log / status reason.

## Response `200`

Ok

- unknown

## Changes

- **2026-08-10** `98174db0934c` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/gleap/apis/gleap-server/changes/tickets/:ticketId/close-as-spam/put.md)

---

[API](https://skmtc.dev/gleap/apis/gleap-server.md) · [All operations](https://skmtc.dev/gleap/apis/gleap-server/llms.txt) · [OpenAPI document](https://skmtc.dev/gleap/apis/gleap-server/revisions/0a92e15c9803?raw)
