Fetch Moderated Reports
curl --request GET \
--url https://api.sublay.io/api/v6/:projectId/api/v7/reports/moderatedimport requests
url = "https://api.sublay.io/api/v6/:projectId/api/v7/reports/moderated"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.sublay.io/api/v6/:projectId/api/v7/reports/moderated', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sublay.io/api/v6/:projectId/api/v7/reports/moderated",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.sublay.io/api/v6/:projectId/api/v7/reports/moderated"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.sublay.io/api/v6/:projectId/api/v7/reports/moderated")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sublay.io/api/v6/:projectId/api/v7/reports/moderated")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyReport Endpoints
Fetch Moderated Reports
Get content reports for spaces the authenticated user can moderate
GET
/
:projectId
/
api
/
v7
/
reports
/
moderated
Fetch Moderated Reports
curl --request GET \
--url https://api.sublay.io/api/v6/:projectId/api/v7/reports/moderatedimport requests
url = "https://api.sublay.io/api/v6/:projectId/api/v7/reports/moderated"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.sublay.io/api/v6/:projectId/api/v7/reports/moderated', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sublay.io/api/v6/:projectId/api/v7/reports/moderated",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.sublay.io/api/v6/:projectId/api/v7/reports/moderated"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.sublay.io/api/v6/:projectId/api/v7/reports/moderated")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sublay.io/api/v6/:projectId/api/v7/reports/moderated")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyReturns a paginated list of reports for spaces where the authenticated user has the
Each report includes the full reported content (
Returned when
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.string
Filter by report status. One of:
pending, on-hold, escalated, dismissed, actioned.string
default:"new"
Sort order. One of:
new (newest first), old (oldest first).number
default:"1"
Page number (1-indexed).
number
default:"20"
Number of reports per page.
Space-scoped reputation
This endpoint has a space in context, so it accepts the opt-in reputation params. They add aspaceReputation 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.
string
Adds
spaceReputation to each returned user. One of: a space <uuid> (that space’s bucket), none (the project-general bucket), or context (the space derived from this request’s context — per-row on lists). The empty string and the legacy general / null aliases are rejected (400). Missing buckets read as 0.boolean
Only honored with an explicit space
<uuid>. When true, spaceReputation is the subtree sum — the space plus all of its descendants (the root space’s own bucket included). Ignored for none; not allowed with context.Response
{
"data": [
{
"id": "uuid",
"targetId": "uuid",
"targetType": "comment",
"spaceId": "uuid",
"status": "pending",
"reporterCount": 3,
"target": { ...Comment object... },
"space": { ...Space object... },
"userReports": [
{ "userId": "uuid", "reason": "spam", "details": "..." }
],
"createdAt": "2025-01-01T00:00:00Z"
}
],
"pagination": {
"page": 1,
"pageSize": 20,
"totalPages": 2,
"totalItems": 35,
"hasMore": true
}
}
target), the space it belongs to, and all individual user reports (userReports).
Error Responses
Forbidden — 403
Forbidden — 403
{ "error": "Moderator access required for this space", "code": "report/forbidden" }
spaceId is provided but the user is not a moderator of that space.
