List all tickets

GET {{baseUrl}}/api/v1/tickets

This API lists a particular number of tickets, based on the limit specified.

OAuth Scope

  • Desk.tickets.READ

Request Params

KeyDatatypeRequiredDescription
fromstringIndex number, starting from which the tickets must be fetched
limitstringNumber of tickets to fetch
departmentIdstringID of the department from which the tickets must be fetched (Please note that this key will be deprecated soon and replaced by the <b>departmentIds</b> key.)
departmentIdsstringDepartments from which the tickets need to be queried
viewIdstringID of the view to apply while fetching the resources
assigneestringassignee - Key that filters tickets by assignee. Values allowed are Unassigned or a valid assigneeId. Multiple assigneeIds can be passed as comma-separated values.
channelstringFilter by channel through which the tickets originated. You can include multiple values by separating them with a comma
statusstringFilter by resolution status of the ticket. You can include multiple values by separating them with a comma
sortBystringSort by a specific attribute: responseDueDate or customerResponseTime or createdTime or ticketNumber. The default sorting order is ascending. A - prefix denotes descending order of sorting.
receivedInDaysstringFetches recent tickets, based on customer response time. Values allowed are 15, 30 , 90.
includestringAdditional information related to the tickets. Values allowed are:&nbsp;contacts,&nbsp;products, departments,&nbsp;team,&nbsp;isRead and assignee. You can pass multiple values by separating them with commas in the API request.
fieldsstringKey that returns the values of mentioned fields (both pre-defined and custom) in your portal. All field types except multi-text are supported. Standard, non-editable fields are supported too. These fields include: statusType, webUrl, layoutId. Maximum of 30 fields is supported as comma separated values.
prioritystringKey that filters tickets by priority. Multiple priority levels can be passed as comma-separated values.

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring

RESPONSES

status: OK

{&quot;data&quot;:[{&quot;ticketNumber&quot;:&quot;101&quot;,&quot;subCategory&quot;:null,&quot;subject&quot;:&quot;Real Time analysis Requirement&quot;,&quot;dueDate&quot;:&quot;2016-06-21T16:16:16.000Z&quot;,&quot;departmentId&quot;:&quot;1892000000006907&quot;,&quot;channel&quot;:&quot;Email&quot;,&quot;isRead&quot;:false,&quot;onholdTime&quot;:null,&quot;language&quot;:&quot;English&quot;,&quot;source&quot;:{&quot;appName&quot;:null,&quot;extId&quot;:null,&quot;type&quot;:&quot;SYSTEM&quot;,&quot;permalink&quot;:null,&quot;appPhotoURL&quot;:null},&quot;closedTime&quot;:null,&quot;sharedCount&quot;:&quot;0&quot;,&quot;responseDueDate&quot;:&quot;2017-09-05T11:21:07.000Z&quot;,&quot;contact&quot;:{&quot;firstName&quot;:&quot;Lucas&quot;,&quot;lastName&quot;:&quot;Carol&quot;,&quot;phone&quot;:&quot;1 888 900 9646&quot;,&quot;mobile&quot;:&quot;9876543210&quot;,&quot;id&quot;:&quot;1892000000042032&quot;,&quot;type&quot;:null,&quot;email&quot;:&quot;carol@zylker.com&quot;,&quot;account&quot;:{&quot;website&quot;:null,&quot;accountName&quot;:&quot;desk Account&quot;,&quot;id&quot;:&quot;1892000000975382&quot;}},&quot;createdTime&quot;:&quot;2013-11-04T11:21:07.000Z&quot;,&quot;id&quot;:&quot;1892000000042034&quot;,&quot;department&quot;:{&quot;name&quot;:&quot;dasdasdasd&quot;,&quot;id&quot;:&quot;1892000000006907&quot;},&quot;email&quot;:&quot;carol@zylker.com&quot;,&quot;channelCode&quot;:null,&quot;customerResponseTime&quot;:&quot;2013-11-04T11:21:07.912Z&quot;,&quot;productId&quot;:null,&quot;contactId&quot;:&quot;1892000000042032&quot;,&quot;threadCount&quot;:&quot;121&quot;,&quot;team&quot;:{&quot;name&quot;:&quot;kjsdfjks&quot;,&quot;id&quot;:&quot;8920000000069071&quot;},&quot;priority&quot;:&quot;High&quot;,&quot;assigneeId&quot;:&quot;1892000000056007&quot;,&quot;commentCount&quot;:&quot;1&quot;,&quot;phone&quot;:null,&quot;webUrl&quot;:&quot;https://desk.zoho.com/support/zylker/ShowHomePage.do#Cases/dv/d126330fb061247d9ebddaeb9d93ba74750b0284bc703b38&quot;,&quot;teamId&quot;:&quot;8920000000069071&quot;,&quot;assignee&quot;:{&quot;firstName&quot;:&quot;dasca&quot;,&quot;lastName&quot;:&quot;vins&quot;,&quot;photoURL&quot;:&quot;https://desk.zoho.com/api/v1/agents/1892000000056007/photo?orgId=298902&quot;,&quot;id&quot;:&quot;1892000000056007&quot;,&quot;email&quot;:&quot;jack@zylker.com&quot;},&quot;isSpam&quot;:false,&quot;category&quot;:null,&quot;status&quot;:&quot;Open&quot;},{&quot;ticketNumber&quot;:&quot;176&quot;,&quot;subCategory&quot;:null,&quot;statusType&quot;:&quot;Closed&quot;,&quot;subject&quot;:&quot;Hi. There is a sudden delay in the processing of the orders. Check this with high priority&quot;,&quot;dueDate&quot;:&quot;2016-06-01T14:04:07.000Z&quot;,&quot;departmentId&quot;:&quot;1892000000006907&quot;,&quot;channel&quot;:&quot;Forums&quot;,&quot;isRead&quot;:false,&quot;onholdTime&quot;:null,&quot;source&quot;:{&quot;appName&quot;:null,&quot;extId&quot;:null,&quot;type&quot;:&quot;SYSTEM&quot;,&quot;permalink&quot;:null,&quot;appPhotoURL&quot;:null},&quot;closedTime&quot;:null,&quot;sharedCount&quot;:&quot;0&quot;,&quot;responseDueDate&quot;:null,&quot;contact&quot;:{&quot;firstName&quot;:&quot;Jonathan&quot;,&quot;lastName&quot;:&quot;Casie&quot;,&quot;phone&quot;:null,&quot;mobile&quot;:&quot;9876543211&quot;,&quot;id&quot;:&quot;1892000000045028&quot;,&quot;type&quot;:null,&quot;email&quot;:&quot;casie@zylker.com&quot;,&quot;account&quot;:{&quot;website&quot;:&quot;www.zylker.com&quot;,&quot;accountName&quot;:&quot;Zylker sAccount&quot;,&quot;id&quot;:&quot;1892000000980421&quot;}},&quot;createdTime&quot;:&quot;2014-03-06T09:49:50.000Z&quot;,&quot;id&quot;:&quot;1892000000094004&quot;,&quot;department&quot;:{&quot;name&quot;:&quot;dasdasdasd&quot;,&quot;id&quot;:&quot;1892000000006907&quot;},&quot;email&quot;:&quot;casie@zylker.com&quot;,&quot;channelCode&quot;:null,&quot;customerResponseTime&quot;:&quot;2014-03-22T05:05:08.471Z&quot;,&quot;productId&quot;:null,&quot;contactId&quot;:&quot;1892000000045028&quot;,&quot;threadCount&quot;:&quot;72&quot;,&quot;team&quot;:{&quot;name&quot;:&quot;kjsdfjks&quot;,&quot;id&quot;:&quot;8920000000069071&quot;},&quot;priority&quot;:&quot;High&quot;,&quot;assigneeId&quot;:&quot;1892000000056007&quot;,&quot;commentCount&quot;:&quot;0&quot;,&quot;phone&quot;:null,&quot;webUrl&quot;:&quot;https://desk.zoho.com/support/zylker/ShowHomePage.do#Cases/dv/d126330fb061247d9ebddaeb9d93ba74750b02214oc203b38&quot;,&quot;teamId&quot;:&quot;8920000000069071&quot;,&quot;isSpam&quot;:false,&quot;assignee&quot;:{&quot;firstName&quot;:&quot;dasca&quot;,&quot;lastName&quot;:&quot;vins&quot;,&quot;photoURL&quot;:&quot;https://desk.zoho.com/api/v1/agents/1892000000056007/photo?orgId=298902&quot;,&quot;id&quot;:&quot;1892000000056007&quot;,&quot;email&quot;:&quot;jack@zylker.com&quot;},&quot;category&quot;:null,&quot;status&quot;:&quot;Closed&quot;},{&quot;ticketNumber&quot;:&quot;191&quot;,&quot;subCategory&quot;:null,&quot;statusType&quot;:&quot;On Hold&quot;,&quot;subject&quot;:&quot;Real Time analysis Requirement&quot;,&quot;dueDate&quot;:null,&quot;departmentId&quot;:&quot;1892000000006907&quot;,&quot;channel&quot;:&quot;Chat&quot;,&quot;isRead&quot;:true,&quot;onholdTime&quot;:&quot;2014-03-28T12:09:10.736Z&quot;,&quot;source&quot;:{&quot;appName&quot;:null,&quot;extId&quot;:null,&quot;type&quot;:&quot;SYSTEM&quot;,&quot;permalink&quot;:null,&quot;appPhotoURL&quot;:null},&quot;closedTime&quot;:null,&quot;sharedCount&quot;:&quot;0&quot;,&quot;responseDueDate&quot;:&quot;2017-10-05T11:21:07.000Z&quot;,&quot;contact&quot;:{&quot;firstName&quot;:&quot;Jonathan&quot;,&quot;lastName&quot;:&quot;Casie&quot;,&quot;phone&quot;:null,&quot;mobile&quot;:null,&quot;id&quot;:&quot;1892000000045028&quot;,&quot;type&quot;:null,&quot;email&quot;:&quot;casie@zylker.com&quot;,&quot;account&quot;:{&quot;website&quot;:&quot;www.zylker.com&quot;,&quot;accountName&quot;:&quot;Zylker Account&quot;,&quot;id&quot;:&quot;1892000000980421&quot;}},&quot;createdTime&quot;:&quot;2014-03-21T09:16:03.000Z&quot;,&quot;id&quot;:&quot;1892000000137057&quot;,&quot;department&quot;:{&quot;name&quot;:&quot;dasdasdasd&quot;,&quot;id&quot;:&quot;1892000000006907&quot;},&quot;email&quot;:&quot;casie@zylker.com&quot;,&quot;channelCode&quot;:null,&quot;customerResponseTime&quot;:&quot;2014-03-21T10:54:21.802Z&quot;,&quot;productId&quot;:null,&quot;contactId&quot;:&quot;1892000000045028&quot;,&quot;threadCount&quot;:&quot;19&quot;,&quot;team&quot;:{&quot;name&quot;:&quot;kjsdfjks&quot;,&quot;id&quot;:&quot;8920000000069071&quot;},&quot;priority&quot;:&quot;High&quot;,&quot;assigneeId&quot;:&quot;1892000000042001&quot;,&quot;commentCount&quot;:&quot;0&quot;,&quot;phone&quot;:null,&quot;webUrl&quot;:&quot;https://desk.zoho.com/support/zylker/ShowHomePage.do#Cases/dv/d11bcdfb061247d9edbacb9d93ba74750b0284bc703b38&quot;,&quot;teamId&quot;:&quot;8920000000069071&quot;,&quot;isSpam&quot;:false,&quot;assignee&quot;:{&quot;firstName&quot;:&quot;dasca&quot;,&quot;lastName&quot;:&quot;vins&quot;,&quot;photoURL&quot;:&quot;https://desk.zoho.com/api/v1/agents/1892000000042001/photo?orgId=298902&quot;,&quot;id&quot;:&quot;1892000000042001&quot;,&quot;email&quot;:&quot;jack@zylker.com&quot;},&quot;category&quot;:null,&quot;status&quot;:&quot;Custom On Hold&quot;}]}