Filter recent updated tickets whether old or new

Hey guys

I’m trying to find a filter my tickets via API, with the following url parameters:

search?orderBy=created_at&orderType=desc&ref=all_tickets

I tried using FILTER BY and QUERY. but still not getting the result.

Hi @Charles

Welcome to Freshworks developer community!

I guess you are trying to retrieve all the tickets in the descending order of created_at timestamp. Please try with the below example

(https://domain.freshdesk.com/api/v2/tickets?order_by=created_at&order_type=desc)

Hope this helps!

Regards,
Mughela Chandresh

2 Likes

@Mughela_Chandresh thanks! :smile:
when I use
requests.get(‘https://’+ domain +’.freshdesk.com/api/v2/tickets?filter=new_and_my_open’

Using filter I can get information from old tickets that were recently changed. But I only have information of 1 agent

[image]

when I use
requests.get(‘https://’+ domain +’.freshdesk.com/api/v2/tickets?order_by=created_at&order_type=desc’

I have updated and modified ticket information only from the last 30 days. Even if an old ticket is changed it is not listed here. various agents