Social API reference

Social API · Flags

get/v1/communities/{community_id}/flagsAuth

List a reporter's own flags (task 017). Requires `actor_id` (the reporter) — the customer lane sees only that reporter's reports ("was my report reviewed?"), never other reporters' flags. Cursor-paginated newest-first.

Path parameters

community_id*string

Social community UUID. Must belong to the PAK's workspace.

Query parameters

actor_idstring · uuid

The acting actor: the reporter whose flags to list. Required unless the deprecated `reporter_actor_id` is sent.

reporter_actor_idstring · uuid

Deprecated alias of `actor_id`; send `actor_id`.

statusenum (3)

Only reports with this status.

limitinteger

Maximum number of items to return (1-200, default 50).

cursorstring

Opaque cursor from the previous page's `pagination.next_cursor`; omit for the first page.

Response · 200 Page of the reporter's flags.

data*array

The reports on this page.

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/communities/{community_id}/flags
Authorization: Bearer YOUR_TOKEN

Response

{
  "data": [
    {
      "id": "ffffffff-0000-0000-0000-000000000001",
      "community_id": "cccccccc-cccc-cccc-cccc-cccccccccccc",
      "target_kind": "post",
      "target_id": "bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb",
      "reporter_actor_id": "aaaaaaaa-0000-0000-0000-000000000001",
      "reporter_actor": {},
      "reason": "Spam — same link posted 6 times in 5 minutes.",
      "status": "open",
      "created_at": "2026-05-01T12:00:00.000Z",
      "updated_at": "2026-05-01T12:00:00.000Z"
    }
  ],
  "pagination": {
    "next_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNi0wNS0wMVQxMjowMDowMC4wMDBaIiwiaWQiOiJiYmJiIn0",
    "has_more": true
  }
}