The analytics endpoint
POST /api/v1/bot-dashboard-stats returns aggregated performance data for the bots associated with your API key. You control the reporting window by passing a date_from and date_to value in YYYY-MM-DD format.
Understanding the parameters
date_from — The first day of your reporting period. All statistics are aggregated from the beginning of this calendar day (midnight UTC).
date_to — The last day of your reporting period. Statistics are aggregated through the end of this calendar day (23:59:59 UTC). Set date_to to today’s date to include the most recent activity.
Both dates are inclusive, so a request with date_from: "2025-01-01" and date_to: "2025-01-01" returns data for exactly one day.
Sample response shape
The endpoint returns a JSON object containing aggregated statistics for the specified date range. The response includes metrics such as:stats object describes activity across all bots tied to your API key for the given window:
total_messages— combined inbound and outbound message volumemessages_sent— messages delivered from the bot to usersmessages_received— messages sent by users to the bottotal_users— unique users who interacted during the periodnew_users— users engaging for the first timereturning_users— users with prior interaction historyengaged_sessions— conversation sessions that progressed beyond the opening messageavg_messages_per_session— average depth of a conversation
The exact fields returned may vary based on your Botsify plan and the channels connected to your bots. Always inspect the live response to confirm which metrics are available for your account.
Building a rolling 30-day report
Next steps
- Correlate with deployments — cross-reference stat drops or spikes with the version history from Deploy an Agent to identify the impact of configuration changes.
- Combine with WhatsApp data — supplement bot-level stats with broadcast-specific metrics from the WhatsApp Integration guide.
- Set up alerts — if
new_usersdrops sharply day-over-day, that may signal a channel connectivity issue worth investigating in your Botsify dashboard.
