Hello, I think there is an error in the 'Get Bot A...
# 💻developers
h
Hello, I think there is an error in the 'Get Bot Analytics' api code. If you make a request https://api.botpress.cloud/v1/admin/bots/xxxxxxx/analytics?startDate='2023-08-01'&endDate='2023-08-31', you get this: { "records": [ { "startDateTimeUtc": "2023-08-29T09:00:00.000Z", "endDateTimeUtc": "2023-08-29T21:00:00.000Z", "returningUsers": 2, "newUsers": 0, "sessions": 2, "messages": 4 }, { "startDateTimeUtc": "2023-08-30T06:00:00.000Z", "endDateTimeUtc": "2023-08-30T08:00:00.000Z", "returningUsers": 0, "newUsers": 0, "sessions": 1, "messages": 6 } ] } but if the request is https://api.botpress.cloud/v1/admin/bots/xxxxxxx/analytics?startDate='2023-08-01'&endDate='2023-09-01' you get this: { "records": [ { "startDateTimeUtc": "2023-08-29T09:00:00.000Z", "endDateTimeUtc": "2023-08-29T21:00:00.000Z", "returningUsers": 2, "newUsers": 0, "sessions": 2, "messages": 4 }, { "startDateTimeUtc": "2023-08-30T06:00:00.000Z", "endDateTimeUtc": "2023-08-30T08:00:00.000Z", "returningUsers": 0, "newUsers": 0, "sessions": 1, "messages": 6 }, { "startDateTimeUtc": "2023-08-31T06:00:00.000Z", "endDateTimeUtc": "2023-08-31T08:00:00.000Z", "returningUsers": 0, "newUsers": 0, "sessions": 1, "messages": 3 } ] } In practice, the first and last day of the request are not displayed (note the day 2023-08-31).