Skip to content

Statistics API

GET https://api.connectycube.com/admin/stats/messages/sent-total
ParameterData typeDescription
start_dateinteger (timestamp)Message date sent after to include to statistics
end_dateinteger (timestamp)Message date sent before to include to statistics
Terminal window
curl -X GET \
-H "CB-Administration-API-Key: <API_KEY>" \
-d 'start_date=1676894034&end_date=16768967370' \
https://api.connectycube.com/admin/stats/messages/sent-total
{
"total": 167
}
GET https://api.connectycube.com/admin/stats/messages/sent-per-day
ParameterData typeDescription
start_dateinteger (timestamp)Message date sent after to include to statistics
end_dateinteger (timestamp)Message date sent before to include to statistics
limitintegerDays in one response (Default 100)
offsetintegerDays offset in response (Default 0)
Terminal window
curl -X GET \
-H "CB-Administration-API-Key: <API_KEY>" \
-d 'start_date=1676894034&end_date=16768967370' \
https://api.connectycube.com/admin/stats/messages/sent-per-day
{
"2023-02-20": 56,
"2023-02-21": 78,
"2023-02-26": 47,
...
}
GET https://api.connectycube.com/admin/stats/dialogs/created-total
ParameterData typeDescription
start_dateinteger (timestamp)Dialogs created after to include to statistics
end_dateinteger (timestamp)Dialogs created before to include to statistics
typesarray (integer)Dialogs types before to include to statistics
Terminal window
curl -X GET \
-H "CB-Administration-API-Key: <API_KEY>" \
-d 'start_date=1676894057&end_date=16768967671&types[]=2&types[]=3' \
https://api.connectycube.com/admin/stats/dialogs/created-total
{
"total": 54
}
GET https://api.connectycube.com/admin/stats/dialogs/created-per-day
ParameterData typeDescription
start_dateinteger (timestamp)Dialogs created after to include to statistics
end_dateinteger (timestamp)Dialogs created before to include to statistics
typesarray (integer)Dialogs types before to include to statistics
limitintegerDays in one response (Default 100)
offsetintegerDays offset in response (Default 0)
Terminal window
curl -X GET \
-H "CB-Administration-API-Key: <API_KEY>" \
-d 'start_date=1676894057&end_date=16768967671&types[]=2&types[]=4' \
https://api.connectycube.com/admin/stats/dialogs/created-per-day
{
"2023-02-20": 21,
"2023-02-21": 15,
...
}