Get closed tickets count
GET {{baseUrl}}/api/v1/dashboards/solvedTickets?groupBy=<string> max chars : 100&duration=<String>
This API fetches the number of tickets that are resolved.
OAuth Scope
Desk.tickets.READ
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
groupBy | string | Key that groups the ticket 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
{"totalTicketCount":"1","ticketCount":[{"count":"0","value":"Feedback Widget","referenceValue":null},{"count":"0","value":"Email","referenceValue":null},{"count":"0","value":"Web","referenceValue":null},{"count":"1","value":"Phone","referenceValue":null},{"count":"0","value":"Forums","referenceValue":null},{"count":"0","value":"Chat","referenceValue":null},{"count":"0","value":"Twitter","referenceValue":null},{"count":"0","value":"Facebook","referenceValue":null}],"avg":"0.12","groupedBy":"channel"}