/v1/communities/{community_id}/conversations/unread-countAuthGlobal unread message count for the caller across every conversation in this community.
Path parameters
community_id*stringSocial community UUID. Must belong to the PAK's workspace.
Query parameters
actor_id*string · uuidThe viewer actor UUID.
Response · 200 Unread count.
count*numberNumber of unread incoming messages across every conversation the actor participates in.
Example: 7
Example
Request
GET https://social.productcraft.co/v1/communities/{community_id}/conversations/unread-count
Authorization: Bearer YOUR_TOKENimport { Social } from "@productcraft/social";
// Reads PRODUCTCRAFT_API_KEY from the environment
const social = new Social();
const unreadCount = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").conversations.unreadCount({});social.community(…).conversations.unreadCount(params, options?): Social.UnreadCount
Response
{
"count": 7
}