Get bot analytics
curl --request GET \
--url https://api.botpress.cloud/v1/admin/bots/{id}/analytics
{
"records": [
{
"startDateTimeUtc": "<string>",
"endDateTimeUtc": "<string>",
"returningUsers": 123,
"newUsers": 123,
"sessions": 123,
"messages": 123,
"userMessages": 123,
"botMessages": 123,
"events": 123,
"eventTypes": {},
"customEvents": {},
"llm": {
"calls": 123,
"errors": 123,
"inputTokens": 123,
"outputTokens": 123,
"latency": {
"mean": 123,
"sd": 123,
"min": 123,
"max": 123
},
"tokensPerSecond": {
"mean": 123,
"sd": 123,
"min": 123,
"max": 123
},
"cost": {
"sum": 123,
"mean": 123,
"sd": 123,
"min": 123,
"max": 123
}
}
}
]
}
Bot ID
Start date/time (inclusive)
End date/time (exclusive)
Success
The response is of type object
.
Was this page helpful?
curl --request GET \
--url https://api.botpress.cloud/v1/admin/bots/{id}/analytics
{
"records": [
{
"startDateTimeUtc": "<string>",
"endDateTimeUtc": "<string>",
"returningUsers": 123,
"newUsers": 123,
"sessions": 123,
"messages": 123,
"userMessages": 123,
"botMessages": 123,
"events": 123,
"eventTypes": {},
"customEvents": {},
"llm": {
"calls": 123,
"errors": 123,
"inputTokens": 123,
"outputTokens": 123,
"latency": {
"mean": 123,
"sd": 123,
"min": 123,
"max": 123
},
"tokensPerSecond": {
"mean": 123,
"sd": 123,
"min": 123,
"max": 123
},
"cost": {
"sum": 123,
"mean": 123,
"sd": 123,
"min": 123,
"max": 123
}
}
}
]
}
Get bot analytics
curl --request GET \
--url https://api.botpress.cloud/v1/admin/bots/{id}/analytics
{
"records": [
{
"startDateTimeUtc": "<string>",
"endDateTimeUtc": "<string>",
"returningUsers": 123,
"newUsers": 123,
"sessions": 123,
"messages": 123,
"userMessages": 123,
"botMessages": 123,
"events": 123,
"eventTypes": {},
"customEvents": {},
"llm": {
"calls": 123,
"errors": 123,
"inputTokens": 123,
"outputTokens": 123,
"latency": {
"mean": 123,
"sd": 123,
"min": 123,
"max": 123
},
"tokensPerSecond": {
"mean": 123,
"sd": 123,
"min": 123,
"max": 123
},
"cost": {
"sum": 123,
"mean": 123,
"sd": 123,
"min": 123,
"max": 123
}
}
}
]
}
Bot ID
Start date/time (inclusive)
End date/time (exclusive)
Success
The response is of type object
.
Was this page helpful?
curl --request GET \
--url https://api.botpress.cloud/v1/admin/bots/{id}/analytics
{
"records": [
{
"startDateTimeUtc": "<string>",
"endDateTimeUtc": "<string>",
"returningUsers": 123,
"newUsers": 123,
"sessions": 123,
"messages": 123,
"userMessages": 123,
"botMessages": 123,
"events": 123,
"eventTypes": {},
"customEvents": {},
"llm": {
"calls": 123,
"errors": 123,
"inputTokens": 123,
"outputTokens": 123,
"latency": {
"mean": 123,
"sd": 123,
"min": 123,
"max": 123
},
"tokensPerSecond": {
"mean": 123,
"sd": 123,
"min": 123,
"max": 123
},
"cost": {
"sum": 123,
"mean": 123,
"sd": 123,
"min": 123,
"max": 123
}
}
}
]
}