Get contact statistics
GET {{baseUrl}}/api/v1/contacts/:contact_id/statistics
This API fetches the overall statistics of an contact.
OAuth Scope
Desk.contacts.READ
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
departmentId | string | ID of the department from which the statistics must be fetched. If you do not pass this parameter in the API request, statistics from all permitted departments will be fetched. |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string |
RESPONSES
status: OK
{"firstResponseTime":"120000","openTickets":"11","responseTime":"13150000","spamTickets":"0","totalTickets":"36","customerHappiness":{"badCount":"50","goodCount":"0","okCount":"50"},"closedTickets":"23","resolutionTime":"0","channelWiseCount":{"Web":"12","Forums":"14","Chat":"10"},"onholdTickets":"2","escalatedTickets":"0","overdueTickets":"0"}