Making a request to the API
Send aGET request to https://api.botpress.cloud/v1/admin/bots/<your-bot-id>/analytics adding the following header: Authorization: Bearer <your-personal-access-token>.
NoteYou can find your personal access token in your Botpress Dashboard. Click your avatar and select “Personal Access Tokens”. Generate a new one and copy it.
getAnalytics.data.records), the result would look like this:
NoteIt’s a list of records containing the start and end date of the period, the number of returning users, new users, sessions and messages. With this information you can create your own charts and dashboards in your internal systems or favorite BI tool.