/v1/communities/{community_id}/actors/{actor_id}/notifications/unread-countAuthCount unread notifications for an actor.
Cheap badge endpoint backed by a partial index — safe to poll at the cadence of an in-product notification bell.
Path parameters
community_id*stringCommunity UUID.
actor_id*stringSocial actor UUID (returned from POST /actors).
Response · 200 Count of unread rows.
count*numberNumber of unread notifications for the actor.
Example: 7
Example
Request
GET https://social.productcraft.co/v1/communities/{community_id}/actors/{actor_id}/notifications/unread-count
Authorization: Bearer YOUR_TOKENimport { Social } from "@productcraft/social";
// Reads PRODUCTCRAFT_API_KEY from the environment
const social = new Social();
const result = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").actors.notifications.unreadCount("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");social.community(…).actors.notifications.unreadCount(actorId, options?): Social.UnreadCountResponse
Response
{
"count": 7
}