Actions60
- User Actions
- Channel Actions
- Accept Invite
- Add Members
- Add Moderators
- Archive
- Ban User
- Create
- Delete
- Delete File
- Delete Image
- Demote Moderators
- Disable Slow Mode
- Enable Slow Mode
- Get Config
- Hide
- Invite Members
- Mark Read
- Mark Unread
- Mute
- Mute Status
- Pin
- Query Channels
- Query Members
- Reject Invite
- Remove Members
- Send Action
- Send File
- Send Image
- Show
- Stop Watching
- Truncate
- Unarchive
- Unban User
- Unmute
- Unpin
- Update
- Watch
- Message Actions
- Moderation Actions
Moderation → Query Message Flags
AI-generatedSummary
Query message flags in the Stream Chat moderation system using optional MongoDB-style JSON filters and limits.
Inputs
- Filter Query — A JSON string filter to select specific message flags, supporting MongoDB-style queries (e.g., {"created_by_automod": true}, {"user_id": "specific_user"}, or {"created_at": {"$gte": "2023-01-01"}}). Defaults to "{}" for no filter.
- Limit — Maximum number of message flag results to return. Must be at least 1, defaulting to 50.
Output shape
A list of message flag records, each representing a moderation flag on a message matching the filter criteria.
The operation returns up to the specified limit of results that meet the filter condition. If no filter is specified, all message flags up to the limit are returned. Results are returned as an array of JSON objects representing the flags.