/v1/workspaces/{workspace_id}/statsAuthSocial stats for a workspace
Community count, published posts, active members, posts, comments and reactions in the window, the most recent activity and a daily active-members series, across every community in the workspace. **Active** means the member published a post, published a comment or reacted. Days are UTC. Counts only: no member ids, handles or author lists. Cached for up to 60 seconds (`generated_at`).
Path parameters
workspace_id*string · uuidWorkspace id.
Query parameters
windowenum (3)Window for `in_window` and the length of `series`, in UTC days ending today.
Response · 200 Social stats.
window*objectWindow the counts cover.
Example: "30d"
generated_at*string · date-timeWhen these numbers were computed. Responses are cached for up to 60 seconds.
Example: "2026-10-07T09:00:00.000Z"
last_activity_at*string · date-timeMost recent post, comment or reaction in any of the workspace's communities (activity is kept for 400 days). Null when there has been none.
Example: "2026-10-07T08:41:12.000Z"
totals*objectAll-time counts.
in_window*objectCounts for the window.
series*objectDaily active members.
Example
Request
GET https://social.productcraft.co/v1/workspaces/{workspace_id}/stats
Authorization: Bearer YOUR_TOKENResponse
{
"window": "30d",
"generated_at": "2026-10-07T09:00:00.000Z",
"last_activity_at": "2026-10-07T08:41:12.000Z",
"totals": {},
"in_window": {},
"series": {}
}