Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Table of Contents
excludeIndex

1.

...

Operators

Pathname:

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

...

Parameter

type

Description

startDate

String

2021-11-01T03:00:00.000Z

endDate

String

2021-12-01T02:55:00.000Z

2021-12-01T02:55:00.000Z

Response:

Info

Returns operator stats

Code Block
{
    "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:

Code Block
{{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:

Code Block
Accept: 'application/json'
Content-Type: 'application/json'
Authorization: 'Bearer ' + accessToken

Url params:

Parameter

type

Description

codename

String

Request the Chat-Tonic team.

Query params:

Parameter

type

Description

startDate

String

Date string in UTC

endDate

String

Date string in UTC

typeUser

String

all, promoter, passive or detractor

Response:

Info

Sends an email to the attested user with the report attached