Social API reference

Social API · Stories

get/v1/communities/{community_id}/posts/{post_id}/viewersAuth

List viewers of a post (author-only).

Only the post author can list viewers. The PAK passes `actor_id`; if that resolves to an actor whose id != post.actor_id, returns 403. Viewers are ordered by view timestamp, newest-first.

Path parameters

community_id*string

Community UUID.

post_id*string

Story (post) UUID.

Query parameters

actor_id*string · uuid

Requester social actor UUID — must resolve to the post author.

limitinteger

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

cursorstring

Cursor from the prior page.

Response · 200 Page of viewers.

data*array

The actors who viewed the story, 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}/posts/{post_id}/viewers
Authorization: Bearer YOUR_TOKEN

Response

{
  "data": [
    {
      "viewer_actor_id": "aaaaaaaa-0000-0000-0000-000000000002",
      "viewer_external_id": "bob",
      "viewer_display_name": "Bob",
      "viewer_avatar_url": "https://...",
      "viewed_at": "2026-05-01T11:30:00.000Z"
    }
  ],
  "pagination": {
    "next_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNi0wNS0wMVQxMjowMDowMC4wMDBaIiwiaWQiOiJiYmJiIn0",
    "has_more": true
  }
}