Skip to main content
You can flag a customer as spam to hide their threads from the main inbox and stop them being included in metrics. This is useful for closing the loop on automated handling of throwaway accounts, bot traffic or known abusers.
For TypeScript, the GraphQL SDK gives you a fully typed client for these operations.
When a customer is marked as spam their markedAsSpamAt timestamp is set. The mutation is idempotent: calling it on an already-spam customer leaves the timestamp unchanged. This operation requires the following permissions:
  • customer:edit

Mark a customer as spam

Mutation
Variables

Unmark a customer as spam

To reverse the above, use unmarkCustomerAsSpam. The customer’s markedAsSpamAt timestamp is cleared and their threads start appearing in the inbox again.
Mutation
Variables