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.
Hello! @jim.stephen
Do you have any recommendations to retrieve more than 300 tickets using the Filter Tickets API? I've used the page query, but it's limited to page 10. It would be great if the response could include the total number of pages and allow us to go beyond page 10. Thanks!
It sounds like you're having trouble using pagination to get all open tickets from Freshdesk. Pagination helps organize large sets of data into smaller, more manageable pages.
When you use the "per_page" parameter, it's supposed to limit the number of results per page, but it's not working as expected. However, when you use the "page" parameter, it seems to work fine.
To solve this issue, you might want to check if there are any limitations on the number of results per page set by Freshdesk. It's possible that the value you're using for "per_page" exceeds this limit, causing it not to work properly.
You could also try adjusting your query to include both the "page" and "per_page" parameters together, like this:
api/v2/search/tickets?query="status:2"&per_page=10&page=1
This would fetch 10 tickets per page on the first page, and you can adjust the values as needed.
If the problem persists, reaching out to Freshdesk support for further assistance could be helpful. They might be able to provide insights or solutions specific to their platform.
Alison has given a better answer, My problem has been resolved.
Thank you Antoine, for my banners answer.
Hi! The per_page parameter isn't always supported as expected in Freshdesk's /search/tickets endpoint. Stick with using the page parameter to paginate, and check the API docs for any limitations on items per page. More tips on API pagination can be found here: vapesbay
The Freshdesk API's per_page
parameter may not be supported for the search endpoint. Instead, use pagination with page
parameter sequentially (e.g., page=1
, page=2
, etc.) to retrieve all open tickets. Make sure to check API documentation for any limitations or alternative approaches.
It seems the per_page
parameter isn’t working with Freshdesk’s /search/tickets
API. The best approach is to stick with pagination using the page
parameter and loop through the pages until all tickets are retrieved. Let me know if you need more help!