Statistics API
Messages sent total
Section titled “Messages sent total”Endpoint
Section titled “Endpoint”GET https://api.connectycube.com/admin/stats/messages/sent-totalParameters
Section titled “Parameters”| Parameter | Data type | Description |
|---|---|---|
| start_date | integer (timestamp) | Message date sent after to include to statistics |
| end_date | integer (timestamp) | Message date sent before to include to statistics |
Request example
Section titled “Request example”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-totalResponse
Section titled “Response”{ "total": 167}Messages sent per day
Section titled “Messages sent per day”Endpoint
Section titled “Endpoint”GET https://api.connectycube.com/admin/stats/messages/sent-per-dayParameters
Section titled “Parameters”| Parameter | Data type | Description |
|---|---|---|
| start_date | integer (timestamp) | Message date sent after to include to statistics |
| end_date | integer (timestamp) | Message date sent before to include to statistics |
| limit | integer | Days in one response (Default 100) |
| offset | integer | Days offset in response (Default 0) |
Request example
Section titled “Request example”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-dayResponse
Section titled “Response”{ "2023-02-20": 56, "2023-02-21": 78, "2023-02-26": 47, ...}Dialogs created total
Section titled “Dialogs created total”Endpoint
Section titled “Endpoint”GET https://api.connectycube.com/admin/stats/dialogs/created-totalParameters
Section titled “Parameters”| Parameter | Data type | Description |
|---|---|---|
| start_date | integer (timestamp) | Dialogs created after to include to statistics |
| end_date | integer (timestamp) | Dialogs created before to include to statistics |
| types | array (integer) | Dialogs types before to include to statistics |
Request example
Section titled “Request example”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-totalResponse
Section titled “Response”{ "total": 54}Dialogs created per day
Section titled “Dialogs created per day”Endpoint
Section titled “Endpoint”GET https://api.connectycube.com/admin/stats/dialogs/created-per-dayParameters
Section titled “Parameters”| Parameter | Data type | Description |
|---|---|---|
| start_date | integer (timestamp) | Dialogs created after to include to statistics |
| end_date | integer (timestamp) | Dialogs created before to include to statistics |
| types | array (integer) | Dialogs types before to include to statistics |
| limit | integer | Days in one response (Default 100) |
| offset | integer | Days offset in response (Default 0) |
Request example
Section titled “Request example”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-dayResponse
Section titled “Response”{ "2023-02-20": 21, "2023-02-21": 15, ...}