product:chat
Query Team Usage Statistics
Changed onRetrieve team-level usage statistics from the warehouse database. Returns all 16 metrics grouped by team with cursor-based pagination.
Date Range Options (mutually exclusive):
- Use 'month' parameter (YYYY-MM format) for monthly aggregated values
- Use 'start_date'/'end_date' parameters (YYYY-MM-DD format) for daily breakdown
- If neither provided, defaults to current month (monthly mode)
Team Filter:
- Use 'team' to return a single team's stats (empty string selects users not assigned to any team)
- Mutually exclusive with the 'next' pagination cursor
This endpoint is server-side only.
post/stats/team_usage
Request
- Base URLhttps://chat.stream-io-api.com
- URLhttps://chat.stream-io-api.com/stats/team_usage
- Auth
- API key in header Authorization and API key in query parameter api_key and API key in header Stream-Auth-Type
- or API key in query parameter api_key and API key in header Stream-Auth-Type
Request body
Response
Query Team Usage Stats Response
Changes
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- info
- info
added the new optional request property
- info