Question

Could'n get tickets using per_page

  • 3 March 2023
  • 1 reply
  • 238 views

Hello! I need to use pagination to get all open tickets from freshdesk, but it’s not working as expected when i try to use “per_page”:

api/v2/search/tickets?query="status:2" works fine, but don’t retrieve all results

 

If i use the “page” parameter, it work fine too. api/v2/search/tickets?query="status:2"&page=2

 

But if i try to use “per_page” parameter it doesn’t work. 

api/v2/search/tickets?query="status:2"&per_page=2

 

Can someone help me figuring out what i’m missing? Thanks

 

 


1 reply

Userlevel 5
Badge +5

Hi @andrewcruzr 

 

Greetings from Freshworks community! 

 

I understand that you are unable to use the Pagination query for the Filter Tickets API endpoint, kindly note that the Filter Tickets API will return 30 tickets per page by default and the per page query will not be supported in the Filter Tickets API endpoint. This is the reason the API endpoint you tried accessing did not return any value. 

 

I hope this clarifies your query. 

Reply