Social API reference

Social API · Moderation-Admin

get/v1/workspaces/{workspace_id}/communities/{community_id}/moderation/auditAuth

Append-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 · uuid

Id of the workspace.

community_id*string · uuid

Id of the community.

Query parameters

limitinteger

Page size (default 50, max 200).

cursorstring

Opaque 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 · uuid

Exact 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-time

INCLUSIVE lower bound on `created_at` (ISO-8601). Unparseable input is a 400.

untilstring · date-time

EXCLUSIVE 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*array

The moderation actions on this page, newest first.

pagination*object
next_cursor*string

Opaque 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_TOKEN

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
  }
}