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:

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