List all customerHappiness

GET {{baseUrl}}/v1/customerHappiness?department=<String>

Get customer-happiness list for a given department. You can also use any one of the sub modules: agentId, contactId, accountId, or ticketId at a time.

OAuth Scope

  • Desk.search.READ
  • Desk.tickets.READ

Request Params

KeyDatatypeRequiredDescription
departmentstringMandatory param to fetch the customer-happiness list for a given ID of the department. You can also provide department as allDepartment to fetch customer happiness from all departments
agentIdstringFilter that returns the customer-happiness list for a particular agent
contactIdstringFilter that returns the customer-happiness list for a particular contact
accountIdstringFilter that returns the customer-happiness list for a particular account
ticketIdstringFilter that returns the customer-happiness list for a particular ticket
startTimestringStart time from which the customer-happiness list should show. Start time should be in GMT time zone and in milliseconds
endTimestringStart time till which the customer-happiness list should show. End time should be in GMT time zone and in milliseconds
fromstringThe startng index from which the list should be displayed based on the time of receiving customer feedback
limitstringNumber of ratings to be displayed in the list
ratingstringSegregate the list based on the type of rating. Allowed values are good, ok, or bad
durationstringPeriod from which the customer happiness rating must be fetched. Values allowed are: TODAY, THIS_WEEK, LAST_WEEK, THIS_MONTH, LAST_MONTH, LAST_7_DAYS, YESTERDAY, LAST_1_HOUR, CUSTOM_IN_DATE, LAST_100_RATINGS, LAST24HOURS and LAST_30_DAYS
startDatestringstart date time
endDatestringend date time
sortBystringSorted by ratedtime
includestringAllowed values are : contacts, tickets, agents. You can include both by separating them with a comma in the query param.

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring

RESPONSES

status: OK

{&quot;data&quot;:[{&quot;agentId&quot;:&quot;5000000015959&quot;,&quot;agent&quot;:{&quot;firstName&quot;:&quot;dasca&quot;,&quot;lastName&quot;:&quot;vins&quot;,&quot;photoURL&quot;:&quot;https://desk.zoho.com/api/v1/agent/5000000015959/photo&quot;,&quot;id&quot;:&quot;5000000015959&quot;,&quot;email&quot;:&quot;jack@zylker.com&quot;},&quot;ticket&quot;:{&quot;ticketNumber&quot;:&quot;118&quot;,&quot;subject&quot;:&quot;GPS not working&quot;,&quot;id&quot;:&quot;5000000074060&quot;},&quot;contactId&quot;:&quot;5000000017055&quot;,&quot;departmentId&quot;:&quot;5000000056329&quot;,&quot;rating&quot;:&quot;GOOD&quot;,&quot;threadId&quot;:&quot;5000000090001&quot;,&quot;feedback&quot;:&quot;Great Work!!!&quot;,&quot;accountId&quot;:&quot;5000000017043&quot;,&quot;ratedTime&quot;:&quot;2021-12-02T14:36:20.291Z&quot;,&quot;customerRatedTime&quot;:&quot;2021-12-02T09:06:20.291Z&quot;,&quot;timezoneOffset&quot;:&quot;GMT +5:30&quot;,&quot;contact&quot;:{&quot;name&quot;:&quot;Nirmal Kumar&quot;,&quot;id&quot;:&quot;5000000017055&quot;},&quot;id&quot;:&quot;5000000090012&quot;,&quot;ticketId&quot;:&quot;5000000074060&quot;},{&quot;agentId&quot;:&quot;5000000015959&quot;,&quot;agent&quot;:{&quot;firstName&quot;:&quot;dasca&quot;,&quot;lastName&quot;:&quot;vins&quot;,&quot;photoURL&quot;:&quot;https://desk.zoho.com/api/v1/agent/5000000015959/photo&quot;,&quot;id&quot;:&quot;5000000015959&quot;,&quot;email&quot;:&quot;jack@zylker.com&quot;},&quot;ticket&quot;:{&quot;ticketNumber&quot;:&quot;117&quot;,&quot;subject&quot;:&quot;Apps take time to load&quot;,&quot;id&quot;:&quot;5000000056151&quot;},&quot;contactId&quot;:&quot;5000000026602&quot;,&quot;departmentId&quot;:&quot;5000000042101&quot;,&quot;rating&quot;:&quot;BAD&quot;,&quot;threadId&quot;:&quot;5000000092045&quot;,&quot;feedback&quot;:&quot;The solution provided doesn&#39;t seem to work.&quot;,&quot;accountId&quot;:&quot;-1&quot;,&quot;ratedTime&quot;:&quot;2018-09-26T10:47:35.936Z&quot;,&quot;timezoneOffset&quot;:&quot;GMT +5:30&quot;,&quot;contact&quot;:{&quot;name&quot;:&quot;Phillip Collins&quot;,&quot;id&quot;:&quot;5000000026602&quot;},&quot;id&quot;:&quot;5000000092056&quot;,&quot;ticketId&quot;:&quot;5000000056151&quot;},{&quot;agentId&quot;:&quot;5000000015959&quot;,&quot;ticket&quot;:{&quot;ticketNumber&quot;:&quot;114&quot;,&quot;subject&quot;:&quot;zPhone battery needs to be fixed&quot;,&quot;id&quot;:&quot;5000000055051&quot;},&quot;contactId&quot;:&quot;5000000017055&quot;,&quot;departmentId&quot;:&quot;5000000012860&quot;,&quot;rating&quot;:&quot;OKAY&quot;,&quot;threadId&quot;:&quot;5000000092069&quot;,&quot;feedback&quot;:&quot;The battery performance is better but I expect a little more.&quot;,&quot;accountId&quot;:&quot;5000000017043&quot;,&quot;ratedTime&quot;:&quot;2018-09-26T10:49:16.202Z&quot;,&quot;timezoneOffset&quot;:&quot;GMT +5:30&quot;,&quot;contact&quot;:{&quot;name&quot;:&quot;Sam Rossner&quot;,&quot;id&quot;:&quot;5000000017055&quot;},&quot;id&quot;:&quot;5000000092084&quot;,&quot;ticketId&quot;:&quot;5000000055051&quot;}]}