reports module lets end users file reports against entities and comments, and lets moderators read the moderated reports queue.
createReport
Files a report against an entity or comment. Repeat reports of the same target are deduplicated.The kind of content being reported.
The ID of the entity or comment being reported.
The reason for the report.
Additional context about the report.
Promise<{ message: string; code: "report/created" | "report/updated" | "report/already-reported" }>
fetchModeratedReports
Fetches a paginated list of moderated reports, with optional filters.Restrict results to reports within a specific space.
Restrict results to reports of a specific target type.
Restrict results to reports with a specific moderation status.
Sort order for the returned reports.
The page of results to fetch.
The number of reports to return per page.
Opts each reported target’s author into a
spaceReputation number. Accepts a space <uuid>, "none" (the project-general bucket), or "context" (the space derived from the request context — per-row from the space each report belongs to). The empty string and the legacy general / null aliases are rejected. See Reputation.Only honored alongside an explicit space
<uuid>. When true, spaceReputation is the subtree sum — the named space plus all of its descendants.Promise<PaginatedResponse<Report>>
Each Report carries id, spaceId, targetId, targetType, status, reporterCount, timestamps, and optional userReports, target, and space associations.
