Skip to main content
POST
Bulk activity statistics for up to 100 companies in one request.

Authorizations

x-api-key
string
header
required

Body

application/json
uuids
string[]
required

Entity UUIDs to fetch stats for (max 100).

group_by
string | null

Optional grouping. internal_user returns a per-user breakdown under by_user in addition to the aggregate periods.

Allowed value: "internal_user"
periods
string | null

Comma-separated list of periods to retrieve stats for. Valid values: '30_days', '90_days', '180_days', '365_days', 'all_time'. If not specified, returns all available periods.

sort_by
string | null

Optional. top_user populates top_email_user and top_meeting_user (each user's name + 90-day counts) without requiring group_by=internal_user's full by_user array. Combine with group_by=internal_user to get both.

Allowed value: "top_user"

Response

200 - application/json

Bulk activity-stats response.

results holds one ActivityStatsResponse per input UUID, in the same order as the request. Entities the caller is not authorized to read (or that have no data) are returned with empty periods rather than failing the whole batch.

results
ActivityStatsResponse · object[]
required