Statistics API (deprecated)
This API is deprecated and will eventually be removed. You can try the new, more powerful statistics API now. Below you can find the documentation for the deprecated API until it is removed.
Using the API key created in Getting started, you can get statistics for your bot through our API.
To get the number of user sessions for your bot, make a GET request to https://api.kindly.ai/api/v1/bot/YOUR_BOT_ID/stats/sessions/total with your API key as a header authorization key.
An example request using cURL is shown below:
To get the number of user queries (messages) sent to your bot, make a GET request to https://api.kindly.ai/api/v1/bot/YOUR_BOT_ID/stats/queries/total with your API key as a header authorization key.
An example request using cURL is shown below:
To get the number of user queries (messages) sent to your bot which went to fallback, make a GET request to https://api.kindly.ai/api/v1/bot/YOUR_BOT_ID/stats/queries/fallbacks with your API key as a header authorization key.
An example request using cURL is shown below:
By appending query parameters from and to formatted as YYYY-MM-DD, you can control the date range of the stats.