Get total response count
GET {{baseUrl}}/api/v1/dashboards/responseCount?groupBy=<string> max chars : 100&duration=<String>
This API fetches the total number of responses sent/made by your agents.
OAuth Scope
Desk.tickets.READ
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
groupBy | string | Key that groups the thread count according to a particular attribute.This value can be date channel agent | |
departmentId | string | ID(s) of the department(s) from which the stats must be fetched | |
agentId | string | ID(s) of the agent(s) whose stats must be fetched | |
teamId | string | ID(s) of the team(s) from which the stats must be fetched | |
duration | string | Predefined time range from which the stats must be fetched | |
startDate | string | Starting date for defining custom time range | |
endDate | string | Ending date for defining custom time range | |
channel | string | Channel through which the tickets were received |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string |
RESPONSES
status: OK
{"avg":"0.0","groupedBy":"date","totalResponseCount":"0","responseCount":[{"count":"0","value":"2018-04-06","referenceValue":null},{"count":"0","value":"2018-04-07","referenceValue":null},{"count":"0","value":"2018-04-08","referenceValue":null},{"count":"0","value":"2018-04-09","referenceValue":null},{"count":"0","value":"2018-04-10","referenceValue":null}]}