Get group metrics
Get one group's activity metrics (events, distinct users, last-seen) over a window. Covers all projects in your organization unless project_id is given; requires owner/admin. Pass a group_type and a group_key from top_groups. The built-in company type is not supported here (use get_company_metrics). Returns group_type, group_key, name, events, users, and last_seen.
Organization API Token (prefixed sk_) sent as Authorization: Bearer sk_.... Create one in Settings and grant it scopes. Server-side only.
In: header
Query Parameters
The group type key, e.g. "workspace" or "team". Not "company".
^[a-z][a-z0-9_]{0,63}$The group key within the type. Use top_groups to discover keys.
1 <= length <= 512Limit results to one project (a project_id from list_projects). Omit to include every project in your organization.
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$uuidLook-back window in days (1-365). Defaults to 30.
1 <= value <= 365Response Body
curl -X GET "https://example.com/groups/metrics?group_type=string&group_key=string"