Skip to main content
The spam reporting API lets you report messages, contacts, or groups as spam to WhatsApp. Reports are sent as spam_list IQ stanzas.

Access

Send a spam report directly through the client:

send_spam_report

SpamReportRequest
required
The spam report request containing message details, sender info, and the report flow type.
SpamReportResult
Contains an optional report_id returned by the server.
Example:
When from_jid is set, send_spam_report automatically looks up and attaches that contact’s TC token to the IQ, gated behind the enable_spam_report_iq_with_privacy_token AB prop. This matches WhatsApp Web’s OutSpamTCTokenMixin and lets the report be accepted for privacy-restricted accounts. No caller action is needed — see TC Token.

Group spam report

Types

SpamReportRequest

SpamFlow

The context from which the spam report was triggered.

SpamReportResult

Error handling

The method returns Result<SpamReportResult, IqError>. Common errors include network failures and server-side rejections.

See also