Answered

Can we search for tickets with a specific Source field & a given tag using the API

HI,


   I am  absolutely new to Freshdesk API and Freshdesk, I have a query. Can we search for tickets with a specific Source field & a given tag using the API?? If possible please reply asap with details.


Best Answer

Hi,


Here's a link to our latest API documentation : https://developer.freshdesk.com/api


Though this is a pretty old topic, we thought,an update with the latest item would prove fruitful for other users who might have the same requirement.


Cheers!


Hi


We are currently not allowing Tickets search via API. Only Solutions can be searched using search_key=tag method

You may use the Custom Filters and create a custom view and filter out such tickets which match the fields.


You may check this article for more info - https://support.freshdesk.com/categories/2/forums/7/topics/834


regards

Vijay

Thank you for Replying very soon.

and there is a small problem, I posted it on your link also


Can anyone please post the exact curl request to be made, I tried shal request but it is showing "HTTP/1.1 406 Not Acceptable error"


the exact request I made was `curl -i -H "Accept: application/xml" -u API_KEY:X https://{domain}.freshdesk.com/helpdesk/tickets/view/View_ID`


I also tried using `curl -i -H "Accept:application/xml" -u API_KEY:X "https://{domain}.freshdesk.com/helpdesk/tickets.xml?filter_name=View_name&page=1"`

Freshdesk support gave me this answer

https://{domain}.freshdesk.com/helpdesk/tickets/view/View_ID?format=json

for now its working have to try on more data 


Thank you guys, it will be more helpful if forms is active :)

Answer

Hi,


Here's a link to our latest API documentation : https://developer.freshdesk.com/api


Though this is a pretty old topic, we thought,an update with the latest item would prove fruitful for other users who might have the same requirement.


Cheers!