I'm looking at the API documentation for filtering tickets here: https://developer.freshdesk.com/api/#filter_tickets
Under the highlighted 'notes' section, it states:
1. Archived tickets will not be included in the results
2. The query must beĀ URL encoded
3. Query can be framed using the name of the ticket fields, which can be obtained fromĀ Ticket FieldsĀ endpoint. Ticket Fields areĀ case sensitive
If I look at the Ticket Fields endpoint as suggested, I see that 'description' is listed as a valid ticket field. However, if I try the following query I get an invalid field error:
curl -v -u "${API_KEY}":XĀ -X GET 'https://bitx.freshdesk.com/api/v2/search/tickets?query="description:%27Test%27"'
{"description":"Validation failed","errors":[{"field":"description","message":"Unexpected/invalid field in request","code":"invalid_field"}]}