---
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

---

[API](https://skmtc.net/gleap/apis/gleap-server.md) · [All operations](https://skmtc.net/gleap/apis/gleap-server/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gleap/gleap-server/revisions/93af2e90fb6a/schema)
