Stream Chat icon

Stream Chat

Server-side Stream Chat operations

Moderation → Flag User

AI-generated

Summary

Flag a user for moderation by specifying their user ID and an optional reason for the flag.

Inputs

  • Target User ID (required) — The ID of the user to flag for moderation.
  • Reason — Optional reason explaining why the user is being flagged.

Output shape

a single object containing the result of the flagging operation as returned by the Stream Chat API

The operation processes each input item and returns its corresponding flag result. Errors can be returned inline if 'Continue On Fail' is enabled.

Discussion