Hello,
I'm trying to create a personalized help-center for our users and I was trying to leverage Zendesk API for that.
I want to list all tickets requested by a user (our customer and not our agent). In the front-end, I was trying to create a pagination, so I'm leveraging this endpoint: https://developer.zendesk.com/api-reference/ticketing/tickets/tickets/#count-tickets. However, I'm not seeing a `tickets/requested/count` endpoint.
The end goal I'm trying to achieve is allow a deterministic pagination in the front-end. For example, if a user has requested 10 tickets, and I'm paginating 2 tickets per API call, I still wish to show the user that there would be 5 total pages. This would be preferable over showing something like "load older tickets" for an indeterminate number.
Is there some value I can access? I can use a recursive function to fetch all tickets and count them, but that's an overkill and would not want to waste a network overhead + time to response if the user would never check the 10th ticket.
I'm sorting the tickets by their ID (descending), if it makes a difference.
Could someone please point me in the right direction?