Returns time-series analytics data for dashboard charts — messages, joins/leaves, active members, AI usage, XP distribution, and more.
Shared API secret configured via BOT_API_SECRET environment variable.
Preset time range. Use 'custom' with from/to for a specific window.
today, week, month, custom Start of custom date range (ISO 8601). Required when range=custom.
End of custom date range (ISO 8601). Required when range=custom.
Bucket size for time-series data. Auto-selected if omitted.
hour, day When set, includes comparison data for the previous equivalent period.
1, true, yes, on Optional filter by channel ID
Analytics dataset
The response is of type object.