Parameter shortcode

{{baseUrl}}/api/v2/search?query=type:ticket status:open&sort_by=created_at&sort_order=desc
[key] [value] Decription
query type:ticket status:open (Required) The search query. See [Query basics](#query-basics) above. For details on the query syntax, see the [Zendesk Support search reference](https://support.zendesk.com/hc/en-us/articles/203663226)
sort_by created_at One of `updated_at`, `created_at`, `priority`, `status`, or `ticket_type`. Defaults to sorting by relevance
sort_order desc One of `asc` or `desc`. Defaults to `desc`

 

{{baseUrl}}/api/v2/tickets/:ticket_id

The type property returns records of the specified resource type. Possible values include ticketuserorganization, and group.

For example, to submit a search request using a query value of type:ticket status:open, the : and space characters must be URL encoded as follows:

.../api/v2/search.json?query=type%3Aticket+status%3Aopen