/v1/workspaces/{workspace_id}/communities/{community_id}/moderation/auditAuthAppend-only audit of moderator actions in this community. 50/page (max 200), cursor-paginated. Filter by `?action=`, `?actor_id=` (the moderator), and/or the `?since=` / `?until=` window — all optional and composable. The ordering is fixed newest-first, so keep the same filters on every follow-up page.
Path parameters
workspace_id*string · uuidId of the workspace.
community_id*string · uuidId of the community.
Query parameters
limitintegerPage size (default 50, max 200).
cursorstringOpaque cursor from a prior page's `pagination.next_cursor`.
actionenum (7)Exact moderation-action filter. Blank means no filter; an unknown action is a 400.
actor_idstring · uuidExact moderator filter — the platform account UUID recorded as `moderator_account_id`. Named to match the users-api app-audit filter. A non-UUID value is a 400.
sincestring · date-timeINCLUSIVE lower bound on `created_at` (ISO-8601). Unparseable input is a 400.
untilstring · date-timeEXCLUSIVE upper bound on `created_at` (ISO-8601), so adjacent windows tile without repeating the boundary row. Unparseable input is a 400.
Response · 200 Page of audit entries with next-cursor and has-more.
data*arrayThe moderation actions on this page, newest first.
pagination*objectnext_cursor*stringOpaque base64url cursor for the next page; `null` when no further pages.
Example: "eyJjcmVhdGVkX2F0IjoiMjAyNi0wNS0wMVQxMjowMDowMC4wMDBaIiwiaWQiOiJiYmJiIn0"
has_more*boolean`true` when at least one more page exists. Mirrors `next_cursor !== null`; published as a separate field so SDKs can drive a `while` loop without parsing the cursor. A short or empty `data` array does NOT imply the end of the list when a lane post-filters — always page until this is `false`.
Example: true
Example
Request
GET https://social.productcraft.co/v1/workspaces/{workspace_id}/communities/{community_id}/moderation/audit
Authorization: Bearer YOUR_TOKENimport { Social } from "@productcraft/social";
// Reads PRODUCTCRAFT_API_KEY from the environment
const social = new Social();
for await (const audit of social.communities.moderation.audit.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f")) {
console.log(audit);
}
const page = await social.communities.moderation.audit.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {}, { timeout: 5_000 });social.communities.moderation.audit.list(communityId, params?, options?): PagePromise<Social.ModerationAction>
Response
{
"data": [
{
"id": "eeeeeeee-0000-0000-0000-000000000001",
"community_id": "cccccccc-cccc-cccc-cccc-cccccccccccc",
"flag_id": "ffffffff-0000-0000-0000-000000000001",
"target_kind": "post",
"target_id": "bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb",
"moderator_account_id": "99999999-0000-0000-0000-000000000001",
"action": "hide",
"notes": "Spam confirmed.",
"created_at": "2026-05-01T12:00:00.000Z"
}
],
"pagination": {
"next_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNi0wNS0wMVQxMjowMDowMC4wMDBaIiwiaWQiOiJiYmJiIn0",
"has_more": true
}
}