Stream Chat icon

Stream Chat

Server-side Stream Chat operations

Moderation → Flag Message

AI-generated

Summary

Flag a specific message in Stream Chat for moderation review, optionally providing a reason for the flag.

Inputs

  • Message ID (required) — ID of the message to be flagged for moderation.
  • Reason — Optional reason explaining why the message is being flagged.

Output shape

A single JSON object representing the response from the Stream Chat API after attempting to flag the message.

The operation returns the raw API response for the flagging action. If execution fails, an error with details is returned unless 'Continue On Fail' is enabled.

Examples

Example 1: Flag a message with a reason

Set 'Message ID' to the target message identifier and provide a 'Reason' describing why the message is flagged.

Discussion