> ## Documentation Index
> Fetch the complete documentation index at: https://www.plain.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# markCustomerAsSpam

> Flags a customer as spam, hiding their threads from the inbox and excluding them from metrics.
The operation is idempotent — marking an already-spam customer leaves their `markedAsSpamAt`
timestamp unchanged. Requires the `customer:edit` permission.

