Statistics API (deprecated)
⚠ Deprecated API
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.
API key
Using the API key created in Getting started, you can get statistics for your bot through our API.
Number of user sessions
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:
Number of user queries received
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:
Number of queries that went to fallback
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:
Pagination & filtering
By appending query parameters from
and to
formatted as YYYY-MM-DD, you can control the date range of the stats.
Last updated