Social API reference

Social API · Collections

get/v1/communities/{community_id}/collectionsAuth

List collections. Public ones are visible to anyone; private ones surface only to their owner via actor_id. Filter by owner_actor_id / kind.

Path parameters

community_id*string

Social community UUID.

Query parameters

actor_idstring · uuid

Viewer actor — surfaces their own private collections.

owner_actor_idstring · uuid

Only collections owned by this actor.

kindenum (2)

Only collections of this kind.

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 collections.

data*array

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

Response

{
  "data": [
    {
      "id": "99999999-0000-0000-0000-000000000001",
      "community_id": "cccccccc-cccc-cccc-cccc-cccccccccccc",
      "owner_actor_id": "aaaaaaaa-0000-0000-0000-000000000001",
      "name": "Travel",
      "kind": "bookmark",
      "cover_asset_id": null,
      "cover_url": null,
      "visibility": "private",
      "position": 0,
      "item_count": 12,
      "created_at": "2026-05-01T12:00:00.000Z",
      "updated_at": "2026-05-01T12:00:00.000Z"
    }
  ],
  "pagination": {
    "next_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNi0wNS0wMVQxMjowMDowMC4wMDBaIiwiaWQiOiJiYmJiIn0",
    "has_more": true
  }
}