/v1/communities/{community_id}/actors/{actor_id}/post-stateAuthBatch viewer-state hydration: the actor's reactions, bookmark, repost, and poll-vote state for up to 200 posts in one call.
Read-over-POST (the id list is too large for a query string) — no side effects, no Idempotency-Key needed. Renders a whole feed page's "liked by you" / saved / reposted / voted state with one request on top of the feed call.
Path parameters
community_id*stringSocial community UUID. Must belong to the PAK's workspace.
actor_id*stringViewer actor UUID — the perspective all state is computed from.
Request body
post_ids*arrayUUIDs of the posts to hydrate viewer state for. Capped at 200 (matches the batch-views precedent); ids that are unknown, removed, or from another community resolve to the empty state instead of failing the batch.
Example: ["bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb","cccccccc-cccc-cccc-cccc-cccccccccccc"]
Response · 200 One state entry per requested post id.
data*arrayOne entry per requested post id (de-duplicated, request order). Unknown / cross-community ids resolve to the empty state.
Example
Request
POST https://social.productcraft.co/v1/communities/{community_id}/actors/{actor_id}/post-state
Authorization: Bearer YOUR_TOKEN
Content-Type: application/json
{
"post_ids": [
"bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb",
"cccccccc-cccc-cccc-cccc-cccccccccccc"
]
}Response
{
"data": [
{
"post_id": "bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb",
"reacted_types": [
"fire",
"like"
],
"bookmarked": true,
"reposted": false,
"voted_option": null
}
]
}