Social API reference

Social API · Actors

get/v1/communities/{community_id}/actorsAuth

List actors in a community. 50 per page by default (max 200) — paginate with the cursor returned in `pagination.next_cursor` while `pagination.has_more` is true. Pass `?ids=<uuid,uuid,…>` (max 100) to batch-fetch specific actors instead — one hydration call for a screenful of ids; unknown ids are silently omitted and `pagination` is the exhausted shape (`next_cursor: null`).

Path parameters

community_id*string

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

Query parameters

limitinteger

Page size; capped at 200. Ignored when `ids` is passed.

cursorstring

Opaque cursor from the previous page's `pagination.next_cursor`. Ignored when `ids` is passed.

idsstring

Comma-separated actor UUIDs (max 100, de-duplicated) to batch-fetch. Returns matching actors in request order; unknown ids are silently omitted.

Response · 200 Page of actors with `next_cursor` + `has_more` (batch-fetch responses always report `has_more: false`).

data*array

The actors 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}/actors
Authorization: Bearer YOUR_TOKEN

Response

{
  "data": [
    {
      "id": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa",
      "community_id": "cccccccc-cccc-cccc-cccc-cccccccccccc",
      "external_id": "user_abc123",
      "display_name": "Ada Lovelace",
      "avatar_url": "https://cdn.example.com/avatars/ada.png",
      "metadata": {
        "tier": "pro"
      },
      "status": "active",
      "is_private": false,
      "created_at": "2026-05-01T12:00:00.000Z",
      "updated_at": "2026-05-01T12:00:00.000Z"
    }
  ],
  "pagination": {
    "next_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNi0wNS0wMVQxMjowMDowMC4wMDBaIiwiaWQiOiJiYmJiIn0",
    "has_more": true
  }
}