Social API reference

Social API · Stories

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

List voters of a poll (author-only).

Only the poll author can list voters. Pass the author via `actor_id`; a requester whose id != post.actor_id gets 403. Each entry carries the voter and their `option_index`. Optionally filter to a single option with `option`. Ordered newest-first.

Path parameters

community_id*string

Community UUID.

post_id*string

Post UUID containing the poll.

Query parameters

actor_id*string · uuid

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

optioninteger

Filter to voters who chose this option index.

limitinteger

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

cursorstring

Cursor from the prior page.

Response · 200 Page of voters.

data*array

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

Response

{
  "data": [
    {
      "voter_actor_id": "aaaaaaaa-0000-0000-0000-000000000002",
      "voter_external_id": "bob",
      "voter_display_name": "Bob",
      "voter_avatar_url": "https://...",
      "option_index": 1,
      "voted_at": "2026-05-01T11:30:00.000Z"
    }
  ],
  "pagination": {
    "next_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNi0wNS0wMVQxMjowMDowMC4wMDBaIiwiaWQiOiJiYmJiIn0",
    "has_more": true
  }
}