Stats

Index

1. Operators

Pathname:

1 {{baseUrl}}/api/v1/{{codename}}/stats/operator?startDate=2021-11-01T03:00:00.000Z&endDate=2021-12-01T02:55:00.000Z

Method: GET

Header:

1 2 3 Accept: 'application/json' Content-Type: 'application/json' Authorization: 'Bearer ' + accessToken

 

Url params:

Parameter

type

Description

Parameter

type

Description

codename

String

Request the Chat-Tonic team.

Query params:

Parameter

type

Description

Parameter

type

Description

startDate

String

2021-11-01T03:00:00.000Z

endDate

String

2021-12-01T02:55:00.000Z

Response:

Returns operator stats

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 { "status": true, "operators": [{ "name": { "givenName": "Chamo", "familyName": "Sac2" }, "origins": [ "5ed94dd1fdda89cee4cb61" ], "profile": 500, "_id": "5ed96d95aef725fdfb", "displayName": "Chamo Sac2", "onlineTime": 0, "awayTime": 0, "freeTime": 0, "queriesResolved": 0, "avgDurationResolved": 0, "queriesAssigned": 0, "sumDuration": 0, "nps": 0, "lastConnection": null, "numberOfResponsesNps": 0, "queryInProgress": 0, "originsName": "Tengo otro tipo de consultas" }, { "name": { "givenName": "Chamo", "familyName": "Operator" }, "origins": [], "profile": 500, "_id": "5f286ede4dbdcf209af", "displayName": "Chamo Operator", "status": "online", "onlineTime": 480, "awayTime": 0, "freeTime": 0, "queriesResolved": 0, "avgDurationResolved": 0, "queriesAssigned": 0, "sumDuration": 0, "nps": 0, "lastConnection": null, "numberOfResponsesNps": 0, "queryInProgress": 0, "originsName": "all" } ], "queryPending": 0 }

 

2. NPS

Pathname:

1 {{baseUrl}}/api/v1/{{codename}}/stats/nps/export?typeUser=all&startDate=2021-11-01T03:00:00.000Z&endDate=2021-12-01T02:55:00.000Z

Method: GET

Header:

1 2 3 Accept: 'application/json' Content-Type: 'application/json' Authorization: 'Bearer ' + accessToken

 

Url params:

Parameter

type

Description

Parameter

type

Description

codename

String

Request the Chat-Tonic team.

Query params:

Parameter

type

Description

Parameter

type

Description

startDate

String

Date string in UTC

endDate

String

Date string in UTC

typeUser

String

all, promoter, passive or detractor

Response:

Sends an email to the attested user with the report attached