Overview
Returns a function to fetch content reports (entities and comments) from spaces where the current user has anadmin or moderator role.
If spaceId is provided, returns reports for that specific space (the user must moderate it). If omitted, returns reports aggregated from all spaces the user moderates.
Requires an authenticated user with
admin or moderator role in at least one space.Usage Example
Parameters
Filter reports to a specific space. If omitted, returns reports from all spaces the user moderates.
Filter by target type.
Filter by report status.
Sort order. Defaults to
"new" (newest first).Page number for pagination. Defaults to
1.Items per page. Defaults to
20.Returns
ReturnsPromise<PaginatedResponse<Report>>:
Report object
UUID of the report record.
Project the report belongs to.
Space the reported content belongs to.
ID of the reported entity or comment.
Type of the reported content.
Total number of users who have reported this target.
Individual user report entries. Each includes
id, userId, reason, details, and createdAt.Current moderation status:
pending, on-hold, escalated, dismissed, or actioned.Free-text description of action taken, if any.
The reported content record (includes the author user object). Populated even if the content was soft-deleted.
The space the reported content belongs to.
When the first report for this target was submitted.
When the report record was last updated.
Soft-delete timestamp.
null if the report has not been deleted.
