I’m trying to filter tickets that were created by e-mail, but in the documentation, it isn’t very clear on how or if it can be done. I know that there is a field in the ticket called “source”, which refers to what channel the ticket was created through, so i tried to used it.
As of I know, There is no straightforward solution to achieve this as only certain ticket fields are supported in the ticket search API. Refer to the below image for supported ticket fields in search API.
Maybe, one possible solution which I could think of now is to traverse through all the tickets and pick only the tickets which have the expected source using the get tickets API.
Kindly take a look at this document for more reference
Filter tickets based on the following requester email (super+man@gmail.com) which needs to be URL encoded.
curl -v -u yourapikey:X -X GET 'https://domain.freshdesk.com/api/v2/tickets?email=super%2Bman%40gmail.com'