Tickets Search API

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

This API searches for tickets in your help desk. The values can be given comma separated, which denotes the search on the field is done using either of the values given.

Zoho Desk APIs support two types of search:exact match and wildcard match.
exact match returns resources only if the value passed exactly matches with a resource in the help desk.
wildcard match returns resources even if the value passed partially matches with a resource in the help desk.
To perform wildcard match, append an asterisk () after the value to search.

CustomField param Example:
customField1=cf_modelName:F3

customField2=cfphone:902*
customField3=cf
permanentAddress: Wall Street

Note:
wildcard match will not be available for the custom fields that are not of type string
Wildcard character question mark (?) is not supported
mobile and phone fields supports asterisk (
) at the beginning

Urlencoded Example:
customField1=cfmodelName%3AF3*
customField2=cf
phone%3A902
customField3=cf_permanentAddress%3AWall%20Street

For empty check: email=%24%7Bempty%7D

OAuth Scope

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

Request Params

KeyDatatypeRequiredDescription
fromstringFrom index, starts from 0
limitstringNo. of entities to fetch
departmentIdstringID of the department from which the entity must be fetched. if not passed then searches in permitted departments <br>exact match<br>
idstringID of the ticket <br>exact match<br>
ticketNumberstringSerial number of the ticket in the help desk <br>exact match<br>
subjectstringsubject of the ticket in the help desk <br>wildcard search<br>
descriptionstringdescription of the ticket in the help desk <br>wildcard search<br>
statusstringStatus of the ticket. Includes the custom statuses that exist in your help desk <br>exact match<br>
prioritystringPriority of the ticket <br>exact match<br>
emailstringEmail ID in the ticket <br>wildcard search<br> <br>empty check<br> <br>not empty check<br>
phonestringPhone number in the ticket <br>wildcard search<br> <br>empty check<br> <br>not empty check<br>
channelstringChannel through which the ticket was received <br>exact match<br> <br>empty check<br> <br>not empty check<br>
categorystringCategory in the ticket <br>wildcard search<br> <br>empty check<br> <br>not empty check<br>
assigneeIdstringID of the agent assigned to resolve the ticket <br>exact match<br>
contactIdstringID of the contact who raised the ticket <br>exact match<br>
accountIdstringID of the account associated with the ticket <br>exact match<br>
productIdstringID of the product associated with the ticket <br>exact match<br>
contactNamestringName of the contact who raised the ticket <br>wildcard search<br>
accountNamestringName of the account associated with the ticket <br>wildcard search<br> <br>empty check<br> <br>not empty check<br>
productNamestringName of the product associated with the ticket <br>wildcard search<br> <br>empty check<br> <br>not empty check<br>
tagstringTag in the ticket <br>wildcard search<br> <br>empty check<br> <br>not empty check<br>
_allstringSearch throughout the ticket <br>wildcard search<br>
customField1stringCustom field in the ticket <br>wildcard search<br> <br>empty check<br> <br>not empty check<br>
customField2stringCustom field in the ticket <br>wildcard search<br> <br>empty check<br> <br>not empty check<br>
customField3stringCustom field in the ticket <br>wildcard search<br> <br>empty check<br> <br>not empty check<br>
customField4stringCustom field in the ticket <br>wildcard search<br> <br>empty check<br> <br>not empty check<br>
customField5stringCustom field in the ticket <br>wildcard search<br> <br>empty check<br> <br>not empty check<br>
customField6stringCustom field in the ticket <br>wildcard search<br> <br>empty check<br> <br>not empty check<br>
customField7stringCustom field in the ticket <br>wildcard search<br> <br>empty check<br> <br>not empty check<br>
customField8stringCustom field in the ticket <br>wildcard search<br> <br>empty check<br> <br>not empty check<br>
customField9stringCustom field in the ticket <br>wildcard search<br> <br>empty check<br> <br>not empty check<br>
customField10stringCustom field in the ticket <br>wildcard search<br> <br>empty check<br> <br>not empty check<br>
customerResponseTimeRangestringKey that filters tickets in which customer responses were recorded in a particular period of time. Enter the from and to dates in the ISO date format of yyyy-MM-ddThh:mm:ss.SSSZ; for example, customerResponseTimeRange=2017-11-05T00:00:00.000Z,2018-09-05T23:59:00.000Z2017-11-05T13:15:30.000Z,2018-09-05T13:15:30.000Z
createdTimeRangestringKey that filters tickets created in a particular period of time. Enter the from and to dates in the ISO date format of yyyy-MM-ddThh:mm:ss.SSSZ; for example, createdTimeRange=2017-11-05T00:00:00.000Z,2018-09-05T23:59:00.000Z
modifiedTimeRangestringKey that filters tickets modified in a particular period of time. Enter the from and to dates in the ISO date format of yyyy-MM-ddThh:mm:ss.SSSZ; for example, modifiedTimeRange=2017-11-05T00:00:00.000Z,2018-09-05T23:59:00.000Z
dueDateRangestringKey that filters tickets due in a particular period of time. Enter the from and to dates in the ISO date format of yyyy-MM-ddThh:mm:ss.SSSZ; for example, dueDateRange=2017-11-05T00:00:00.000Z,2018-09-05T23:59:00.000Z
sortBystringSortBy can be: <br>relevance,<br> <br>modifiedTime,<br> <br>createdTime,<br> <br>customerResponseTime<br>

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring

RESPONSES

status: OK

{&quot;data&quot;:[{&quot;modifiedTime&quot;:&quot;2016-06-21T13:16:14.000Z&quot;,&quot;ticketNumber&quot;:&quot;101&quot;,&quot;subCategory&quot;:&quot;Sub General&quot;,&quot;statusType&quot;:&quot;Open&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-21T16:16:16.000Z&quot;,&quot;departmentId&quot;:&quot;1892000000006907&quot;,&quot;isRead&quot;:false,&quot;channel&quot;:&quot;FORUMS&quot;,&quot;onholdTime&quot;:null,&quot;description&quot;:&quot;Hi. There is a sudden delay in the processing of the orders. Check this with high priority&quot;,&quot;resolution&quot;:null,&quot;sharedDepartments&quot;:[{&quot;name&quot;:&quot;Sample Department Name&quot;,&quot;id&quot;:&quot;1892000000006909&quot;,&quot;type&quot;:&quot;READ_WRITE&quot;},{&quot;name&quot;:&quot;Sample Department Name&quot;,&quot;id&quot;:&quot;1892000000006911&quot;,&quot;type&quot;:&quot;READ_ONLY&quot;}],&quot;closedTime&quot;:null,&quot;isOverDue&quot;:false,&quot;contact&quot;:{&quot;lastName&quot;:&quot;Carol&quot;,&quot;firstName&quot;:&quot;Lucas&quot;,&quot;phone&quot;:&quot;1 888 900 9646&quot;,&quot;mobile&quot;:&quot;9876543456&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;:&quot;www.desk.com&quot;,&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;modifiedBy&quot;:&quot;52338000000043001&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;customerResponseTime&quot;:&quot;2013-11-04T11:21:07.912Z&quot;,&quot;product&quot;:null,&quot;cf&quot;:{&quot;cf_permanentaddress&quot;:null,&quot;cf_dateofpurchase&quot;:null,&quot;cf_phone&quot;:null,&quot;cf_numberofitems&quot;:null,&quot;cf_url&quot;:null,&quot;cf_secondaryemail&quot;:null,&quot;cf_severitypercentage&quot;:&quot;0.0&quot;,&quot;cf_modelname&quot;:&quot;F3 2017&quot;},&quot;productId&quot;:null,&quot;contactId&quot;:&quot;1892000000042032&quot;,&quot;threadCount&quot;:&quot;121&quot;,&quot;lastThread&quot;:{&quot;channel&quot;:&quot;FEEDBACK&quot;,&quot;isDraft&quot;:false,&quot;isForward&quot;:false,&quot;direction&quot;:&quot;in&quot;},&quot;team&quot;:{&quot;name&quot;:&quot;kjsdfjks&quot;,&quot;id&quot;:&quot;8920000000069071&quot;},&quot;priority&quot;:&quot;High&quot;,&quot;classification&quot;:null,&quot;assigneeId&quot;:&quot;1892000000056007&quot;,&quot;commentCount&quot;:&quot;1&quot;,&quot;phone&quot;:&quot;1 888 900 9646&quot;,&quot;createdBy&quot;:&quot;52338000000043001&quot;,&quot;webUrl&quot;:&quot;https://desk.zoho.com/support/zylker/ShowHomePage.do#Cases/dv/d126330fb061247d9ebddaeb9d93ba74750b0284bc703b38&quot;,&quot;teamId&quot;:&quot;8920000000069071&quot;,&quot;isEscalated&quot;:false,&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;emailId&quot;:&quot;jack@zylker.com&quot;,&quot;id&quot;:&quot;1892000000056007&quot;,&quot;zuid&quot;:&quot;640954748&quot;},&quot;category&quot;:&quot;general&quot;,&quot;status&quot;:&quot;Open&quot;}],&quot;count&quot;:1}