Your zendesk contains a unified search interface for users, groups, organizations, tickets and topics, and offers a wide range of search parameters.
You can use all available search parameters in your REST search, e.g.:
- type:user company.com (search for users from a specific domain)
- printer fire assignee:alexander
- assignee:none
- requester:me@zendesk.com
- submitter:“Joe Doe”
- group:support
- group:none
- status:solved
- priority>normal
- tags:printer
Note that your help desk is indexed every 15 minutes. I.e. you might see a delay in the contents of the index.
Sorting
You can sort and order your search results. Supported values are:
- sort:asc
- sort:desc
- order_by:priority
- order_by:status
- order_by:ticket_type
- order_by:updated_at
- order_by:created_at
Note that have to use both terms to get correct results I.e. “order_by:created_at sort:desc” or ”order_by:updated_at sort:asc”.
List
GET /search.xml?query=#{query term}
Returns all assets matching the query. The list is paginated using offsets. If 15 elements are returned (the page limit), use ?page=2 to check for the next 15 and so on.
Response
Status: 200
<records count="342">
<record>
...
</record>
<record>
...
</record>
</records>