Skip to main content
Fetch Moderated Reports
Returns a paginated list of reports for spaces where the authenticated user has the admin or moderator role. If spaceId is omitted, reports from all spaces the user moderates are returned. Authentication required. Must be a space admin or moderator.

Query Parameters

string
Filter to a specific space. The user must be an admin or moderator of that space. When omitted, reports from all moderated spaces are returned.
string
Filter by content type. One of: entity, comment, message, matched exactly (another case returns 400 report/invalid-query). Message reports appear in this queue only for conversations attached to a space — DM and group reports have no space, so they are project-level and surface in the Sublay dashboard instead.
string
Filter by report status. One of: pending, on-hold, escalated, dismissed, actioned, auto-closed.
"createdAt"
default:"createdAt"
Reports are sorted by when they were created.
"asc" | "desc"
Direction of the createdAt sort, "asc" or "desc" (either case). Default "desc" (newest first).
number
default:"1"
Page number (1-indexed): a whole number, 1 or more. Defaults to 1. Any other value returns 400 report/invalid-query with param: "page".
number
default:"20"
Reports per page: a whole number from 1 to 100. Defaults to 20. A larger value returns 400 report/invalid-query with param: "limit" (it is never lowered to 100), as does 0, a negative number or a value that isn’t a whole number. See Pagination.
string
Service key only, and required with one: the user this request acts as. Reports are returned for the spaces this user moderates. A user token always acts as its own user and must not send it (400 report/acting-user-not-allowed).

Space-scoped reputation

This endpoint has a space in context, so it accepts the opt-in reputation params. They add a spaceReputation field to each reported content author’s populated user, alongside the always-present reputation total. Requires the reputation bundle. See the Reputation data model for the full contract.

Response

Each report includes the full reported content (target), the space it belongs to, and all individual user reports (userReports). target.user is the author’s public User — no email or other private fields. target is null when the content is no longer there, including an entity soft-deleted under the project’s entity deletion setting: a soft delete keeps it for you, not for your app’s space moderators. A user who moderates no space gets an empty data array, with pagination built from the requested page and limit (limit defaults to 20).

Error Responses

Returned when spaceId is provided but the user is not a moderator of that space.
sortBy=new and sortBy=old are rejected with a pointer to their replacements: sortBy=createdAt (newest first by default) and sortBy=createdAt&sortDir=asc.
Returned for an invalid query value, such as a targetType that isn’t exactly entity, comment or message. error starts with the field name.
A service key sent no actingUserId.
A user token sent actingUserId, even naming its own user. Only a service key names the user it acts as; a user token always acts as its own user.
Returned when a service key names an actingUserId that isn’t a user in this project.
The request sent userId. On this route the user a service key acts as is actingUserId.With a service key:
With a user token, or with no credentials: