Skip to main content
Use content flagging APIs when users need to report posts or comments for review. The SDK supports flagging, unflagging, and checking whether the current user has flagged a loaded item.
TypeScript, iOS, and Android support reasoned flagging for posts and comments. Flutter supports post and comment flag/unflag actions, but the current public post/comment flag builders do not accept a reason parameter.

SDK surfaces

Posts

Flag and unflag posts through the post repository or post model extension, depending on platform.

Comments

Flag and unflag comments through the comment repository or comment model extension.

Reasons

Use predefined reasons such as spam, harassment, violence, or a custom “Others” detail where supported.

Status

Check whether the current user has flagged a loaded post or comment before rendering an unflag action.

Flag reasons

Parameters

Flag a post

Flag a post with a supported reason where the platform exposes reasoned flagging.

Flag a comment

Flag a comment with a supported reason where the platform exposes reasoned flagging.

Unflag content

Unflag content when the current user removes their own report from a post or comment.

Check flag status

Check flag status before rendering a flag or unflag action for the loaded item.
Flagging creates report state; it does not delete, hide, approve, or decline content by itself. For review workflows, use the moderation tools available in Console and the SDK APIs for the content type you are moderating.

Post Review

Approve or decline posts in review workflows.

Delete Post

Remove posts after a moderation decision.

Delete Comment

Remove comments after a moderation decision.

Community Moderation

Manage community roles, bans, and permissions.