SeanJ
SeanJ

Reputation: 1243

Query Zendesk tickets by keyword using ZenDesk API

By running the following query I can get all the first 100 tickets from our Zendesk account

curl -u [email protected]:pass https://subdomain.zendesk.com/api/v2/tickets.json > tickets.json

However, I would like to get tickets with keyword 'Tom'. The keyword should appear in either the collaborators field or text data.

Is there a way to use the Zendesk API to query Zendesk tickets based on a keyword?

Upvotes: 1

Views: 962

Answers (1)

Gaurav Dave
Gaurav Dave

Reputation: 7474

Try this:

search.json?query=Tom

OR

search.json?query=type:user "Tom*"

See, if that helps.

Refer: Link

Upvotes: 1

Related Questions